Skip to content

Replace binaries from core-system-tests with test projects #1677

@jan-vcapgemini

Description

@jan-vcapgemini

Replace all of these binaries with test projects:

  • cobigen/cobigen-core-systemtest/src/test/resources/testdata/systemtest/AdaptMonolithicTemplatesTest/templates/templates-devon4j-0.0.1-sources.jar
  • cobigen/cobigen-core-systemtest/src/test/resources/testdata/systemtest/AdaptMonolithicTemplatesTest/templates/templates-devon4j-0.0.1.jar
  • cobigen/cobigen-core-systemtest/src/test/resources/testdata/systemtest/AdaptTemplateSetsTest/template-sets/downloaded/template-test1-0.0.1.jar
  • cobigen/cobigen-core-systemtest/src/test/resources/testdata/systemtest/AdaptTemplateSetsTest/template-sets/downloaded/template-test1-0.0.1_old.jar
  • cobigen/cobigen-core-systemtest/src/test/resources/testdata/systemtest/AdaptTemplateSetsTest/template-sets/downloaded/template-test2-0.0.1.jar
  • cobigen/cobigen-core-systemtest/src/test/resources/testdata/systemtest/TemplateScanTest/valid.zip

Hint:

Create test projects like this:

<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.devonfw.test</groupId>
<artifactId>downloaded-template-set1-test</artifactId>
<version>test</version>
<packaging>jar</packaging>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.1</version>
<configuration>
<outputDirectory>../../downloaded</outputDirectory>
</configuration>
</plugin>
</plugins>
</build>
</project>

<properties>
<valid.templateset.downloaded1.test.path>src\test\resources\testdata\systemtest\GenerationTestTemplateSetsXml\template-sets\downloaded\downloaded1-test</valid.templateset.downloaded1.test.path>
<valid.templateset.downloaded2.test.path>src\test\resources\testdata\systemtest\GenerationTestTemplateSetsXml\template-sets\downloaded\downloaded2-test</valid.templateset.downloaded2.test.path>
<maven.test.TemplateProcessingTest.adapted.path1>src\test\resources\testdata\systemtest\TemplateProcessingTest\template-sets\adapted\crud-java-server-app</maven.test.TemplateProcessingTest.adapted.path1>
<maven.test.TemplateProcessingTest.adapted.path2>src\test\resources\testdata\systemtest\TemplateProcessingTest\template-sets\adapted\crud-java-server-app-complex</maven.test.TemplateProcessingTest.adapted.path2>
</properties>

<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>Install valid downloaded1 template set test project</id>
<phase>test-compile</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>mvn</executable>
<workingDirectory>${valid.templateset.downloaded1.test.path}</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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions