Skip to content

Commit 6852124

Browse files
committed
Fix mistake in test migration
1 parent 7f25ba2 commit 6852124

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/test/java/org/refactoringminer/test/TestRelatedStatementMappingsTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ void testExtractFixtureRefactoring(String url,String commit) {
153153
public void testCustomRunnerMappings(String url, String commit, String testResultFileName) {
154154
testRefactoringMappings(url, commit, testResultFileName, ref -> {
155155
Set<Pair<UMLAnnotation, UMLAnnotation>> annotations = switch (ref) {
156-
case ModifyMethodAnnotationRefactoring modifyRef -> Set.of(Pair.of(modifyRef.getAnnotationBefore(), modifyRef.getAnnotationAfter()));
157-
case AddMethodAnnotationRefactoring addRef -> Set.of(Pair.of(null, addRef.getAnnotation()));
156+
case ModifyClassAnnotationRefactoring modifyRef -> Set.of(Pair.of(modifyRef.getAnnotationBefore(), modifyRef.getAnnotationAfter()));
157+
case AddClassAnnotationRefactoring addRef -> Set.of(Pair.of(null, addRef.getAnnotation()));
158158
default -> Set.of();
159159
};
160160
if (!annotations.isEmpty() && Set.of("RunWith", "ExtendWith").contains(((AnnotationRefactoring) ref).getAnnotation().getTypeName())) {
@@ -163,7 +163,6 @@ public void testCustomRunnerMappings(String url, String commit, String testResul
163163
});
164164
}
165165

166-
167166
@ParameterizedTest
168167
@CsvSource({
169168
//Custom Runner

0 commit comments

Comments
 (0)