RefactoringMiner icon indicating copy to clipboard operation
RefactoringMiner copied to clipboard

Support for exception expecting test syntax migration detection

Open victorgveloso opened this issue 4 years ago • 0 comments

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 ExpectedException field based)
    • Migration from JUnit 4 (@Test(expected=exceptionClassLiteral.class)) to JUnit 5's (assertThrows)

victorgveloso avatar Nov 30 '21 04:11 victorgveloso