Skip to content

Commit 72b112e

Browse files
committed
Merge tests testing the same thing
1 parent 31d67f2 commit 72b112e

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

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

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ else if (ref instanceof AssertTimeoutRefactoring a)
132132

133133
@ParameterizedTest
134134
@CsvSource({
135-
"https://github.com/uber/h3-java.git,8b9d3f230393b4a89a21545745754eeb46f56516"
135+
"https://github.com/uber/h3-java.git,8b9d3f230393b4a89a21545745754eeb46f56516",
136+
//"https://github.com/apache/camel.git, ee55a3bc6e04fea, camel-ee55a3bc6e04fea.txt", // FIXME: No move code refactoring detected
137+
"https://github.com/apache/struts.git, 0a71e2c3b92d2d58fda40f252a6a5a4392fa58b7",
138+
"https://github.com/orientechnologies/orientdb.git, 1b371c7cecbc7ec14b81a3f8a08c2ab71d12577f",
136139
})
137140
void testExtractFixtureRefactoring(String url,String commit) {
138141
String testResultFileName = url.substring(url.lastIndexOf('/') + 1, url.indexOf(".git")) + "-" + commit + ".txt";
@@ -334,23 +337,6 @@ else if (ref instanceof MergeOperationRefactoring mergeOperationRefactoring) {
334337
});
335338
}
336339

337-
338-
@ParameterizedTest
339-
@CsvSource({
340-
//Extract Fixture
341-
// "https://github.com/apache/camel.git, ee55a3bc6e04fea, camel-ee55a3bc6e04fea.txt", // FIXME: No move code refactoring detected
342-
"https://github.com/apache/struts.git, 0a71e2c3b92d2d58fda40f252a6a5a4392fa58b7, struts-0a71e2c3b92d2d58fda40f252a6a5a4392fa58b7.txt",
343-
"https://github.com/orientechnologies/orientdb.git, 1b371c7cecbc7ec14b81a3f8a08c2ab71d12577f, orientdb-1b371c7cecbc7ec14b81a3f8a08c2ab71d12577f.txt",
344-
})
345-
public void testExtractFixture(String url, String commit, String testResultFileName) {
346-
testRefactoringMappings(url, commit, testResultFileName, ref -> {
347-
if (ref instanceof MoveCodeRefactoring moveCodeRefactoring) {
348-
mapperInfo(moveCodeRefactoring.getMappings(), moveCodeRefactoring.getSourceContainer(), moveCodeRefactoring.getTargetContainer());
349-
}
350-
});
351-
}
352-
353-
354340
@ParameterizedTest
355341
@CsvSource({
356342
//Minimize Fixture

0 commit comments

Comments
 (0)