Skip to content

Commit

Permalink
devonfw#1509 clean up
Browse files Browse the repository at this point in the history
Clean all tests resources
  • Loading branch information
cedricarnauld123 committed Mar 28, 2023
1 parent bf97608 commit 0ecb4e4
Show file tree
Hide file tree
Showing 12 changed files with 61 additions and 185 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
24 changes: 2 additions & 22 deletions cobigen-eclipse/cobigen-eclipse-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
<properties>
<tycho.testArgLine.enriched>${surefireArgLineIntegration} -Xms512m -Xmx2048m -XX:+DisableExplicitGC</tycho.testArgLine.enriched>
<enforcer.skip>true</enforcer.skip>
<maven.test.AdaptTemplatesTest1>src\main\resources\AdaptTemplatesTest\template-sets\adapted\crud-java-server-app</maven.test.AdaptTemplatesTest1>
<maven.test.AdaptTemplatesTest2>src\main\resources\AdaptTemplatesTest\template-sets\adapted\crud-java-server-app-complex</maven.test.AdaptTemplatesTest2>
<maven.test.AdaptTemplatesTest1>src\main\resources\AdaptTemplatesTest\template-sets\adapted\crud-openapi-java-server-app</maven.test.AdaptTemplatesTest1>

</properties>

Expand Down Expand Up @@ -87,26 +86,7 @@
</arguments>
</configuration>
</execution>
<execution>
<id>Install test adaptTemplatesTests2</id>
<phase>test-compile</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>mvn</executable>
<workingDirectory>${maven.test.AdaptTemplatesTest2}</workingDirectory>
<arguments>
<argument>install</argument>
<!-- https://stackoverflow.com/a/66801171 -->
<argument>-Djansi.force=true</argument>
<argument>-Djansi.passthrough=true</argument>
<argument>-B</argument>
<argument>-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn</argument>
</arguments>
</configuration>
</execution>
</executions>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down

This file was deleted.

This file was deleted.

Empty file.
Empty file.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>
<tns:templateSetConfiguration version="6.0"
xmlns:tns="http://capgemini.com/devonfw/cobigen/TemplateSetConfiguration"
xmlns:cc="http://capgemini.com/devonfw/cobigen/ContextConfiguration"
xmlns:tc="http://capgemini.com/devonfw/cobigen/TemplatesConfiguration"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://capgemini.com/devonfw/cobigen/TemplateSetConfiguration templateSetConfiguration.xsd
">
<cc:contextConfiguration version="3.0">
<cc:trigger id="crud_openapi_java_server_app" type="openapi">
<cc:containerMatcher type="element" value="openAPIFile" />
<cc:matcher type="element" value="EntityDef">
<cc:variableAssignment type="extension" key="rootPackage"
value="x-rootpackage" />
<cc:variableAssignment type="property" key="component"
value="componentName" />
<cc:variableAssignment type="property" key="entityName" value="name" />
</cc:matcher>
</cc:trigger>
<cc:tags>
<cc:tag name="Java"></cc:tag>
<cc:tag name="OpenAPI"></cc:tag>
<cc:tag name="CRUD"></cc:tag>
<cc:tag name="Server"></cc:tag>
<cc:tag name="App"></cc:tag>
</cc:tags>
<cc:links>
<cc:link
url="https://github.com/devonfw/cobigen/wiki/howto-devonfw-ide-CobiGen-PoC-E2E"></cc:link>
</cc:links>
</cc:contextConfiguration>
<tc:templatesConfiguration version="5.0">
<tc:templates>
<tc:templateExtension ref="${variables.entityName}Eto.java"
mergeStrategy="javamerge" />

</tc:templates>

<tc:templateScans>
<tc:templateScan templatePath="templates" destinationPath="src/main" />
</tc:templateScans>

<tc:increments>
<tc:increment name="server" description="CRUD devon4j Server"
explanation="Creates (backends) server CRUD service for java application.">
<tc:incrementRef ref="rest_service_impl" />
</tc:increment>

<tc:increment name="rest_service_impl" description="CRUD REST services">
<tc:templateRef ref="${variables.entityName}Eto.java"/>
</tc:increment>

</tc:increments>
</tc:templatesConfiguration>

</tns:templateSetConfiguration>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package test;

0 comments on commit 0ecb4e4

Please sign in to comment.