瀏覽代碼

Adaptation of the function names to comply with the naming conventions

Patrick Thiel 4 年之前
父節點
當前提交
9cc3225858

+ 6 - 6
jplag.endToEndTesting/src/test/java/jplag/endToEndTesting/javaTestCases.java

@@ -39,7 +39,7 @@ class javaTestCases {
 	 * @throws Exception
 	 * @throws Exception
 	 */
 	 */
 	@Test
 	@Test
-	void normalizationLevelTest_one() throws Exception {
+	void normalizationLevelTestOne() throws Exception {
 
 
 		String[] testClassNames = new String[] { "SortAlgo.java", "SortAlgo1.java" };
 		String[] testClassNames = new String[] { "SortAlgo.java", "SortAlgo1.java" };
 
 
@@ -56,7 +56,7 @@ class javaTestCases {
 	 * @throws Exception
 	 * @throws Exception
 	 */
 	 */
 	@Test
 	@Test
-	void normalizationLevelTest_two() throws Exception {
+	void normalizationLevelTestTwo() throws Exception {
 		String[] testClassNames = new String[] { "SortAlgo.java", "SortAlgo2.java" };
 		String[] testClassNames = new String[] { "SortAlgo.java", "SortAlgo2.java" };
 
 
 		TestCaseModel testCaseModel = jplagTestSuiteHelper.createNewTestCase(testClassNames);
 		TestCaseModel testCaseModel = jplagTestSuiteHelper.createNewTestCase(testClassNames);
@@ -72,7 +72,7 @@ class javaTestCases {
 	 * @throws Exception
 	 * @throws Exception
 	 */
 	 */
 	@Test
 	@Test
-	void normalizationLevelTest_three() throws Exception {
+	void normalizationLevelTestThree() throws Exception {
 		String[] testClassNames = new String[] { "SortAlgo1.java", "SortAlgo2.java" };
 		String[] testClassNames = new String[] { "SortAlgo1.java", "SortAlgo2.java" };
 
 
 		TestCaseModel testCaseModel = jplagTestSuiteHelper.createNewTestCase(testClassNames);
 		TestCaseModel testCaseModel = jplagTestSuiteHelper.createNewTestCase(testClassNames);
@@ -88,7 +88,7 @@ class javaTestCases {
 	 * @throws Exception
 	 * @throws Exception
 	 */
 	 */
 	@Test
 	@Test
-	void tokenGenerationLevelTest_one() throws Exception {
+	void tokenGenerationLevelTestOne() throws Exception {
 		String[] testClassNames = new String[] { "SortAlgo.java", "SortAlgo3.java" };
 		String[] testClassNames = new String[] { "SortAlgo.java", "SortAlgo3.java" };
 
 
 		TestCaseModel testCaseModel = jplagTestSuiteHelper.createNewTestCase(testClassNames);
 		TestCaseModel testCaseModel = jplagTestSuiteHelper.createNewTestCase(testClassNames);
@@ -105,7 +105,7 @@ class javaTestCases {
 	 * @throws Exception
 	 * @throws Exception
 	 */
 	 */
 	@Test
 	@Test
-	void tokenGenerationLevelTest_two() throws Exception {
+	void tokenGenerationLevelTestTwo() throws Exception {
 		String[] testClassNames = new String[] { "SortAlgo.java", "SortAlgo4.java" };
 		String[] testClassNames = new String[] { "SortAlgo.java", "SortAlgo4.java" };
 
 
 		TestCaseModel testCaseModel = jplagTestSuiteHelper.createNewTestCase(testClassNames);
 		TestCaseModel testCaseModel = jplagTestSuiteHelper.createNewTestCase(testClassNames);
@@ -121,7 +121,7 @@ class javaTestCases {
 	 * @throws Exception 
 	 * @throws Exception 
 	 */
 	 */
 	@Test
 	@Test
-	void tokenGenerationLevelTest_three() throws Exception {
+	void tokenGenerationLevelTestThree() throws Exception {
 		String[] testClassNames = new String[] { "SortAlgo.java", "SortAlgo4d1.java" };
 		String[] testClassNames = new String[] { "SortAlgo.java", "SortAlgo4d1.java" };
 
 
 		TestCaseModel testCaseModel = jplagTestSuiteHelper.createNewTestCase(testClassNames);
 		TestCaseModel testCaseModel = jplagTestSuiteHelper.createNewTestCase(testClassNames);

+ 6 - 6
jplag.endToEndTesting/src/test/resources/results/JavaResult.json

@@ -1,26 +1,26 @@
 [
 [
    {
    {
-      "functionName":"normalizationLevelTest_one",
+      "functionName":"normalizationLevelTestOne",
       "resultSimilarity":100.0
       "resultSimilarity":100.0
    },
    },
    {
    {
-      "functionName":"normalizationLevelTest_two",
+      "functionName":"normalizationLevelTestTwo",
       "resultSimilarity":100.0
       "resultSimilarity":100.0
    },
    },
    {
    {
-      "functionName":"normalizationLevelTest_three",
+      "functionName":"normalizationLevelTestThree",
       "resultSimilarity":100.0
       "resultSimilarity":100.0
    },
    },
    {
    {
-      "functionName":"tokenGenerationLevelTest_one",
+      "functionName":"tokenGenerationLevelTestOne",
       "resultSimilarity":64.0
       "resultSimilarity":64.0
    },
    },
    {
    {
-      "functionName":"tokenGenerationLevelTest_two",
+      "functionName":"tokenGenerationLevelTestTwo",
       "resultSimilarity":73.04348
       "resultSimilarity":73.04348
    },
    },
    {
    {
-      "functionName":"tokenGenerationLevelTest_three",
+      "functionName":"tokenGenerationLevelTestThree",
       "resultSimilarity":73.94958
       "resultSimilarity":73.94958
    }
    }
 ]
 ]