From 6f885f8a35605a97b9374d278fbdf04fe7098d02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Fuch=C3=9F?= Date: Fri, 14 Apr 2023 10:54:35 +0200 Subject: [PATCH] Split into profiles --- .gitignore | 2 - framework/pom.xml | 2 +- pom.xml | 28 +++- report/pom.xml | 15 +- stages/pom.xml | 71 ++++++++-- tests/pom.xml | 89 ++++++------ tests/tests-base/pom.xml | 40 ++++++ .../mcse/ardoco/core/tests/TestUtil.java | 0 .../tests/eval/ConfigurationTestBase.java} | 113 +++------------ .../core/tests/eval/EvaluationMetrics.java | 4 +- .../ardoco/core/tests/eval/GoldStandard.java | 0 .../mcse/ardoco/core/tests/eval/Project.java | 90 ++++++------ .../eval/helper/CombineGoldStandards.java | 0 .../eval/results/EvaluationResultVector.java | 0 .../tests/eval/results/EvaluationResults.java | 0 .../tests/eval/results/ExpectedResults.java | 0 .../core/tests/eval/results/ResultMatrix.java | 0 .../calculator/ResultCalculatorUtil.java | 0 tests/tests-default/pom.xml | 43 ++++++ .../tests/ArchitectureModelProviderTest.java | 0 .../ardoco/core/tests/ConfigurationTest.java | 131 ++++++++++++++++++ .../tests/architecture/ArchitectureTest.java | 0 .../tests/eval/EvaluationMetricsTest.java | 0 .../core/tests/eval/helper/LoadPCMTest.java | 0 .../statehelper/ChangedStatesTest.java | 0 .../files/ConnectionStateFile.java | 0 .../files/RecommendationStateFile.java | 0 .../statehelper/files/TextStateFile.java | 0 .../configurations/bbb/filterlists_all.txt | 0 .../configurations/bbb/filterlists_none.txt | 0 .../bbb/filterlists_onlyCommon.txt | 0 .../configurations/jabref/enhanced_jabref.txt | 0 .../configurations/jabref/filterlists_all.txt | 0 .../jabref/filterlists_none.txt | 0 .../jabref/filterlists_onlyCommon.txt | 0 .../configurations/ms/filterlists_all.txt | 0 .../configurations/ms/filterlists_none.txt | 0 .../ms/filterlists_onlyCommon.txt | 0 .../configurations/tm/filterlists_all.txt | 0 .../configurations/tm/filterlists_none.txt | 0 .../tm/filterlists_onlyCommon.txt | 0 .../configurations/ts/filterlists_all.txt | 0 .../configurations/ts/filterlists_none.txt | 0 .../ts/filterlists_onlyCommon.txt | 0 .../test/resources/simplelogger.properties | 0 .../src/test/resources/testout/.gitkeep | 0 tests/tests-inconsistency/pom.xml | 72 ++++++++++ .../ardoco/core/tests/ConfigurationTest.java | 46 ++++++ .../eval/baseline/InconsistencyBaseline.java | 0 .../baseline/InconsistencyBaselineAgent.java | 0 .../InconsistencyBaselineInformant.java | 0 .../InconsistencyDetectionEvaluationIT.java | 0 .../HoldBackRunResultsProducer.java | 0 .../HoldElementsBackModelConnector.java | 0 .../src/test/resources/testout/.gitkeep | 0 tests/tests-tlr/pom.xml | 72 ++++++++++ .../ardoco/core/tests/ConfigurationTest.java | 41 ++++++ .../TraceabilityLinkRecoveryEvaluationIT.java | 1 - .../tests/integration/tlrhelper/TLRUtil.java | 0 .../tests/integration/tlrhelper/TestLink.java | 0 .../tlrhelper/files/TLDiffFile.java | 0 .../tlrhelper/files/TLGoldStandardFile.java | 0 .../tlrhelper/files/TLLogFile.java | 0 .../tlrhelper/files/TLModelFile.java | 0 .../tlrhelper/files/TLPreviousFile.java | 0 .../tlrhelper/files/TLSentenceFile.java | 0 .../tlrhelper/files/TLSummaryFile.java | 0 .../src/test/resources/testout/.gitkeep | 0 68 files changed, 654 insertions(+), 206 deletions(-) create mode 100644 tests/tests-base/pom.xml rename tests/{src/test => tests-base/src/main}/java/edu/kit/kastel/mcse/ardoco/core/tests/TestUtil.java (100%) rename tests/{src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/ConfigurationTest.java => tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/ConfigurationTestBase.java} (60%) rename tests/{src/test => tests-base/src/main}/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/EvaluationMetrics.java (99%) rename tests/{src/test => tests-base/src/main}/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/GoldStandard.java (100%) rename tests/{src/test => tests-base/src/main}/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/Project.java (65%) rename tests/{src/test => tests-base/src/main}/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/helper/CombineGoldStandards.java (100%) rename tests/{src/test => tests-base/src/main}/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/results/EvaluationResultVector.java (100%) rename tests/{src/test => tests-base/src/main}/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/results/EvaluationResults.java (100%) rename tests/{src/test => tests-base/src/main}/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/results/ExpectedResults.java (100%) rename tests/{src/test => tests-base/src/main}/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/results/ResultMatrix.java (100%) rename tests/{src/test => tests-base/src/main}/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/results/calculator/ResultCalculatorUtil.java (100%) create mode 100644 tests/tests-default/pom.xml rename tests/{ => tests-default}/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/ArchitectureModelProviderTest.java (100%) create mode 100644 tests/tests-default/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/ConfigurationTest.java rename tests/{ => tests-default}/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/architecture/ArchitectureTest.java (100%) rename tests/{ => tests-default}/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/EvaluationMetricsTest.java (100%) rename tests/{ => tests-default}/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/helper/LoadPCMTest.java (100%) rename tests/{ => tests-default}/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/statehelper/ChangedStatesTest.java (100%) rename tests/{ => tests-default}/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/statehelper/files/ConnectionStateFile.java (100%) rename tests/{ => tests-default}/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/statehelper/files/RecommendationStateFile.java (100%) rename tests/{ => tests-default}/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/statehelper/files/TextStateFile.java (100%) rename tests/{ => tests-default}/src/test/resources/configurations/bbb/filterlists_all.txt (100%) rename tests/{ => tests-default}/src/test/resources/configurations/bbb/filterlists_none.txt (100%) rename tests/{ => tests-default}/src/test/resources/configurations/bbb/filterlists_onlyCommon.txt (100%) rename tests/{ => tests-default}/src/test/resources/configurations/jabref/enhanced_jabref.txt (100%) rename tests/{ => tests-default}/src/test/resources/configurations/jabref/filterlists_all.txt (100%) rename tests/{ => tests-default}/src/test/resources/configurations/jabref/filterlists_none.txt (100%) rename tests/{ => tests-default}/src/test/resources/configurations/jabref/filterlists_onlyCommon.txt (100%) rename tests/{ => tests-default}/src/test/resources/configurations/ms/filterlists_all.txt (100%) rename tests/{ => tests-default}/src/test/resources/configurations/ms/filterlists_none.txt (100%) rename tests/{ => tests-default}/src/test/resources/configurations/ms/filterlists_onlyCommon.txt (100%) rename tests/{ => tests-default}/src/test/resources/configurations/tm/filterlists_all.txt (100%) rename tests/{ => tests-default}/src/test/resources/configurations/tm/filterlists_none.txt (100%) rename tests/{ => tests-default}/src/test/resources/configurations/tm/filterlists_onlyCommon.txt (100%) rename tests/{ => tests-default}/src/test/resources/configurations/ts/filterlists_all.txt (100%) rename tests/{ => tests-default}/src/test/resources/configurations/ts/filterlists_none.txt (100%) rename tests/{ => tests-default}/src/test/resources/configurations/ts/filterlists_onlyCommon.txt (100%) rename tests/{ => tests-default}/src/test/resources/simplelogger.properties (100%) rename tests/{ => tests-default}/src/test/resources/testout/.gitkeep (100%) create mode 100644 tests/tests-inconsistency/pom.xml create mode 100644 tests/tests-inconsistency/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/ConfigurationTest.java rename tests/{ => tests-inconsistency}/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/baseline/InconsistencyBaseline.java (100%) rename tests/{ => tests-inconsistency}/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/baseline/InconsistencyBaselineAgent.java (100%) rename tests/{ => tests-inconsistency}/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/baseline/InconsistencyBaselineInformant.java (100%) rename tests/{ => tests-inconsistency}/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/InconsistencyDetectionEvaluationIT.java (100%) rename tests/{ => tests-inconsistency}/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/inconsistencyhelper/HoldBackRunResultsProducer.java (100%) rename tests/{ => tests-inconsistency}/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/inconsistencyhelper/HoldElementsBackModelConnector.java (100%) create mode 100644 tests/tests-inconsistency/src/test/resources/testout/.gitkeep create mode 100644 tests/tests-tlr/pom.xml create mode 100644 tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/ConfigurationTest.java rename tests/{ => tests-tlr}/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/TraceabilityLinkRecoveryEvaluationIT.java (99%) rename tests/{ => tests-tlr}/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/TLRUtil.java (100%) rename tests/{ => tests-tlr}/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/TestLink.java (100%) rename tests/{ => tests-tlr}/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLDiffFile.java (100%) rename tests/{ => tests-tlr}/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLGoldStandardFile.java (100%) rename tests/{ => tests-tlr}/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLLogFile.java (100%) rename tests/{ => tests-tlr}/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLModelFile.java (100%) rename tests/{ => tests-tlr}/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLPreviousFile.java (100%) rename tests/{ => tests-tlr}/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLSentenceFile.java (100%) rename tests/{ => tests-tlr}/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLSummaryFile.java (100%) create mode 100644 tests/tests-tlr/src/test/resources/testout/.gitkeep diff --git a/.gitignore b/.gitignore index 68950f458..c4d6ed1ea 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,5 @@ .flattened-pom.xml -tests/src/test/resources/testout/* - tests/src/test/resources/config.properties tmp* diff --git a/framework/pom.xml b/framework/pom.xml index 75941072f..075fccd2b 100644 --- a/framework/pom.xml +++ b/framework/pom.xml @@ -29,7 +29,7 @@ - module-defaults + complete true diff --git a/pom.xml b/pom.xml index a251a9cad..c7f9d774a 100644 --- a/pom.xml +++ b/pom.xml @@ -552,7 +552,7 @@ - module-defaults + complete true @@ -564,5 +564,31 @@ report + + + tlr + + false + + + framework + pipeline + stages + tests + + + + + inconsistency + + false + + + framework + pipeline + stages + tests + + diff --git a/report/pom.xml b/report/pom.xml index e8a19caaa..7a3d44f04 100644 --- a/report/pom.xml +++ b/report/pom.xml @@ -77,11 +77,22 @@ ${project.groupId} - tests + tests-default + ${project.version} + test + + + ${project.groupId} + tests-tlr + ${project.version} + test + + + ${project.groupId} + tests-inconsistency ${project.version} test - diff --git a/stages/pom.xml b/stages/pom.xml index 4d9b79242..abb57492c 100644 --- a/stages/pom.xml +++ b/stages/pom.xml @@ -7,19 +7,72 @@ 0.8.0-SNAPSHOT - io.github.ardoco.core stages pom - - connection-generator - inconsistency-detection - model-provider - recommendation-generator - text-extraction - text-preprocessing - ${project.basedir}/../../${aggregate.report.dir} + + + + complete + + true + + + connection-generator + inconsistency-detection + model-provider + recommendation-generator + text-extraction + text-preprocessing + + + + deployment + + false + + + connection-generator + inconsistency-detection + model-provider + recommendation-generator + text-extraction + text-preprocessing + + + + + + tlr + + false + + + connection-generator + model-provider + recommendation-generator + text-extraction + text-preprocessing + + + + + inconsistency + + false + + + connection-generator + inconsistency-detection + model-provider + recommendation-generator + text-extraction + text-preprocessing + + + + diff --git a/tests/pom.xml b/tests/pom.xml index a1474e5a0..40f15d811 100644 --- a/tests/pom.xml +++ b/tests/pom.xml @@ -8,6 +8,7 @@ ../pom.xml tests + pom true @@ -15,47 +16,6 @@ - - ${project.groupId} - text-extraction - - - ${project.groupId} - text-preprocessing - - - org.slf4j - slf4j-log4j12 - - - - - ${project.groupId} - recommendation-generator - - - ${project.groupId} - pipeline - - - org.slf4j - slf4j-simple - - - - - ${project.groupId} - connection-generator - ${project.version} - - - ${project.groupId} - model-provider - - - ${project.groupId} - inconsistency-detection - org.junit.jupiter junit-jupiter-params @@ -89,13 +49,44 @@ - - - - org.apache.maven.plugins - maven-failsafe-plugin - - - + + + complete + + true + + + tests-base + tests-default + tests-tlr + tests-inconsistency + + + + + + tlr + + false + + + tests-base + tests-default + tests-tlr + + + + + inconsistency + + false + + + tests-base + tests-default + tests-inconsistency + + + diff --git a/tests/tests-base/pom.xml b/tests/tests-base/pom.xml new file mode 100644 index 000000000..78b61772a --- /dev/null +++ b/tests/tests-base/pom.xml @@ -0,0 +1,40 @@ + + + 4.0.0 + + io.github.ardoco.core + tests + 0.8.0-SNAPSHOT + ../pom.xml + + + tests-base + + + 17 + 17 + UTF-8 + + + + + org.eclipse.collections + eclipse-collections + + + io.github.ardoco.core + common + + + io.github.ardoco.core + pipeline + + + org.reflections + reflections + + + + \ No newline at end of file diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/TestUtil.java b/tests/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/TestUtil.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/TestUtil.java rename to tests/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/TestUtil.java diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/ConfigurationTest.java b/tests/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/ConfigurationTestBase.java similarity index 60% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/ConfigurationTest.java rename to tests/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/ConfigurationTestBase.java index d70734615..cb3ef543b 100644 --- a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/ConfigurationTest.java +++ b/tests/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/ConfigurationTestBase.java @@ -1,5 +1,5 @@ /* Licensed under MIT 2022-2023. */ -package edu.kit.kastel.mcse.ardoco.core.tests; +package edu.kit.kastel.mcse.ardoco.core.tests.eval; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; @@ -7,8 +7,6 @@ import java.util.*; import java.util.stream.Collectors; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; import org.reflections.Reflections; import edu.kit.kastel.mcse.ardoco.core.configuration.AbstractConfigurable; @@ -20,15 +18,20 @@ * * @see AbstractConfigurable */ -class ConfigurationTest { +@SuppressWarnings({"java:S106", "java:S3011"}) +public abstract class ConfigurationTestBase { + + protected abstract void assertFalse(boolean result, String message) ; + protected abstract void fail(String message); + + /** * This test verifies that all configurable values are able to be configured. It also prints all configurable values * as they should be contained in a configuration file. * * @throws Exception if anything goes wrong */ - @Test - void showCurrentConfiguration() throws Exception { + protected void showCurrentConfiguration() throws Exception { Map configs = new TreeMap<>(); var reflectAccess = new Reflections("edu.kit.kastel.mcse.ardoco"); var classesThatMayBeConfigured = reflectAccess.getSubTypesOf(AbstractConfigurable.class) @@ -40,7 +43,7 @@ void showCurrentConfiguration() throws Exception { for (var clazz : classesThatMayBeConfigured) { processConfigurationOfClass(configs, clazz); } - Assertions.assertFalse(configs.isEmpty()); + assertFalse(configs.isEmpty(), "Configuration shall not be empty"); System.out.println("-".repeat(50)); System.out.println("Current Default Configuration"); @@ -51,8 +54,8 @@ void showCurrentConfiguration() throws Exception { System.out.println("-".repeat(50)); } - @Test - void testValidityOfConfigurableFields() throws Exception { + + protected void testValidityOfConfigurableFields() throws Exception { var reflectAccess = new Reflections("edu.kit.kastel.mcse.ardoco"); var classesThatMayBeConfigured = reflectAccess.getSubTypesOf(AbstractConfigurable.class) .stream() @@ -67,64 +70,16 @@ void testValidityOfConfigurableFields() throws Exception { for (var field : configurableFields) { int modifiers = field.getModifiers(); - Assertions.assertFalse(Modifier.isFinal(modifiers), "Field " + field.getName() + "@" + field.getDeclaringClass() + assertFalse(Modifier.isFinal(modifiers), "Field " + field.getName() + "@" + field.getDeclaringClass() .getSimpleName() + " is final!"); - Assertions.assertFalse(Modifier.isStatic(modifiers), "Field " + field.getName() + "@" + field.getDeclaringClass() + assertFalse(Modifier.isStatic(modifiers), "Field " + field.getName() + "@" + field.getDeclaringClass() .getSimpleName() + " is static!"); } } } - @Test - void testBasicConfigurable() throws Exception { - Map configs = new TreeMap<>(); - processConfigurationOfClass(configs, TestConfigurable.class); - Assertions.assertEquals(5, configs.size()); - - var t = new TestConfigurable(); - - Assertions.assertEquals(24, t.testInt); - Assertions.assertEquals(24, t.testIntNo); - Assertions.assertEquals(2.0, t.testDouble); - Assertions.assertEquals(2.0, t.testDoubleNo); - Assertions.assertTrue(t.testBool); - Assertions.assertTrue(t.testBoolNo); - Assertions.assertEquals(List.of("A", "B", "C"), t.testList); - Assertions.assertEquals(List.of("A", "B", "C"), t.testListNo); - Assertions.assertEquals(TestConfigurable.MyEnum.A, t.testEnum); - Assertions.assertEquals(TestConfigurable.MyEnum.B, t.testEnumNo); - - //@formatter:off - configs = Map.of(// - TestConfigurable.class.getSimpleName() + AbstractConfigurable.CLASS_ATTRIBUTE_CONNECTOR + "testInt", "42", // - TestConfigurable.class.getSimpleName() + AbstractConfigurable.CLASS_ATTRIBUTE_CONNECTOR + "testIntNo", "42", // - TestConfigurable.class.getSimpleName() + AbstractConfigurable.CLASS_ATTRIBUTE_CONNECTOR + "testDouble", "48", // - TestConfigurable.class.getSimpleName() + AbstractConfigurable.CLASS_ATTRIBUTE_CONNECTOR + "testDoubleNo", "48", // - TestConfigurable.class.getSimpleName() + AbstractConfigurable.CLASS_ATTRIBUTE_CONNECTOR + "testBool", "false", // - TestConfigurable.class.getSimpleName() + AbstractConfigurable.CLASS_ATTRIBUTE_CONNECTOR + "testBoolNo", "false", // - TestConfigurable.class.getSimpleName() + AbstractConfigurable.CLASS_ATTRIBUTE_CONNECTOR + "testList", String.join(AbstractConfigurable.LIST_SEPARATOR, "X", "Y", "Z"), // - TestConfigurable.class.getSimpleName() + AbstractConfigurable.CLASS_ATTRIBUTE_CONNECTOR + "testListNo", String.join(AbstractConfigurable.LIST_SEPARATOR, "X", "Y", "Z"), // - TestConfigurable.class.getSimpleName() + AbstractConfigurable.CLASS_ATTRIBUTE_CONNECTOR + "testEnum", TestConfigurable.MyEnum.C.name(), // - TestConfigurable.class.getSimpleName() + AbstractConfigurable.CLASS_ATTRIBUTE_CONNECTOR + "testEnumNo", TestConfigurable.MyEnum.C.name() - - ); - //@formatter:on - - t.applyConfiguration(configs); - Assertions.assertEquals(42, t.testInt); - Assertions.assertEquals(24, t.testIntNo); - Assertions.assertEquals(48, t.testDouble); - Assertions.assertEquals(2.0, t.testDoubleNo); - Assertions.assertFalse(t.testBool); - Assertions.assertTrue(t.testBoolNo); - Assertions.assertEquals(List.of("X", "Y", "Z"), t.testList); - Assertions.assertEquals(List.of("A", "B", "C"), t.testListNo); - Assertions.assertEquals(TestConfigurable.MyEnum.C, t.testEnum); - Assertions.assertEquals(TestConfigurable.MyEnum.B, t.testEnumNo); - - } - private void processConfigurationOfClass(Map configs, Class clazz) throws InvocationTargetException, + protected void processConfigurationOfClass(Map configs, Class clazz) throws InvocationTargetException, InstantiationException, IllegalAccessException { var object = createObject(clazz); List fields = new ArrayList<>(); @@ -139,12 +94,14 @@ private void fillConfigs(AbstractConfigurable object, List fields, Map return (AbstractConfigurable) constructor.newInstance(new Object[] { null, List.of() }); } - Assertions.fail("No suitable constructor has been found for " + clazz); + fail("No suitable constructor has been found for " + clazz); throw new Error("Not reachable code"); } - - private static final class TestConfigurable extends AbstractConfigurable { - - @Configurable - private int testInt = 24; - @Configurable - private double testDouble = 2.0; - @Configurable - private boolean testBool = true; - @Configurable - private List testList = List.of("A", "B", "C"); - @Configurable - private MyEnum testEnum = MyEnum.A; - - private int testIntNo = 24; - private double testDoubleNo = 2.0; - private boolean testBoolNo = true; - private List testListNo = List.of("A", "B", "C"); - private MyEnum testEnumNo = MyEnum.B; - - public TestConfigurable() { - // NOP - } - - @Override - protected void delegateApplyConfigurationToInternalObjects(Map additionalConfiguration) { - } - - private enum MyEnum { - A, B, C - } - } } diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/EvaluationMetrics.java b/tests/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/EvaluationMetrics.java similarity index 99% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/EvaluationMetrics.java rename to tests/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/EvaluationMetrics.java index bd9b24811..f0ae1f21c 100644 --- a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/EvaluationMetrics.java +++ b/tests/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/EvaluationMetrics.java @@ -158,7 +158,7 @@ public static double calculatePhiCoefficient(int truePositives, int falsePositiv * Calculates the maximum possible value of the phi coefficient given the four values of the confusion matrix (TP, FP, FN, TN). * * @see Paper about PhiMax by Ferguson (1941) - * @see Paper about Phi/PhiMax by Davenport et al. (1991)< + * @see Paper about Phi/PhiMax by Davenport et al. (1991) * @param truePositives number of true positives * @param falsePositives number of false positives * @param falseNegatives number of false negatives @@ -186,7 +186,7 @@ public static double calculatePhiCoefficientMax(int truePositives, int falsePosi /** * Calculates the normalized phi correlation coefficient value that is phi divided by its maximum possible value. * - * @see Paper about Phi/PhiMax + * @see Paper about Phi/PhiMax * @param truePositives number of true positives * @param falsePositives number of false positives * @param falseNegatives number of false negatives diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/GoldStandard.java b/tests/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/GoldStandard.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/GoldStandard.java rename to tests/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/GoldStandard.java diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/Project.java b/tests/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/Project.java similarity index 65% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/Project.java rename to tests/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/Project.java index 3f2f857f9..49a6e7b2f 100644 --- a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/Project.java +++ b/tests/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/Project.java @@ -24,83 +24,83 @@ */ public enum Project { MEDIASTORE(// - "src/test/resources/benchmark/mediastore/model_2016/pcm/ms.repository", // - "src/test/resources/benchmark/mediastore/text_2016/mediastore.txt", // - "src/test/resources/benchmark/mediastore/text_2016/goldstandard.csv", // - "src/test/resources/configurations/ms/filterlists_all.txt", // options: filterlists_none.txt, filterlists_onlyCommon.txt, filterlists_all.txt - "src/test/resources/benchmark/mediastore/text_2016/goldstandard_UME.csv", // + "../src/test/resources/benchmark/mediastore/model_2016/pcm/ms.repository", // + "../src/test/resources/benchmark/mediastore/text_2016/mediastore.txt", // + "../src/test/resources/benchmark/mediastore/text_2016/goldstandard.csv", // + "../src/test/resources/configurations/ms/filterlists_all.txt", // options: filterlists_none.txt, filterlists_onlyCommon.txt, filterlists_all.txt + "../src/test/resources/benchmark/mediastore/text_2016/goldstandard_UME.csv", // new ExpectedResults(.999, .620, .765, .978, .778, .999), // new ExpectedResults(.212, .792, .328, .702, .227, .690) // ), // TEASTORE( // - "src/test/resources/benchmark/teastore/model_2020/pcm/teastore.repository", // - "src/test/resources/benchmark/teastore/text_2020/teastore.txt", // - "src/test/resources/benchmark/teastore/text_2020/goldstandard.csv", // - "src/test/resources/configurations/ts/filterlists_all.txt", // options: filterlists_none.txt, filterlists_onlyCommon.txt, filterlists_all.txt - "src/test/resources/benchmark/teastore/text_2020/goldstandard_UME.csv", // + "../src/test/resources/benchmark/teastore/model_2020/pcm/teastore.repository", // + "../src/test/resources/benchmark/teastore/text_2020/teastore.txt", // + "../src/test/resources/benchmark/teastore/text_2020/goldstandard.csv", // + "../src/test/resources/configurations/ts/filterlists_all.txt", // options: filterlists_none.txt, filterlists_onlyCommon.txt, filterlists_all.txt + "../src/test/resources/benchmark/teastore/text_2020/goldstandard_UME.csv", // new ExpectedResults(.999, .740, .850, .984, .853, .999), // new ExpectedResults(.962, .703, .784, .957, .808, .994) // ), // TEASTORE_HISTORICAL( // - "src/test/resources/benchmark/teastore/model_2020/pcm/teastore.repository", // - "src/test/resources/benchmark/teastore/text_2018/teastore_2018_AB.txt", // - "src/test/resources/benchmark/teastore/text_2018/goldstandard_AB.csv", // - "src/test/resources/configurations/ts/filterlists_all.txt", // options: filterlists_none.txt, filterlists_onlyCommon.txt, filterlists_all.txt - "src/test/resources/benchmark/teastore/text_2018/goldstandard_AB_UME.csv", // + "../src/test/resources/benchmark/teastore/model_2020/pcm/teastore.repository", // + "../src/test/resources/benchmark/teastore/text_2018/teastore_2018_AB.txt", // + "../src/test/resources/benchmark/teastore/text_2018/goldstandard_AB.csv", // + "../src/test/resources/configurations/ts/filterlists_all.txt", // options: filterlists_none.txt, filterlists_onlyCommon.txt, filterlists_all.txt + "../src/test/resources/benchmark/teastore/text_2018/goldstandard_AB_UME.csv", // new ExpectedResults(.999, .740, .850, .984, .853, .999), // new ExpectedResults(.163, .982, .278, .376, .146, .289) // ), // TEAMMATES( // - "src/test/resources/benchmark/teammates/model_2021/pcm/teammates.repository", // - "src/test/resources/benchmark/teammates/text_2021/teammates.txt", // - "src/test/resources/benchmark/teammates/text_2021/goldstandard.csv", // - "src/test/resources/configurations/tm/filterlists_all.txt", // options: filterlists_none.txt, filterlists_onlyCommon.txt, filterlists_all.txt - "src/test/resources/benchmark/teammates/text_2021/goldstandard_UME.csv", // + "../src/test/resources/benchmark/teammates/model_2021/pcm/teammates.repository", // + "../src/test/resources/benchmark/teammates/text_2021/teammates.txt", // + "../src/test/resources/benchmark/teammates/text_2021/goldstandard.csv", // + "../src/test/resources/configurations/tm/filterlists_all.txt", // options: filterlists_none.txt, filterlists_onlyCommon.txt, filterlists_all.txt + "../src/test/resources/benchmark/teammates/text_2021/goldstandard_UME.csv", // new ExpectedResults(.555, .899, .686, .973, .695, .976), // new ExpectedResults(.178, .759, .284, .851, .291, .851) // ), // TEAMMATES_HISTORICAL( // - "src/test/resources/benchmark/teammates/model_2021/pcm/teammates.repository", // - "src/test/resources/benchmark/teammates/text_2015/teammates_2015.txt", // - "src/test/resources/benchmark/teammates/text_2015/goldstandard.csv", // - "src/test/resources/configurations/tm/filterlists_all.txt", // options: filterlists_none.txt, filterlists_onlyCommon.txt, filterlists_all.txt - "src/test/resources/benchmark/teammates/text_2015/goldstandard_UME.csv", // + "../src/test/resources/benchmark/teammates/model_2021/pcm/teammates.repository", // + "../src/test/resources/benchmark/teammates/text_2015/teammates_2015.txt", // + "../src/test/resources/benchmark/teammates/text_2015/goldstandard.csv", // + "../src/test/resources/configurations/tm/filterlists_all.txt", // options: filterlists_none.txt, filterlists_onlyCommon.txt, filterlists_all.txt + "../src/test/resources/benchmark/teammates/text_2015/goldstandard_UME.csv", // new ExpectedResults(.524, .695, .597, .970, .589, .979), // new ExpectedResults(.168, .629, .263, .863, .260, .870) // ), // BIGBLUEBUTTON( // - "src/test/resources/benchmark/bigbluebutton/model_2021/pcm/bbb.repository", // - "src/test/resources/benchmark/bigbluebutton/text_2021/bigbluebutton.txt", // - "src/test/resources/benchmark/bigbluebutton/text_2021/goldstandard.csv", // - "src/test/resources/configurations/bbb/filterlists_all.txt", // options: filterlists_none.txt, filterlists_onlyCommon.txt, filterlists_all.txt - "src/test/resources/benchmark/bigbluebutton/text_2021/goldstandard_UME.csv", // + "../src/test/resources/benchmark/bigbluebutton/model_2021/pcm/bbb.repository", // + "../src/test/resources/benchmark/bigbluebutton/text_2021/bigbluebutton.txt", // + "../src/test/resources/benchmark/bigbluebutton/text_2021/goldstandard.csv", // + "../src/test/resources/configurations/bbb/filterlists_all.txt", // options: filterlists_none.txt, filterlists_onlyCommon.txt, filterlists_all.txt + "../src/test/resources/benchmark/bigbluebutton/text_2021/goldstandard_UME.csv", // new ExpectedResults(.877, .826, .850, .984, .843, .993), // new ExpectedResults(.887, .461, .429, .956, .534, .984) // ), // BIGBLUEBUTTON_HISTORICAL( // - "src/test/resources/benchmark/bigbluebutton/model_2021/pcm/bbb.repository", // - "src/test/resources/benchmark/bigbluebutton/text_2015/bigbluebutton_2015.txt", // - "src/test/resources/benchmark/bigbluebutton/text_2015/goldstandard.csv", // - "src/test/resources/configurations/bbb/filterlists_all.txt", // options: filterlists_none.txt, filterlists_onlyCommon.txt, filterlists_all.txt - "src/test/resources/benchmark/bigbluebutton/text_2015/goldstandard_UME.csv", // + "../src/test/resources/benchmark/bigbluebutton/model_2021/pcm/bbb.repository", // + "../src/test/resources/benchmark/bigbluebutton/text_2015/bigbluebutton_2015.txt", // + "../src/test/resources/benchmark/bigbluebutton/text_2015/goldstandard.csv", // + "../src/test/resources/configurations/bbb/filterlists_all.txt", // options: filterlists_none.txt, filterlists_onlyCommon.txt, filterlists_all.txt + "../src/test/resources/benchmark/bigbluebutton/text_2015/goldstandard_UME.csv", // new ExpectedResults(.807, .617, .699, .978, .695, .993), // new ExpectedResults(.085, .175, .111, .813, .018, .869) // ), // JABREF( // - "src/test/resources/benchmark/jabref/model_2021/pcm/jabref.repository", // - "src/test/resources/benchmark/jabref/text_2021/jabref.txt", // - "src/test/resources/benchmark/jabref/text_2021/goldstandard.csv", // - "src/test/resources/configurations/jabref/filterlists_all.txt", // options: filterlists_none.txt, filterlists_onlyCommon.txt, filterlists_all.txt - "src/test/resources/benchmark/jabref/text_2021/goldstandard_UME.csv", // + "../src/test/resources/benchmark/jabref/model_2021/pcm/jabref.repository", // + "../src/test/resources/benchmark/jabref/text_2021/jabref.txt", // + "../src/test/resources/benchmark/jabref/text_2021/goldstandard.csv", // + "../src/test/resources/configurations/jabref/filterlists_all.txt", // options: filterlists_none.txt, filterlists_onlyCommon.txt, filterlists_all.txt + "../src/test/resources/benchmark/jabref/text_2021/goldstandard_UME.csv", // new ExpectedResults(.899, .999, .946, .973, .932, .966), // new ExpectedResults(1.0, .443, .443, .845, .616, 1.0) // ), // JABREF_HISTORICAL( // - "src/test/resources/benchmark/jabref/model_2021/pcm/jabref.repository", // - "src/test/resources/benchmark/jabref/text_2016/jabref_2016.txt", // - "src/test/resources/benchmark/jabref/text_2016/goldstandard.csv", // - "src/test/resources/configurations/jabref/filterlists_all.txt", // options: filterlists_none.txt, filterlists_onlyCommon.txt, filterlists_all.txt - "src/test/resources/benchmark/jabref/text_2016/goldstandard_UME.csv", // + "../src/test/resources/benchmark/jabref/model_2021/pcm/jabref.repository", // + "../src/test/resources/benchmark/jabref/text_2016/jabref_2016.txt", // + "../src/test/resources/benchmark/jabref/text_2016/goldstandard.csv", // + "../src/test/resources/configurations/jabref/filterlists_all.txt", // options: filterlists_none.txt, filterlists_onlyCommon.txt, filterlists_all.txt + "../src/test/resources/benchmark/jabref/text_2016/goldstandard_UME.csv", // new ExpectedResults(.817, .999, .899, .966, .886, .960), // new ExpectedResults(.110, .110, .110, .366, -.249, .475) // ); diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/helper/CombineGoldStandards.java b/tests/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/helper/CombineGoldStandards.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/helper/CombineGoldStandards.java rename to tests/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/helper/CombineGoldStandards.java diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/results/EvaluationResultVector.java b/tests/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/results/EvaluationResultVector.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/results/EvaluationResultVector.java rename to tests/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/results/EvaluationResultVector.java diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/results/EvaluationResults.java b/tests/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/results/EvaluationResults.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/results/EvaluationResults.java rename to tests/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/results/EvaluationResults.java diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/results/ExpectedResults.java b/tests/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/results/ExpectedResults.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/results/ExpectedResults.java rename to tests/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/results/ExpectedResults.java diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/results/ResultMatrix.java b/tests/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/results/ResultMatrix.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/results/ResultMatrix.java rename to tests/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/results/ResultMatrix.java diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/results/calculator/ResultCalculatorUtil.java b/tests/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/results/calculator/ResultCalculatorUtil.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/results/calculator/ResultCalculatorUtil.java rename to tests/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/results/calculator/ResultCalculatorUtil.java diff --git a/tests/tests-default/pom.xml b/tests/tests-default/pom.xml new file mode 100644 index 000000000..38147ac66 --- /dev/null +++ b/tests/tests-default/pom.xml @@ -0,0 +1,43 @@ + + + 4.0.0 + + io.github.ardoco.core + tests + 0.8.0-SNAPSHOT + ../pom.xml + + tests-default + + + true + true + + + + + io.github.ardoco.core + tests-base + ${project.version} + test + + + io.github.ardoco.core + common + + + io.github.ardoco.core + model-provider + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + + + diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/ArchitectureModelProviderTest.java b/tests/tests-default/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/ArchitectureModelProviderTest.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/ArchitectureModelProviderTest.java rename to tests/tests-default/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/ArchitectureModelProviderTest.java diff --git a/tests/tests-default/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/ConfigurationTest.java b/tests/tests-default/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/ConfigurationTest.java new file mode 100644 index 000000000..612fd7aaa --- /dev/null +++ b/tests/tests-default/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/ConfigurationTest.java @@ -0,0 +1,131 @@ +/* Licensed under MIT 2022-2023. */ +package edu.kit.kastel.mcse.ardoco.core.tests; + +import java.lang.reflect.Field; +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Modifier; +import java.util.*; +import java.util.stream.Collectors; + +import edu.kit.kastel.mcse.ardoco.core.tests.eval.ConfigurationTestBase; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import org.reflections.Reflections; + +import edu.kit.kastel.mcse.ardoco.core.configuration.AbstractConfigurable; +import edu.kit.kastel.mcse.ardoco.core.configuration.Configurable; +import edu.kit.kastel.mcse.ardoco.core.data.DataRepository; + +/** + * This test class deals with the configurations. + * + * @see AbstractConfigurable + */ +class ConfigurationTest extends ConfigurationTestBase { + @Override + protected void assertFalse(boolean result, String message) { + Assertions.assertFalse(result, message); + } + + @Override + protected void fail(String message) { + Assertions.fail(message); + } + + /** + * This test verifies that all configurable values are able to be configured. It also prints all configurable values + * as they should be contained in a configuration file. + * + * @throws Exception if anything goes wrong + */ + @Test + public void showCurrentConfiguration() throws Exception { + super.showCurrentConfiguration(); + } + + @Test + public void testValidityOfConfigurableFields() throws Exception { + super.testValidityOfConfigurableFields(); + } + + @Test + void testBasicConfigurable() throws Exception { + Map configs = new TreeMap<>(); + processConfigurationOfClass(configs, TestConfigurable.class); + Assertions.assertEquals(5, configs.size()); + + var t = new TestConfigurable(); + + Assertions.assertEquals(24, t.testInt); + Assertions.assertEquals(24, t.testIntNo); + Assertions.assertEquals(2.0, t.testDouble); + Assertions.assertEquals(2.0, t.testDoubleNo); + Assertions.assertTrue(t.testBool); + Assertions.assertTrue(t.testBoolNo); + Assertions.assertEquals(List.of("A", "B", "C"), t.testList); + Assertions.assertEquals(List.of("A", "B", "C"), t.testListNo); + Assertions.assertEquals(TestConfigurable.MyEnum.A, t.testEnum); + Assertions.assertEquals(TestConfigurable.MyEnum.B, t.testEnumNo); + + //@formatter:off + configs = Map.of(// + TestConfigurable.class.getSimpleName() + AbstractConfigurable.CLASS_ATTRIBUTE_CONNECTOR + "testInt", "42", // + TestConfigurable.class.getSimpleName() + AbstractConfigurable.CLASS_ATTRIBUTE_CONNECTOR + "testIntNo", "42", // + TestConfigurable.class.getSimpleName() + AbstractConfigurable.CLASS_ATTRIBUTE_CONNECTOR + "testDouble", "48", // + TestConfigurable.class.getSimpleName() + AbstractConfigurable.CLASS_ATTRIBUTE_CONNECTOR + "testDoubleNo", "48", // + TestConfigurable.class.getSimpleName() + AbstractConfigurable.CLASS_ATTRIBUTE_CONNECTOR + "testBool", "false", // + TestConfigurable.class.getSimpleName() + AbstractConfigurable.CLASS_ATTRIBUTE_CONNECTOR + "testBoolNo", "false", // + TestConfigurable.class.getSimpleName() + AbstractConfigurable.CLASS_ATTRIBUTE_CONNECTOR + "testList", String.join(AbstractConfigurable.LIST_SEPARATOR, "X", "Y", "Z"), // + TestConfigurable.class.getSimpleName() + AbstractConfigurable.CLASS_ATTRIBUTE_CONNECTOR + "testListNo", String.join(AbstractConfigurable.LIST_SEPARATOR, "X", "Y", "Z"), // + TestConfigurable.class.getSimpleName() + AbstractConfigurable.CLASS_ATTRIBUTE_CONNECTOR + "testEnum", TestConfigurable.MyEnum.C.name(), // + TestConfigurable.class.getSimpleName() + AbstractConfigurable.CLASS_ATTRIBUTE_CONNECTOR + "testEnumNo", TestConfigurable.MyEnum.C.name() + + ); + //@formatter:on + + t.applyConfiguration(configs); + Assertions.assertEquals(42, t.testInt); + Assertions.assertEquals(24, t.testIntNo); + Assertions.assertEquals(48, t.testDouble); + Assertions.assertEquals(2.0, t.testDoubleNo); + Assertions.assertFalse(t.testBool); + Assertions.assertTrue(t.testBoolNo); + Assertions.assertEquals(List.of("X", "Y", "Z"), t.testList); + Assertions.assertEquals(List.of("A", "B", "C"), t.testListNo); + Assertions.assertEquals(TestConfigurable.MyEnum.C, t.testEnum); + Assertions.assertEquals(TestConfigurable.MyEnum.B, t.testEnumNo); + + } + + private static final class TestConfigurable extends AbstractConfigurable { + + @Configurable + private int testInt = 24; + @Configurable + private double testDouble = 2.0; + @Configurable + private boolean testBool = true; + @Configurable + private List testList = List.of("A", "B", "C"); + @Configurable + private MyEnum testEnum = MyEnum.A; + + private int testIntNo = 24; + private double testDoubleNo = 2.0; + private boolean testBoolNo = true; + private List testListNo = List.of("A", "B", "C"); + private MyEnum testEnumNo = MyEnum.B; + + public TestConfigurable() { + // NOP + } + + @Override + protected void delegateApplyConfigurationToInternalObjects(Map additionalConfiguration) { + } + + private enum MyEnum { + A, B, C + } + } +} diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/architecture/ArchitectureTest.java b/tests/tests-default/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/architecture/ArchitectureTest.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/architecture/ArchitectureTest.java rename to tests/tests-default/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/architecture/ArchitectureTest.java diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/EvaluationMetricsTest.java b/tests/tests-default/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/EvaluationMetricsTest.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/EvaluationMetricsTest.java rename to tests/tests-default/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/EvaluationMetricsTest.java diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/helper/LoadPCMTest.java b/tests/tests-default/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/helper/LoadPCMTest.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/helper/LoadPCMTest.java rename to tests/tests-default/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/helper/LoadPCMTest.java diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/statehelper/ChangedStatesTest.java b/tests/tests-default/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/statehelper/ChangedStatesTest.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/statehelper/ChangedStatesTest.java rename to tests/tests-default/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/statehelper/ChangedStatesTest.java diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/statehelper/files/ConnectionStateFile.java b/tests/tests-default/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/statehelper/files/ConnectionStateFile.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/statehelper/files/ConnectionStateFile.java rename to tests/tests-default/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/statehelper/files/ConnectionStateFile.java diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/statehelper/files/RecommendationStateFile.java b/tests/tests-default/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/statehelper/files/RecommendationStateFile.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/statehelper/files/RecommendationStateFile.java rename to tests/tests-default/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/statehelper/files/RecommendationStateFile.java diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/statehelper/files/TextStateFile.java b/tests/tests-default/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/statehelper/files/TextStateFile.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/statehelper/files/TextStateFile.java rename to tests/tests-default/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/statehelper/files/TextStateFile.java diff --git a/tests/src/test/resources/configurations/bbb/filterlists_all.txt b/tests/tests-default/src/test/resources/configurations/bbb/filterlists_all.txt similarity index 100% rename from tests/src/test/resources/configurations/bbb/filterlists_all.txt rename to tests/tests-default/src/test/resources/configurations/bbb/filterlists_all.txt diff --git a/tests/src/test/resources/configurations/bbb/filterlists_none.txt b/tests/tests-default/src/test/resources/configurations/bbb/filterlists_none.txt similarity index 100% rename from tests/src/test/resources/configurations/bbb/filterlists_none.txt rename to tests/tests-default/src/test/resources/configurations/bbb/filterlists_none.txt diff --git a/tests/src/test/resources/configurations/bbb/filterlists_onlyCommon.txt b/tests/tests-default/src/test/resources/configurations/bbb/filterlists_onlyCommon.txt similarity index 100% rename from tests/src/test/resources/configurations/bbb/filterlists_onlyCommon.txt rename to tests/tests-default/src/test/resources/configurations/bbb/filterlists_onlyCommon.txt diff --git a/tests/src/test/resources/configurations/jabref/enhanced_jabref.txt b/tests/tests-default/src/test/resources/configurations/jabref/enhanced_jabref.txt similarity index 100% rename from tests/src/test/resources/configurations/jabref/enhanced_jabref.txt rename to tests/tests-default/src/test/resources/configurations/jabref/enhanced_jabref.txt diff --git a/tests/src/test/resources/configurations/jabref/filterlists_all.txt b/tests/tests-default/src/test/resources/configurations/jabref/filterlists_all.txt similarity index 100% rename from tests/src/test/resources/configurations/jabref/filterlists_all.txt rename to tests/tests-default/src/test/resources/configurations/jabref/filterlists_all.txt diff --git a/tests/src/test/resources/configurations/jabref/filterlists_none.txt b/tests/tests-default/src/test/resources/configurations/jabref/filterlists_none.txt similarity index 100% rename from tests/src/test/resources/configurations/jabref/filterlists_none.txt rename to tests/tests-default/src/test/resources/configurations/jabref/filterlists_none.txt diff --git a/tests/src/test/resources/configurations/jabref/filterlists_onlyCommon.txt b/tests/tests-default/src/test/resources/configurations/jabref/filterlists_onlyCommon.txt similarity index 100% rename from tests/src/test/resources/configurations/jabref/filterlists_onlyCommon.txt rename to tests/tests-default/src/test/resources/configurations/jabref/filterlists_onlyCommon.txt diff --git a/tests/src/test/resources/configurations/ms/filterlists_all.txt b/tests/tests-default/src/test/resources/configurations/ms/filterlists_all.txt similarity index 100% rename from tests/src/test/resources/configurations/ms/filterlists_all.txt rename to tests/tests-default/src/test/resources/configurations/ms/filterlists_all.txt diff --git a/tests/src/test/resources/configurations/ms/filterlists_none.txt b/tests/tests-default/src/test/resources/configurations/ms/filterlists_none.txt similarity index 100% rename from tests/src/test/resources/configurations/ms/filterlists_none.txt rename to tests/tests-default/src/test/resources/configurations/ms/filterlists_none.txt diff --git a/tests/src/test/resources/configurations/ms/filterlists_onlyCommon.txt b/tests/tests-default/src/test/resources/configurations/ms/filterlists_onlyCommon.txt similarity index 100% rename from tests/src/test/resources/configurations/ms/filterlists_onlyCommon.txt rename to tests/tests-default/src/test/resources/configurations/ms/filterlists_onlyCommon.txt diff --git a/tests/src/test/resources/configurations/tm/filterlists_all.txt b/tests/tests-default/src/test/resources/configurations/tm/filterlists_all.txt similarity index 100% rename from tests/src/test/resources/configurations/tm/filterlists_all.txt rename to tests/tests-default/src/test/resources/configurations/tm/filterlists_all.txt diff --git a/tests/src/test/resources/configurations/tm/filterlists_none.txt b/tests/tests-default/src/test/resources/configurations/tm/filterlists_none.txt similarity index 100% rename from tests/src/test/resources/configurations/tm/filterlists_none.txt rename to tests/tests-default/src/test/resources/configurations/tm/filterlists_none.txt diff --git a/tests/src/test/resources/configurations/tm/filterlists_onlyCommon.txt b/tests/tests-default/src/test/resources/configurations/tm/filterlists_onlyCommon.txt similarity index 100% rename from tests/src/test/resources/configurations/tm/filterlists_onlyCommon.txt rename to tests/tests-default/src/test/resources/configurations/tm/filterlists_onlyCommon.txt diff --git a/tests/src/test/resources/configurations/ts/filterlists_all.txt b/tests/tests-default/src/test/resources/configurations/ts/filterlists_all.txt similarity index 100% rename from tests/src/test/resources/configurations/ts/filterlists_all.txt rename to tests/tests-default/src/test/resources/configurations/ts/filterlists_all.txt diff --git a/tests/src/test/resources/configurations/ts/filterlists_none.txt b/tests/tests-default/src/test/resources/configurations/ts/filterlists_none.txt similarity index 100% rename from tests/src/test/resources/configurations/ts/filterlists_none.txt rename to tests/tests-default/src/test/resources/configurations/ts/filterlists_none.txt diff --git a/tests/src/test/resources/configurations/ts/filterlists_onlyCommon.txt b/tests/tests-default/src/test/resources/configurations/ts/filterlists_onlyCommon.txt similarity index 100% rename from tests/src/test/resources/configurations/ts/filterlists_onlyCommon.txt rename to tests/tests-default/src/test/resources/configurations/ts/filterlists_onlyCommon.txt diff --git a/tests/src/test/resources/simplelogger.properties b/tests/tests-default/src/test/resources/simplelogger.properties similarity index 100% rename from tests/src/test/resources/simplelogger.properties rename to tests/tests-default/src/test/resources/simplelogger.properties diff --git a/tests/src/test/resources/testout/.gitkeep b/tests/tests-default/src/test/resources/testout/.gitkeep similarity index 100% rename from tests/src/test/resources/testout/.gitkeep rename to tests/tests-default/src/test/resources/testout/.gitkeep diff --git a/tests/tests-inconsistency/pom.xml b/tests/tests-inconsistency/pom.xml new file mode 100644 index 000000000..f9837b107 --- /dev/null +++ b/tests/tests-inconsistency/pom.xml @@ -0,0 +1,72 @@ + + + 4.0.0 + + io.github.ardoco.core + tests + 0.8.0-SNAPSHOT + ../pom.xml + + tests-inconsistency + + + true + true + + + + + ${project.groupId} + text-extraction + + + ${project.groupId} + text-preprocessing + + + org.slf4j + slf4j-log4j12 + + + + + ${project.groupId} + recommendation-generator + + + ${project.groupId} + pipeline + + + org.slf4j + slf4j-simple + + + + + ${project.groupId} + connection-generator + ${project.version} + + + ${project.groupId} + model-provider + + + io.github.ardoco.core + tests-base + ${project.version} + test + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + + + diff --git a/tests/tests-inconsistency/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/ConfigurationTest.java b/tests/tests-inconsistency/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/ConfigurationTest.java new file mode 100644 index 000000000..2a8641dc4 --- /dev/null +++ b/tests/tests-inconsistency/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/ConfigurationTest.java @@ -0,0 +1,46 @@ +/* Licensed under MIT 2022-2023. */ +package edu.kit.kastel.mcse.ardoco.core.tests; + +import java.util.List; +import java.util.Map; +import java.util.TreeMap; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + +import edu.kit.kastel.mcse.ardoco.core.configuration.AbstractConfigurable; +import edu.kit.kastel.mcse.ardoco.core.configuration.Configurable; +import edu.kit.kastel.mcse.ardoco.core.tests.eval.ConfigurationTestBase; + +/** + * This test class deals with the configurations. + * + * @see AbstractConfigurable + */ +class ConfigurationTest extends ConfigurationTestBase { + @Override + protected void assertFalse(boolean result, String message) { + Assertions.assertFalse(result, message); + } + + @Override + protected void fail(String message) { + Assertions.fail(message); + } + + /** + * This test verifies that all configurable values are able to be configured. It also prints all configurable values + * as they should be contained in a configuration file. + * + * @throws Exception if anything goes wrong + */ + @Test + public void showCurrentConfiguration() throws Exception { + super.showCurrentConfiguration(); + } + + @Test + public void testValidityOfConfigurableFields() throws Exception { + super.testValidityOfConfigurableFields(); + } +} diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/baseline/InconsistencyBaseline.java b/tests/tests-inconsistency/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/baseline/InconsistencyBaseline.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/baseline/InconsistencyBaseline.java rename to tests/tests-inconsistency/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/baseline/InconsistencyBaseline.java diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/baseline/InconsistencyBaselineAgent.java b/tests/tests-inconsistency/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/baseline/InconsistencyBaselineAgent.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/baseline/InconsistencyBaselineAgent.java rename to tests/tests-inconsistency/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/baseline/InconsistencyBaselineAgent.java diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/baseline/InconsistencyBaselineInformant.java b/tests/tests-inconsistency/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/baseline/InconsistencyBaselineInformant.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/baseline/InconsistencyBaselineInformant.java rename to tests/tests-inconsistency/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/baseline/InconsistencyBaselineInformant.java diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/InconsistencyDetectionEvaluationIT.java b/tests/tests-inconsistency/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/InconsistencyDetectionEvaluationIT.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/InconsistencyDetectionEvaluationIT.java rename to tests/tests-inconsistency/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/InconsistencyDetectionEvaluationIT.java diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/inconsistencyhelper/HoldBackRunResultsProducer.java b/tests/tests-inconsistency/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/inconsistencyhelper/HoldBackRunResultsProducer.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/inconsistencyhelper/HoldBackRunResultsProducer.java rename to tests/tests-inconsistency/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/inconsistencyhelper/HoldBackRunResultsProducer.java diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/inconsistencyhelper/HoldElementsBackModelConnector.java b/tests/tests-inconsistency/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/inconsistencyhelper/HoldElementsBackModelConnector.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/inconsistencyhelper/HoldElementsBackModelConnector.java rename to tests/tests-inconsistency/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/inconsistencyhelper/HoldElementsBackModelConnector.java diff --git a/tests/tests-inconsistency/src/test/resources/testout/.gitkeep b/tests/tests-inconsistency/src/test/resources/testout/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/tests/tests-tlr/pom.xml b/tests/tests-tlr/pom.xml new file mode 100644 index 000000000..3559024cd --- /dev/null +++ b/tests/tests-tlr/pom.xml @@ -0,0 +1,72 @@ + + + 4.0.0 + + io.github.ardoco.core + tests + 0.8.0-SNAPSHOT + ../pom.xml + + tests-tlr + + + true + true + + + + + ${project.groupId} + text-extraction + + + ${project.groupId} + text-preprocessing + + + org.slf4j + slf4j-log4j12 + + + + + ${project.groupId} + recommendation-generator + + + ${project.groupId} + pipeline + + + org.slf4j + slf4j-simple + + + + + ${project.groupId} + connection-generator + ${project.version} + + + ${project.groupId} + model-provider + + + io.github.ardoco.core + tests-base + ${project.version} + test + + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + + + diff --git a/tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/ConfigurationTest.java b/tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/ConfigurationTest.java new file mode 100644 index 000000000..7044e063b --- /dev/null +++ b/tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/ConfigurationTest.java @@ -0,0 +1,41 @@ +/* Licensed under MIT 2022-2023. */ +package edu.kit.kastel.mcse.ardoco.core.tests; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + +import edu.kit.kastel.mcse.ardoco.core.configuration.AbstractConfigurable; +import edu.kit.kastel.mcse.ardoco.core.tests.eval.ConfigurationTestBase; + +/** + * This test class deals with the configurations. + * + * @see AbstractConfigurable + */ +class ConfigurationTest extends ConfigurationTestBase { + @Override + protected void assertFalse(boolean result, String message) { + Assertions.assertFalse(result, message); + } + + @Override + protected void fail(String message) { + Assertions.fail(message); + } + + /** + * This test verifies that all configurable values are able to be configured. It also prints all configurable values + * as they should be contained in a configuration file. + * + * @throws Exception if anything goes wrong + */ + @Test + public void showCurrentConfiguration() throws Exception { + super.showCurrentConfiguration(); + } + + @Test + public void testValidityOfConfigurableFields() throws Exception { + super.testValidityOfConfigurableFields(); + } +} diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/TraceabilityLinkRecoveryEvaluationIT.java b/tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/TraceabilityLinkRecoveryEvaluationIT.java similarity index 99% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/TraceabilityLinkRecoveryEvaluationIT.java rename to tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/TraceabilityLinkRecoveryEvaluationIT.java index a87d9c3ff..ed2effc66 100644 --- a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/TraceabilityLinkRecoveryEvaluationIT.java +++ b/tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/TraceabilityLinkRecoveryEvaluationIT.java @@ -1,6 +1,5 @@ /* Licensed under MIT 2021-2023. */ package edu.kit.kastel.mcse.ardoco.core.tests.integration; - import java.io.File; import java.io.IOException; import java.nio.file.Files; diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/TLRUtil.java b/tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/TLRUtil.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/TLRUtil.java rename to tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/TLRUtil.java diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/TestLink.java b/tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/TestLink.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/TestLink.java rename to tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/TestLink.java diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLDiffFile.java b/tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLDiffFile.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLDiffFile.java rename to tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLDiffFile.java diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLGoldStandardFile.java b/tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLGoldStandardFile.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLGoldStandardFile.java rename to tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLGoldStandardFile.java diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLLogFile.java b/tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLLogFile.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLLogFile.java rename to tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLLogFile.java diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLModelFile.java b/tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLModelFile.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLModelFile.java rename to tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLModelFile.java diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLPreviousFile.java b/tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLPreviousFile.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLPreviousFile.java rename to tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLPreviousFile.java diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLSentenceFile.java b/tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLSentenceFile.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLSentenceFile.java rename to tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLSentenceFile.java diff --git a/tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLSummaryFile.java b/tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLSummaryFile.java similarity index 100% rename from tests/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLSummaryFile.java rename to tests/tests-tlr/src/test/java/edu/kit/kastel/mcse/ardoco/core/tests/integration/tlrhelper/files/TLSummaryFile.java diff --git a/tests/tests-tlr/src/test/resources/testout/.gitkeep b/tests/tests-tlr/src/test/resources/testout/.gitkeep new file mode 100644 index 000000000..e69de29bb