diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 05a7515..88ec0c0 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,11 +2,7 @@ - - - - @@ -31,8 +27,17 @@ - - + + + + + + + + + + + @@ -67,8 +72,8 @@ - - + + @@ -76,6 +81,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -85,18 +121,6 @@ - - - - - - - - - - - - @@ -126,6 +150,8 @@ import selector setPos + parseChangedSourceCodeWithGumTree2 + compareCFilesWithGumTree fixminer @@ -588,9 +614,6 @@ - - - @@ -618,6 +641,9 @@ + + + @@ -1057,13 +1083,6 @@ - - - - - - - @@ -1078,13 +1097,6 @@ - - - - - - - @@ -1099,13 +1111,6 @@ - - - - - - - @@ -1140,16 +1145,6 @@ - - - - - - - - - - @@ -1185,16 +1180,6 @@ - - - - - - - - - - @@ -1215,10 +1200,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + diff --git a/richedit/src/test/java/edu/lu/uni/serval/TestPredefinedCases.java b/richedit/src/test/java/edu/lu/uni/serval/TestPredefinedCases.java index 0a7dcc0..1e77a34 100644 --- a/richedit/src/test/java/edu/lu/uni/serval/TestPredefinedCases.java +++ b/richedit/src/test/java/edu/lu/uni/serval/TestPredefinedCases.java @@ -70,13 +70,12 @@ public class TestPredefinedCases { "------------DEL continue@@continue; @AT@ 62 @LENGTH@ 9\n"); } - //TODO -// @Ignore + @Test public void testWhileCase1() throws IOException { Properties appProps = new Properties(); appProps.load(new FileInputStream("src/main/resource/app.properties")); - String srcMLPath = appProps.getProperty("srcMLPath", "FORKJOIN"); + String srcMLPath = ""; File revFile = new File("src/main/resource/testFiles/while_example_1.c"); File prevFile = new File("src/main/resource/testFiles/prev_while_example_1.c"); @@ -84,7 +83,7 @@ public class TestPredefinedCases { EDiffHunkParser parser = new EDiffHunkParser(); - List hierarchicalActionSets = parser.parseChangedSourceCodeWithGumTree2(prevFile, revFile, "",false); + List hierarchicalActionSets = parser.parseChangedSourceCodeWithGumTree2(prevFile, revFile, srcMLPath,false); hierarchicalActionSets.size(); Assert.assertEquals(hierarchicalActionSets.size(), 1); @@ -106,7 +105,7 @@ public class TestPredefinedCases { public void testIFRetrun() throws IOException { Properties appProps = new Properties(); appProps.load(new FileInputStream("src/main/resource/app.properties")); - String srcMLPath = appProps.getProperty("srcMLPath","FORKJOIN"); + String srcMLPath = ""; File revFile = new File("src/main/resource/testFiles/if_return.c"); File prevFile =new File("src/main/resource/testFiles/prev_if_return.c"); @@ -144,7 +143,7 @@ public class TestPredefinedCases { public void testIfElse() throws IOException { Properties appProps = new Properties(); appProps.load(new FileInputStream("src/main/resource/app.properties")); - String srcMLPath = appProps.getProperty("srcMLPath","FORKJOIN"); + String srcMLPath = ""; File revFile = new File("src/main/resource/testFiles/if_else.c"); File prevFile =new File("src/main/resource/testFiles/prev_if_else.c"); @@ -167,7 +166,7 @@ public class TestPredefinedCases { public void testStruct() throws IOException { Properties appProps = new Properties(); appProps.load(new FileInputStream("src/main/resource/app.properties")); - String srcMLPath = appProps.getProperty("srcMLPath","FORKJOIN"); + String srcMLPath = ""; File revFile = new File("src/main/resource/testFiles/struct.c"); File prevFile =new File("src/main/resource/testFiles/prev_struct.c");