add suite helper for junit4
This commit is contained in:
parent
b019a3c9b3
commit
ba7a44886b
1
pom.xml
1
pom.xml
@ -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>
|
||||
|
16
src/test/java/com/gmgauthier/Alltests.java
Normal file
16
src/test/java/com/gmgauthier/Alltests.java
Normal 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 {
|
||||
}
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user