Parcourir la source

removed unused files and name changes based on the conventions for json files

Patrick Thiel il y a 4 ans
Parent
commit
f1ccc5de31

+ 1 - 1
jplag.endToEndTesting/src/main/java/de/jplag/end_to_end_testing/model/JsonModel.java

@@ -12,7 +12,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
 public class JsonModel {
     @JsonProperty("function_name")
     private String functionName;
-    @JsonProperty("testResults")
+    @JsonProperty("test_results")
     private ResultModel[] results;
 
     /**

+ 1 - 1
jplag.endToEndTesting/src/main/java/de/jplag/end_to_end_testing/model/ResultModel.java

@@ -10,7 +10,7 @@ public class ResultModel {
 
     @JsonProperty("result_similarity")
     private float resultSimilarity;
-    @JsonProperty("testIdentifier")
+    @JsonProperty("test_identifier")
     private Integer testIdentifier;
 
     /**

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

@@ -1,35 +1,35 @@
 [
   {
     "function_name": "normalizationLevelTest",
-    "testResults": [
+    "test_results": [
       {
         "result_similarity": 100,
-        "testIdentifier": 0
+        "test_identifier": 0
       },
       {
         "result_similarity": 100,
-        "testIdentifier": 1
+        "test_identifier": 1
       },
       {
         "result_similarity": 100,
-        "testIdentifier": 2
+        "test_identifier": 2
       }
     ]
   },
   {
     "function_name": "tokenGenerationLevelTest",
-    "testResults": [
+    "test_results": [
       {
         "result_similarity": 64.0,
-        "testIdentifier": 0
+        "test_identifier": 0
       },
       {
         "result_similarity": 73.04348,
-        "testIdentifier": 1
+        "test_identifier": 1
       },
       {
         "result_similarity": 73.94958,
-        "testIdentifier": 2
+        "test_identifier": 2
       }
     ]
   }

+ 0 - 63
jplag.endToEndTesting/src/test/resources/results/test.json

@@ -1,63 +0,0 @@
-[
-  {
-    "function_name": "normalizationLevelTest",
-    "testResults": [
-      {
-        "result_similarity": 100,
-        "testId": 0
-      },
-      {
-        "result_similarity": 100,
-        "testId": 1
-      },
-      {
-        "result_similarity": 100,
-        "testId": 2
-      }
-    ]
-  },
-  {
-    "function_name": "tokenLevelTest",
-    "testResults": [
-      {
-        "result_similarity": 100,
-        "testId": 0
-      },
-      {
-        "result_similarity": 100,
-        "testId": 1
-      },
-      {
-        "result_similarity": 100,
-        "testId": 2
-      }
-    ]
-  }
-]
-
-[
-   {
-      "function_name":"normalizationLevelTestOne",
-      "result_similarity":100.0
-   },
-   {
-      "function_name":"normalizationLevelTestTwo",
-      "result_similarity":100.0
-   },
-   {
-      "function_name":"normalizationLevelTestThree",
-      "result_similarity":100.0
-   },
-   {
-      "function_name":"tokenGenerationLevelTestOne",
-      "result_similarity":64.0
-   },
-   {
-      "function_name":"tokenGenerationLevelTestTwo",
-      "result_similarity":73.04348
-   },
-   {
-      "function_name":"tokenGenerationLevelTestThree",
-      "result_similarity":73.94958
-   }
-]