Просмотр исходного кода

Code factoring operated. Creating comments and documentation. Module in project-pom moved to"module-defaults".

Patrick Thiel 4 лет назад
Родитель
Сommit
6cd786845f

+ 28 - 5
jplag.endToEndTesting/src/main/java/de/jplag/endToEndTesting/constants/Constant.java

@@ -2,22 +2,45 @@ package de.jplag.endToEndTesting.constants;
 
 import java.nio.file.Path;
 
+/**
+ * All constant values that are needed in the test cases or helper classes.
+ *
+ */
 public final class Constant {
 
 	private Constant() {
 		// private constructor to prevent instantiation
 	}
 
-	// can be exchanged for a suitable standard path if necessary
+	/**
+	 * Empty string to be able to query possible empty return values.
+	 */
 	public static final String EMPTY_STRING = "";
+	/**
+	 * Name for the folder to copy the submissions to in order to test them with
+	 * JPlag
+	 */
 	public static final String TEMPORARY_DIRECTORY_NAME = "submission";
-	public static final String TEMPORARY_SYSTEM_DIRECTORY = "java.io.tmpdir";
-	
-	public static final String TEMPORARY_SUBMISSION_DIRECTORY_NAME = Path.of(System.getProperty(TEMPORARY_SYSTEM_DIRECTORY), TEMPORARY_DIRECTORY_NAME).toString();
+	/**
+	 * Identifier to find the system specific temporary directory.
+	 */
+	private static final String TEMPORARY_SYSTEM_DIRECTORY = "java.io.tmpdir";
+	/**
+	 * Create the complete path to the submission files. Here the temporary system
+	 * path is extended with the "TEMPORARY_DIRECTORY_NAME", which is predefined in
+	 * this class.
+	 */
+	public static final String TEMPORARY_SUBMISSION_DIRECTORY_NAME = Path
+			.of(System.getProperty(TEMPORARY_SYSTEM_DIRECTORY), TEMPORARY_DIRECTORY_NAME).toString();
 
-	// constant final project strings
+	/**
+	 * Base path to the created plagiarism and the main file located in the project resources. 
+	 */
 	public static final Path BASE_PATH_TO_JAVA_RESOURCES_SORTALGO = Path.of("src", "test", "resources", "java",
 			"sortAlgo");
+	/**
+	 * Base path to the saved results of the previous tests in a *.json file
+	 */
 	public static final Path BASE_PATH_TO_JAVA_RESULT_JSON = Path.of("src", "test", "resources", "results",
 			"javaResult.json");
 }

+ 30 - 20
jplag.endToEndTesting/src/main/java/de/jplag/endToEndTesting/helper/JPlagTestSuiteHelper.java

@@ -3,7 +3,6 @@ package de.jplag.endToEndTesting.helper;
 import java.io.File;
 import java.io.FileNotFoundException;
 import java.io.IOException;
-
 import java.nio.file.Files;
 import java.nio.file.Path;
 import java.nio.file.StandardCopyOption;
@@ -11,16 +10,23 @@ import java.nio.file.StandardCopyOption;
 import java.util.Arrays;
 import java.util.List;
 
-import javax.annotation.processing.FilerException;
-
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 import de.jplag.endToEndTesting.constants.Constant;
+import de.jplag.endToEndTesting.model.ResultJsonModel;
+import de.jplag.endToEndTesting.model.TestCaseModel;
+
 import de.jplag.options.LanguageOption;
-import model.ResultJsonModel;
-import model.TestCaseModel;
 
+/**
+ * This helper class deals with creating the test cases as well as copying and
+ * deleting for the end-to-end tests. The required plagiarisms are copied from
+ * the resource folder to a temporary location, thus creating a folder structure
+ * that can be tested by JPlag. Models are instantiated here and required
+ * information for the tests is loaded.
+ *
+ */
 public class JPlagTestSuiteHelper {
 
 	private static final Logger logger = LoggerFactory.getLogger("EndToEndTesting");
@@ -36,9 +42,11 @@ public class JPlagTestSuiteHelper {
 	 * run with the specified language
 	 * 
 	 * @param languageOption for loading language-specific resources
-	 * @throws Exception
+	 * @throws IOException is thrown for all problems that may occur while parsing
+	 *                     the json file. This includes both reading and parsing
+	 *                     problems.
 	 */
-	public JPlagTestSuiteHelper(LanguageOption languageOption) throws Exception {
+	public JPlagTestSuiteHelper(LanguageOption languageOption) throws IOException {
 		this.languageOption = languageOption;
 		this.resourceNames = new File(Constant.BASE_PATH_TO_JAVA_RESOURCES_SORTALGO.toString()).list();
 
@@ -51,11 +59,13 @@ public class JPlagTestSuiteHelper {
 	 * for the stored previous results of the test in order to compare them with the
 	 * current results.
 	 * 
-	 * @param classNames
+	 * @param classNames Array of class names with language specific extension to be
+	 *                   prepared for a test.
 	 * @return comparison results saved for the test
-	 * @throws Exception
+	 * @throws IOException Exception can be thrown in cases that involve reading,
+	 *                     copying or locating files.
 	 */
-	public TestCaseModel createNewTestCase(String[] classNames) throws Exception {
+	public TestCaseModel createNewTestCase(String[] classNames) throws IOException {
 		createNewTestCaseDirectory(classNames);
 		var functionName = StackWalker.getInstance().walk(stream -> stream.skip(1).findFirst().get()).getMethodName();
 		ResultJsonModel resultJsonModel = resultModel.stream()
@@ -66,9 +76,8 @@ public class JPlagTestSuiteHelper {
 	/**
 	 * The copied data should be deleted after instance closure
 	 * 
-	 * @throws Exception
 	 */
-	public void clear() throws Exception {
+	public void clear() {
 		logger.info("Class instance was cleaned!");
 		deleteCopiedFiles(new File(Constant.TEMPORARY_SUBMISSION_DIRECTORY_NAME));
 	}
@@ -76,9 +85,10 @@ public class JPlagTestSuiteHelper {
 	/**
 	 * Copies the passed filenames to a temporary path to use them in the tests
 	 * 
-	 * @throws Exception
+	 * @throws IOException Exception can be thrown in cases that involve reading,
+	 *                     copying or locating files.
 	 */
-	private void createNewTestCaseDirectory(String[] classNames) throws Exception {
+	private void createNewTestCaseDirectory(String[] classNames) throws IOException {
 		// before copying files to the test path, check if all files are in the resource
 		// directory
 		for (String className : classNames) {
@@ -106,17 +116,17 @@ public class JPlagTestSuiteHelper {
 	/**
 	 * Delete directory with including files
 	 * 
-	 * @param file
+	 * @param file Path to a folder or file to be deleted. This happens recursively to the path
 	 */
 	private void deleteCopiedFiles(File folder) {
 		File[] files = folder.listFiles();
 		if (files != null) { // some JVMs return null for empty dirs
-			for (File f : files) {
-				if (f.isDirectory()) {
-					deleteCopiedFiles(f);
+			for (File file : files) {
+				if (file.isDirectory()) {
+					deleteCopiedFiles(file);
 				} else {
-					logger.info(String.format("Delete file in folder: [%s]", f.toString()));
-					f.delete();
+					logger.info(String.format("Delete file in folder: [%s]", file.toString()));
+					file.delete();
 				}
 			}
 		}

+ 13 - 12
jplag.endToEndTesting/src/main/java/de/jplag/endToEndTesting/helper/JsonHelper.java

@@ -1,34 +1,35 @@
 package de.jplag.endToEndTesting.helper;
 
-import java.nio.file.Paths;
-
+import java.io.IOException;
 import java.util.Arrays;
 import java.util.List;
 
-import com.fasterxml.jackson.core.JsonProcessingException;
-import com.fasterxml.jackson.databind.JsonMappingException;
 import com.fasterxml.jackson.databind.ObjectMapper;
 
 import de.jplag.endToEndTesting.constants.Constant;
-import model.ResultJsonModel;
+import de.jplag.endToEndTesting.model.ResultJsonModel;
 
+/**
+ * Helper class for serializing and creating all json dependent events.
+ *
+ */
 public final class JsonHelper {
 
+	/**
+	 * private constructor to prevent instantiation
+	 */
 	private JsonHelper() {
-		// private constructor to prevent instantiation
 	}
 
 	/**
 	 * Parsing the old results in the json file as a list from ResultJsonModel.
 	 * 
-	 * @param pathToJsonFile
 	 * @return list of saved results for the test cases
-	 * @throws JsonMappingException
-	 * @throws JsonProcessingException
-	 * @throws Exception
+	 * @throws IOException is thrown for all problems that may occur while parsing
+	 *                     the json file. This includes both reading and parsing
+	 *                     problems.
 	 */
-	public static List<ResultJsonModel> getResultModelFromPath()
-			throws JsonMappingException, JsonProcessingException, Exception {
+	public static List<ResultJsonModel> getResultModelFromPath() throws IOException {
 		return Arrays.asList(
 				new ObjectMapper().readValue(Constant.BASE_PATH_TO_JAVA_RESULT_JSON.toFile(), ResultJsonModel[].class));
 	}

+ 53 - 0
jplag.endToEndTesting/src/main/java/de/jplag/endToEndTesting/model/ResultJsonModel.java

@@ -0,0 +1,53 @@
+package de.jplag.endToEndTesting.model;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The ResultJsonModel is the java object for the JavaResult.json file. The
+ * object contains all the necessary information for the comparisons in the test
+ * cases between old and new results, which have been stored in the
+ * JavaResult.json file.
+ */
+public class ResultJsonModel {
+
+	@JsonProperty("function_name")
+	private String functionName;
+	@JsonProperty("result_similarity")
+	private String resultSimilarity;
+
+	/**
+	 * Constructor for the ResultJsonModel. The model is the serialization of the
+	 * Json file in the form of a Java object.
+	 * 
+	 * @param functionName     the function name for the associated test results.
+	 *                         Used as identifier to search results for the test
+	 *                         cases.
+	 * @param resultSimilarity Comparison value used in the tests
+	 */
+	public ResultJsonModel(String functionName, String resultSimilarity) {
+		this.functionName = functionName;
+		this.resultSimilarity = resultSimilarity;
+	}
+
+	/**
+	 * empty constructor in case the serialization contains an empty object to
+	 * prevent throwing exceptions. this constructor was necessary for serialization
+	 * with the Jackson parse extension
+	 */
+	public ResultJsonModel() {
+	}
+
+	/**
+	 * @return of the comparative similarity
+	 */
+	public float similarity() {
+		return Float.parseFloat(resultSimilarity);
+	}
+
+	/**
+	 * @return functionname associated with the results
+	 */
+	public String getFunctionName() {
+		return functionName;
+	}
+}

+ 23 - 15
jplag.endToEndTesting/src/main/java/model/TestCaseModel.java → jplag.endToEndTesting/src/main/java/de/jplag/endToEndTesting/model/TestCaseModel.java

@@ -1,44 +1,52 @@
-package model;
+package de.jplag.endToEndTesting.model;
 
 import java.util.ArrayList;
 import java.util.Arrays;
 
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import de.jplag.JPlagComparison;
-import de.jplag.JPlagResult;
 import de.jplag.options.JPlagOptions;
 import de.jplag.options.LanguageOption;
 
+/**
+ * Median class for trading the results and the paths used in the tests. Also
+ * the JPlagOptions used for a test run are created here.
+ */
 public class TestCaseModel {
-	private static final Logger logger = LoggerFactory.getLogger("EndToEndTesting");
-	
+
 	private ResultJsonModel resultJsonModel;
 	private LanguageOption languageOption;
 	private String submissionFolderPath;
 
+	/**
+	 * Constructor for creating the instance
+	 * 
+	 * @param submissionFolderPath path to the plagiarism folder structure to be tested using Jplag
+	 * @param resultJsonModel the parsed result model needed for the test to be able to match it later in the tests.
+	 * @param languageOption the language selection in which the tests take place 
+	 */
 	public TestCaseModel(String submissionFolderPath, ResultJsonModel resultJsonModel, LanguageOption languageOption) {
 		this.submissionFolderPath = submissionFolderPath;
 		this.resultJsonModel = resultJsonModel;
 		this.languageOption = languageOption;
 	}
-	
+
 	/**
-	 * returns the, for the test, current result model that has been persisted in the saved list. 
+	 * returns the, for the test, current result model that has been persisted in
+	 * the saved list.
+	 * 
 	 * @return ResultJsonModel loaded for the test
 	 */
-	public ResultJsonModel getCurrentResultJsonModel()
-	{
+	public ResultJsonModel getCurrentResultJsonModel() {
 		return resultJsonModel;
 	}
-	
+
 	/**
-	 * creates the JPlag options for the test run from the values passed in the constructor.
+	 * creates the JPlag options for the test run from the values passed in the
+	 * constructor.
+	 * 
 	 * @return current JPlag options for the created object
 	 */
 	public JPlagOptions getJPlagOptionsFromCurrentModel() {
-		return new JPlagOptions(new ArrayList<>(Arrays.asList(submissionFolderPath)), new ArrayList<String>(),
+		return new JPlagOptions(new ArrayList<String>(Arrays.asList(submissionFolderPath)), new ArrayList<String>(),
 				languageOption);
 	}
 }

+ 0 - 31
jplag.endToEndTesting/src/main/java/model/ResultJsonModel.java

@@ -1,31 +0,0 @@
-package model;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-public class ResultJsonModel {
-
-	@JsonProperty("function_name")
-	private String functionName;
-	@JsonProperty("result_similarity")
-	private String resultSimilarity;
-	
-	public ResultJsonModel(String functionName, String resultSimilarity)
-	{
-		this.functionName = functionName;
-		this.resultSimilarity = resultSimilarity;
-	}
-	
-	public ResultJsonModel()
-	{
-	}
-	
-	public float similarity()
-	{
-		return Float.parseFloat(resultSimilarity);
-	}
-	
-	public String getFunctionName()
-	{
-		return functionName;
-	}
-}

+ 66 - 32
jplag.endToEndTesting/src/test/java/jplag/endToEndTesting/javaTestCases.java

@@ -3,6 +3,8 @@ package jplag.endToEndTesting;
 import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 
+import java.io.IOException;
+
 import org.junit.jupiter.api.AfterEach;
 import org.junit.jupiter.api.BeforeAll;
 import org.junit.jupiter.api.Test;
@@ -15,18 +17,25 @@ import de.jplag.JPlagComparison;
 import de.jplag.JPlagResult;
 import de.jplag.endToEndTesting.constants.Constant;
 import de.jplag.endToEndTesting.helper.JPlagTestSuiteHelper;
+import de.jplag.endToEndTesting.model.TestCaseModel;
+import de.jplag.exceptions.ExitException;
 import de.jplag.options.LanguageOption;
 
-import model.TestCaseModel;
-
+/**
+ * Main test class for end-to-end testing in the Java language. The test cases
+ * aim to detect changes in the detection of plagiarism in the Java language and
+ * to be able to roughly categorize them. The plagiarism is compared with the
+ * original class. The results are compared with the results from previous tests
+ * and changes are detected.
+ */
 @TestInstance(TestInstance.Lifecycle.PER_CLASS)
 class javaTestCases {
 	private static final Logger logger = LoggerFactory.getLogger("EndToEndTesting");
-	
+
 	private JPlagTestSuiteHelper jplagTestSuiteHelper;
 
 	@BeforeAll
-	public void setUp() throws Exception {
+	public void setUp() throws IOException {
 		jplagTestSuiteHelper = new JPlagTestSuiteHelper(LanguageOption.JAVA);
 		assertTrue(Constant.BASE_PATH_TO_JAVA_RESOURCES_SORTALGO.toFile().exists(), "Could not find base directory!");
 		assertTrue(Constant.BASE_PATH_TO_JAVA_RESULT_JSON.toFile().exists(),
@@ -34,7 +43,7 @@ class javaTestCases {
 	}
 
 	@AfterEach
-	public void teardown() throws Exception {
+	public void teardown() {
 		// after close the created directories are deleted
 		jplagTestSuiteHelper.clear();
 	}
@@ -42,32 +51,39 @@ class javaTestCases {
 	/**
 	 * Inserting comments or empty lines (normalization level)
 	 * 
-	 * @throws Exception
+	 * @throws IOException   is thrown in case of problems with copying the
+	 *                       plagiarism classes
+	 * @throws ExitException in case the plagiarism detection with JPlag is
+	 *                       preemptively terminated would be of the test.
 	 */
 	@Test
-	void normalizationLevelTestOne() throws Exception {
+	void normalizationLevelTestOne() throws IOException, ExitException {
 
 		String[] testClassNames = new String[] { "SortAlgo.java", "SortAlgo1.java" };
 
 		TestCaseModel testCaseModel = jplagTestSuiteHelper.createNewTestCase(testClassNames);
 
 		JPlagResult jplagResult = new JPlag(testCaseModel.getJPlagOptionsFromCurrentModel()).run();
-		
+
 		var resultJsonModel = testCaseModel.getCurrentResultJsonModel();
-		
+
 		for (JPlagComparison jPlagComparison : jplagResult.getAllComparisons()) {
 			logger.info("Comparison of the stored values and the current equality values");
-			assertEquals( resultJsonModel.similarity(), jPlagComparison.similarity() , "The JPlag results [similarity] do not match the stored values!");
+			assertEquals(resultJsonModel.similarity(), jPlagComparison.similarity(),
+					"The JPlag results [similarity] do not match the stored values!");
 		}
 	}
 
 	/**
 	 * Changing variable names or function names (normalization level)
 	 * 
-	 * @throws Exception
+	 * @throws IOException   is thrown in case of problems with copying the
+	 *                       plagiarism classes
+	 * @throws ExitException in case the plagiarism detection with JPlag is
+	 *                       preemptively terminated would be of the test.
 	 */
 	@Test
-	void normalizationLevelTestTwo() throws Exception {
+	void normalizationLevelTestTwo() throws IOException, ExitException {
 		String[] testClassNames = new String[] { "SortAlgo.java", "SortAlgo2.java" };
 
 		TestCaseModel testCaseModel = jplagTestSuiteHelper.createNewTestCase(testClassNames);
@@ -75,20 +91,24 @@ class javaTestCases {
 		JPlagResult jplagResult = new JPlag(testCaseModel.getJPlagOptionsFromCurrentModel()).run();
 
 		var resultJsonModel = testCaseModel.getCurrentResultJsonModel();
-		
+
 		for (JPlagComparison jPlagComparison : jplagResult.getAllComparisons()) {
 			logger.info("Comparison of the stored values and the current equality values");
-			assertEquals( resultJsonModel.similarity(), jPlagComparison.similarity() , "The JPlag results [similarity] do not match the stored values!");
+			assertEquals(resultJsonModel.similarity(), jPlagComparison.similarity(),
+					"The JPlag results [similarity] do not match the stored values!");
 		}
 	}
 
 	/**
 	 * Inserting comments or empty lines (normalization level)
 	 * 
-	 * @throws Exception
+	 * @throws IOException   is thrown in case of problems with copying the
+	 *                       plagiarism classes
+	 * @throws ExitException in case the plagiarism detection with JPlag is
+	 *                       preemptively terminated would be of the test.
 	 */
 	@Test
-	void normalizationLevelTestThree() throws Exception {
+	void normalizationLevelTestThree() throws IOException, ExitException {
 		String[] testClassNames = new String[] { "SortAlgo1.java", "SortAlgo2.java" };
 
 		TestCaseModel testCaseModel = jplagTestSuiteHelper.createNewTestCase(testClassNames);
@@ -96,20 +116,24 @@ class javaTestCases {
 		JPlagResult jplagResult = new JPlag(testCaseModel.getJPlagOptionsFromCurrentModel()).run();
 
 		var resultJsonModel = testCaseModel.getCurrentResultJsonModel();
-		
+
 		for (JPlagComparison jPlagComparison : jplagResult.getAllComparisons()) {
 			logger.info("Comparison of the stored values and the current equality values");
-			assertEquals( resultJsonModel.similarity(), jPlagComparison.similarity() , "The JPlag results [similarity] do not match the stored values!");
+			assertEquals(resultJsonModel.similarity(), jPlagComparison.similarity(),
+					"The JPlag results [similarity] do not match the stored values!");
 		}
 	}
 
 	/**
 	 * Insertion of unnecessary or changed code lines (token generation)
 	 * 
-	 * @throws Exception
+	 * @throws IOException   is thrown in case of problems with copying the
+	 *                       plagiarism classes
+	 * @throws ExitException in case the plagiarism detection with JPlag is
+	 *                       preemptively terminated would be of the test.
 	 */
 	@Test
-	void tokenGenerationLevelTestOne() throws Exception {
+	void tokenGenerationLevelTestOne() throws IOException, ExitException {
 		String[] testClassNames = new String[] { "SortAlgo.java", "SortAlgo3.java" };
 
 		TestCaseModel testCaseModel = jplagTestSuiteHelper.createNewTestCase(testClassNames);
@@ -117,21 +141,25 @@ class javaTestCases {
 		JPlagResult jplagResult = new JPlag(testCaseModel.getJPlagOptionsFromCurrentModel()).run();
 
 		var resultJsonModel = testCaseModel.getCurrentResultJsonModel();
-		
+
 		for (JPlagComparison jPlagComparison : jplagResult.getAllComparisons()) {
 			logger.info("Comparison of the stored values and the current equality values");
-			assertEquals( resultJsonModel.similarity(), jPlagComparison.similarity() , "The JPlag results [similarity] do not match the stored values!");
+			assertEquals(resultJsonModel.similarity(), jPlagComparison.similarity(),
+					"The JPlag results [similarity] do not match the stored values!");
 		}
 	}
 
 	/**
-	 * Changing the program flow (token generation) (statements and functions must be
-	 * independent from each other)
+	 * Changing the program flow (token generation) (statements and functions must
+	 * be independent from each other)
 	 * 
-	 * @throws Exception
+	 * @throws IOException   is thrown in case of problems with copying the
+	 *                       plagiarism classes
+	 * @throws ExitException in case the plagiarism detection with JPlag is
+	 *                       preemptively terminated would be of the test.
 	 */
 	@Test
-	void tokenGenerationLevelTestTwo() throws Exception {
+	void tokenGenerationLevelTestTwo() throws IOException, ExitException {
 		String[] testClassNames = new String[] { "SortAlgo.java", "SortAlgo4.java" };
 
 		TestCaseModel testCaseModel = jplagTestSuiteHelper.createNewTestCase(testClassNames);
@@ -139,20 +167,25 @@ class javaTestCases {
 		JPlagResult jplagResult = new JPlag(testCaseModel.getJPlagOptionsFromCurrentModel()).run();
 
 		var resultJsonModel = testCaseModel.getCurrentResultJsonModel();
-		
+
 		for (JPlagComparison jPlagComparison : jplagResult.getAllComparisons()) {
 			logger.info("Comparison of the stored values and the current equality values");
-			assertEquals( resultJsonModel.similarity(), jPlagComparison.similarity() , "The JPlag results [similarity] do not match the stored values!");
+			assertEquals(resultJsonModel.similarity(), jPlagComparison.similarity(),
+					"The JPlag results [similarity] do not match the stored values!");
 		}
 	}
 
 	/**
 	 * Variable declaration at the beginning of the program (Detecting Source Code
 	 * Plagiarism [...])
-	 * @throws Exception 
+	 * 
+	 * @throws IOException   is thrown in case of problems with copying the
+	 *                       plagiarism classes
+	 * @throws ExitException in case the plagiarism detection with JPlag is
+	 *                       preemptively terminated would be of the test.
 	 */
 	@Test
-	void tokenGenerationLevelTestThree() throws Exception {
+	void tokenGenerationLevelTestThree() throws IOException, ExitException {
 		String[] testClassNames = new String[] { "SortAlgo.java", "SortAlgo4d1.java" };
 
 		TestCaseModel testCaseModel = jplagTestSuiteHelper.createNewTestCase(testClassNames);
@@ -160,10 +193,11 @@ class javaTestCases {
 		JPlagResult jplagResult = new JPlag(testCaseModel.getJPlagOptionsFromCurrentModel()).run();
 
 		var resultJsonModel = testCaseModel.getCurrentResultJsonModel();
-		
+
 		for (JPlagComparison jPlagComparison : jplagResult.getAllComparisons()) {
 			logger.info("Comparison of the stored values and the current equality values");
-			assertEquals( resultJsonModel.similarity(), jPlagComparison.similarity() , "The JPlag results [similarity] do not match the stored values!");
+			assertEquals(resultJsonModel.similarity(), jPlagComparison.similarity(),
+					"The JPlag results [similarity] do not match the stored values!");
 		}
 	}
 }

+ 1 - 1
pom.xml

@@ -460,6 +460,7 @@
                 <module>jplag.frontend.rlang</module>
                 <module>jplag.frontend.scheme</module>
                 <module>jplag.frontend.text</module>
+                <module>jplag.endToEndTesting</module>
                 <module>jplag</module>
                 <module>jplag.cli</module>
             </modules>
@@ -482,7 +483,6 @@
                 <module>jplag.frontend.rlang</module>
                 <module>jplag.frontend.scheme</module>
                 <module>jplag.frontend.text</module>
-                <module>jplag.endToEndTesting</module>
                 <module>jplag</module>
             </modules>
             <build>