RefactoringMiner
RefactoringMiner copied to clipboard
Support for exception expecting test syntax migration detection
Contributions:
- Refactored existing code (decreasing code duplication and verbosity and increasing reuse, readability, and testability)
- Added 48 test methods
- Added lombok annotations for getter, setter, and Builder generation
- Added 2 "refactorings":
- Migration from JUnit 3 exception expecting test syntax (
try{Assert.fail()}catch(exceptionClassLiteral e){}) to JUnit 4's (@Rule ExpectedExceptionfield based) - Migration from JUnit 4 (
@Test(expected=exceptionClassLiteral.class)) to JUnit 5's (assertThrows)
- Migration from JUnit 3 exception expecting test syntax (