From 510b3b8cf6614220caf52e7a402426f96ae3be88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Fuch=C3=9F?= Date: Fri, 4 Oct 2024 11:08:28 +0200 Subject: [PATCH] Squashed 'tests/integration-tests/' changes from d6720d3..5e73165 5e73165 Add RAW Model File Type git-subtree-dir: tests/integration-tests git-subtree-split: 5e73165dbd8a5be835bbe2344493cd90a04e03fc --- tests-base/pom.xml | 2 +- .../kit/kastel/mcse/ardoco/core/tests/eval/HistoricProject.java | 2 ++ .../edu/kit/kastel/mcse/ardoco/core/tests/eval/Project.java | 2 ++ tests-tlr/.gitignore | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 tests-tlr/.gitignore diff --git a/tests-base/pom.xml b/tests-base/pom.xml index 279977a..0bfe176 100644 --- a/tests-base/pom.xml +++ b/tests-base/pom.xml @@ -20,7 +20,7 @@ io.github.ardoco metrics - 0.1.1-SNAPSHOT + 0.1.1 compile diff --git a/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/HistoricProject.java b/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/HistoricProject.java index b28cc51..2a6882f 100644 --- a/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/HistoricProject.java +++ b/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/HistoricProject.java @@ -111,6 +111,7 @@ public File getModelFile(ArchitectureModelType modelType) { return switch (modelType) { case PCM -> getModelFile(); case UML -> ProjectHelper.loadFileFromResources(model.replace("/pcm/", "/uml/").replace(".repository", ".uml")); + case RAW -> throw new IllegalArgumentException("Raw model is not supported for this project."); }; } @@ -119,6 +120,7 @@ public String getModelResourceName(ArchitectureModelType modelType) { return switch (modelType) { case PCM -> model; case UML -> model.replace("/pcm/", "/uml/").replace(".repository", ".uml"); + case RAW -> throw new IllegalArgumentException("Raw model is not supported for this project."); }; } diff --git a/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/Project.java b/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/Project.java index d6d6b27..fc9a8e8 100644 --- a/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/Project.java +++ b/tests-base/src/main/java/edu/kit/kastel/mcse/ardoco/core/tests/eval/Project.java @@ -120,6 +120,7 @@ public File getModelFile(ArchitectureModelType modelType) { return switch (modelType) { case PCM -> getModelFile(); case UML -> ProjectHelper.loadFileFromResources(model.replace("/pcm/", "/uml/").replace(".repository", ".uml")); + case RAW -> throw new IllegalArgumentException("Raw model is not supported for this project."); }; } @@ -128,6 +129,7 @@ public String getModelResourceName(ArchitectureModelType modelType) { return switch (modelType) { case PCM -> model; case UML -> model.replace("/pcm/", "/uml/").replace(".repository", ".uml"); + case RAW -> throw new IllegalArgumentException("Raw model is not supported for this project."); }; } diff --git a/tests-tlr/.gitignore b/tests-tlr/.gitignore new file mode 100644 index 0000000..4bb5138 --- /dev/null +++ b/tests-tlr/.gitignore @@ -0,0 +1 @@ +cache-llm