add suite helper for junit4

This commit is contained in:
Greg Gauthier 2023-05-25 21:51:34 +01:00
parent b019a3c9b3
commit ba7a44886b
3 changed files with 22 additions and 0 deletions

View File

@ -114,6 +114,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<source>11</source>
<target>11</target>

View File

@ -0,0 +1,16 @@
package com.gmgauthier;
import com.gmgauthier.client.requests.CalculatorClientTests;
import com.gmgauthier.server.requests.CalculatorControllerTest;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.springframework.boot.test.context.SpringBootTest;
@RunWith(Suite.class)
@Suite.SuiteClasses({
CalculatorClientTests.class,
CalculatorControllerTest.class
})
@SpringBootTest
public class Alltests {
}

View File

@ -1,7 +1,12 @@
package com.gmgauthier.client.requests;
import com.hackerrank.test.utility.OrderedTestRunner;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
@RunWith(OrderedTestRunner.class)
public class CalculatorClientTests {
@Test