From 0ecb4e4efd30ac749131445b15df82902e3ceddd Mon Sep 17 00:00:00 2001 From: cedricarnauld123 Date: Tue, 28 Mar 2023 17:08:05 +0200 Subject: [PATCH] #1509 clean up Clean all tests resources --- .gitignore | 2 + cobigen-eclipse/cobigen-eclipse-test/pom.xml | 24 +----- .../crud-java-server-app-complex/pom.xml | 83 ------------------- .../src/main/resources/template-set.xml | 40 --------- .../src/main/java/com/test.java | 0 .../src/main/resources/functions.ftl | 0 .../src/main/resources/template-set.xml | 40 --------- .../pom.xml | 0 .../src/main/java/com/test.java | 0 .../src/main/resources/functions.ftl | 0 .../src/main/resources/template-set.xml | 56 +++++++++++++ .../to/${variables.entityName}Eto.java.ftl | 1 + 12 files changed, 61 insertions(+), 185 deletions(-) delete mode 100644 cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-java-server-app-complex/pom.xml delete mode 100644 cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-java-server-app-complex/src/main/resources/template-set.xml delete mode 100644 cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-java-server-app/src/main/java/com/test.java delete mode 100644 cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-java-server-app/src/main/resources/functions.ftl delete mode 100644 cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-java-server-app/src/main/resources/template-set.xml rename cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/{crud-java-server-app => crud-openapi-java-server-app}/pom.xml (100%) rename cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/{crud-java-server-app-complex => crud-openapi-java-server-app}/src/main/java/com/test.java (100%) rename cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/{crud-java-server-app-complex => crud-openapi-java-server-app}/src/main/resources/functions.ftl (100%) create mode 100644 cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-openapi-java-server-app/src/main/resources/template-set.xml create mode 100644 cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-openapi-java-server-app/src/main/resources/templates/java/${variables.rootPackage}/${variables.component}/logic/api/to/${variables.entityName}Eto.java.ftl diff --git a/.gitignore b/.gitignore index 978e10ba4f..16466648c7 100644 --- a/.gitignore +++ b/.gitignore @@ -49,3 +49,5 @@ cobigen/cobigen-core-systemtest/src/test/resources/testdata/systemtest/TemplateP cobigen/cobigen-core-systemtest/src/test/resources/testdata/systemtest/TemplateProcessingTest/template-sets/downloaded/crud-java-server-app-1.0.0-sources.jar cobigen/cobigen-core-systemtest/src/test/resources/testdata/systemtest/TemplateProcessingTest/template-sets/downloaded/crud-java-server-app-complex-1.0.0.jar cobigen/cobigen-core-systemtest/src/test/resources/testdata/systemtest/TemplateProcessingTest/template-sets/downloaded/crud-java-server-app-complex-1.0.0-sources.jar +cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/downloaded/crud-java-server-app-1.0.0.jar +cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/downloaded/crud-java-server-app-1.0.0-sources.jar diff --git a/cobigen-eclipse/cobigen-eclipse-test/pom.xml b/cobigen-eclipse/cobigen-eclipse-test/pom.xml index 37aae63f6b..d8f4c8b78f 100644 --- a/cobigen-eclipse/cobigen-eclipse-test/pom.xml +++ b/cobigen-eclipse/cobigen-eclipse-test/pom.xml @@ -13,8 +13,7 @@ ${surefireArgLineIntegration} -Xms512m -Xmx2048m -XX:+DisableExplicitGC true - src\main\resources\AdaptTemplatesTest\template-sets\adapted\crud-java-server-app - src\main\resources\AdaptTemplatesTest\template-sets\adapted\crud-java-server-app-complex + src\main\resources\AdaptTemplatesTest\template-sets\adapted\crud-openapi-java-server-app @@ -87,26 +86,7 @@ - - Install test adaptTemplatesTests2 - test-compile - - exec - - - mvn - ${maven.test.AdaptTemplatesTest2} - - install - - -Djansi.force=true - -Djansi.passthrough=true - -B - -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn - - - - + org.apache.maven.plugins diff --git a/cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-java-server-app-complex/pom.xml b/cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-java-server-app-complex/pom.xml deleted file mode 100644 index 3c69a2539d..0000000000 --- a/cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-java-server-app-complex/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - 4.0.0 - com.devonfw.test - crud-java-server-app-complex - 1.0.0 - jar - - 1.8 - 1.8 - - - - - - org.apache.maven.plugins - maven-jar-plugin - 2.3.1 - - ../../downloaded - - - - org.apache.maven.plugins - maven-source-plugin - - - attach-sources - - jar - - - - - ${skip.deployment} - ../../downloaded - - - - org.apache.maven.plugins - maven-resources-plugin - 2.7 - - UTF-8 - - - - - org.codehaus.mojo - templating-maven-plugin - 1.0.0 - - - generate-maven-properties-class - - filter-sources - - - - - - org.apache.maven.plugins - maven-antrun-plugin - - - prepare-package - - run - - - - Integrate POM manually - - - - - - - - - - \ No newline at end of file diff --git a/cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-java-server-app-complex/src/main/resources/template-set.xml b/cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-java-server-app-complex/src/main/resources/template-set.xml deleted file mode 100644 index 5cfe219789..0000000000 --- a/cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-java-server-app-complex/src/main/resources/template-set.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-java-server-app/src/main/java/com/test.java b/cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-java-server-app/src/main/java/com/test.java deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-java-server-app/src/main/resources/functions.ftl b/cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-java-server-app/src/main/resources/functions.ftl deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-java-server-app/src/main/resources/template-set.xml b/cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-java-server-app/src/main/resources/template-set.xml deleted file mode 100644 index 4515b452ec..0000000000 --- a/cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-java-server-app/src/main/resources/template-set.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-java-server-app/pom.xml b/cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-openapi-java-server-app/pom.xml similarity index 100% rename from cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-java-server-app/pom.xml rename to cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-openapi-java-server-app/pom.xml diff --git a/cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-java-server-app-complex/src/main/java/com/test.java b/cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-openapi-java-server-app/src/main/java/com/test.java similarity index 100% rename from cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-java-server-app-complex/src/main/java/com/test.java rename to cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-openapi-java-server-app/src/main/java/com/test.java diff --git a/cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-java-server-app-complex/src/main/resources/functions.ftl b/cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-openapi-java-server-app/src/main/resources/functions.ftl similarity index 100% rename from cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-java-server-app-complex/src/main/resources/functions.ftl rename to cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-openapi-java-server-app/src/main/resources/functions.ftl diff --git a/cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-openapi-java-server-app/src/main/resources/template-set.xml b/cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-openapi-java-server-app/src/main/resources/template-set.xml new file mode 100644 index 0000000000..f0d54fa334 --- /dev/null +++ b/cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-openapi-java-server-app/src/main/resources/template-set.xml @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-openapi-java-server-app/src/main/resources/templates/java/${variables.rootPackage}/${variables.component}/logic/api/to/${variables.entityName}Eto.java.ftl b/cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-openapi-java-server-app/src/main/resources/templates/java/${variables.rootPackage}/${variables.component}/logic/api/to/${variables.entityName}Eto.java.ftl new file mode 100644 index 0000000000..0c233890ea --- /dev/null +++ b/cobigen-eclipse/cobigen-eclipse-test/src/main/resources/AdaptTemplatesTest/template-sets/adapted/crud-openapi-java-server-app/src/main/resources/templates/java/${variables.rootPackage}/${variables.component}/logic/api/to/${variables.entityName}Eto.java.ftl @@ -0,0 +1 @@ +package test; \ No newline at end of file