Skip to content

Commit

Permalink
TS-8032 Add more nested test projects
Browse files Browse the repository at this point in the history
  • Loading branch information
AlEscher committed May 1, 2023
1 parent b13ff1a commit 73dbbf0
Show file tree
Hide file tree
Showing 11 changed files with 143 additions and 51 deletions.
15 changes: 4 additions & 11 deletions system-tests/maven-external-upload-test/root-project/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,11 @@


<modelVersion>4.0.0</modelVersion>

<groupId>org.example</groupId>

<artifactId>root-project</artifactId>

<version>1.0-SNAPSHOT</version>

<name>root-project</name>

<packaging>pom</packaging>

<properties>
Expand Down Expand Up @@ -103,15 +99,12 @@
</execution>
</executions>
<configuration>
<teamscaleUrl>http://localhost:${tia.teamscale.fake.port}</teamscaleUrl>
<projectId>m</projectId>
<username>build</username>
<accessToken>6lJKEvNHeTxGPhMAi4D84DWqzoSFL1p4</accessToken>
<teamscaleUrl>http://localhost:8080</teamscaleUrl>
<projectId>mavensystemtestroot</projectId>
<username>admin</username>
<accessToken>LiNbRhi2KtGvlQX8Oli05K3LKMgO5jS4</accessToken>
<endCommit>master:HEAD</endCommit>
<partition>MyPartition</partition>
<includes>
<include>*foo.*</include>
</includes>
</configuration>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.teamscale</groupId>
<artifactId>teamscale-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
Expand All @@ -11,33 +11,10 @@
<version>1.0-SNAPSHOT</version>

<name>sub-project-B</name>
<packaging>pom</packaging>

<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.teamscale</groupId>
<artifactId>teamscale-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

<modules>
<module>sub-project-B1</module>
<module>sub-project-B2</module>
</modules>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>sub-project-B</artifactId>
<groupId>org.example</groupId>
<version>1.0-SNAPSHOT</version>
</parent>

<artifactId>sub-project-B1</artifactId>
<version>1.0-SNAPSHOT</version>

<name>sub-project-B1</name>

<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Hello world!
*
*/
public class SUTB
public class SUTB1
{
public void goo() {
System.out.println("goo");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package bar;

import org.junit.jupiter.api.Test;
import org.example.SUTB;
import org.example.SUTB1;

public class IntegIT {

@Test
public void itBlub() throws Exception {
new SUTB().blub();
new SUTB1().blub();
}

@Test
public void itGoo() {
new SUTB().goo();
new SUTB1().goo();
}
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package bar;

import org.junit.jupiter.api.Test;
import org.example.SUTB;
import org.example.SUTB1;

public class UnitTest {

@Test
public void utBlub() {
new SUTB().blub();
new SUTB1().blub();
}

@Test
public void utGoo() {
new SUTB().goo();
new SUTB1().goo();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>sub-project-B</artifactId>
<groupId>org.example</groupId>
<version>1.0-SNAPSHOT</version>
</parent>

<artifactId>sub-project-B2</artifactId>
<version>1.0-SNAPSHOT</version>

<name>sub-project-B2</name>

<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package org.example;

/**
* Hello world!
*
*/
public class SUTB2
{
public void goo() {
System.out.println("goo");
}

public void blub() {
System.out.println("blub");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package bar;

import org.junit.jupiter.api.Test;
import org.example.SUTB2;

public class IntegIT {

@Test
public void itBlub() throws Exception {
new SUTB2().blub();
}

@Test
public void itGoo() {
new SUTB2().goo();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package bar;

import org.junit.jupiter.api.Test;
import org.example.SUTB2;

public class UnitTest {

@Test
public void utBlub() {
new SUTB2().blub();
}

@Test
public void utGoo() {
new SUTB2().goo();
}
}

0 comments on commit 73dbbf0

Please sign in to comment.