Java 16710 (#13471)

* JAVA-16710 Disabled reusing forks

* JAVA-16710 Try removing alphabetical order for tests
This commit is contained in:
Anastasios Ioannidis 2023-03-06 20:26:19 +02:00 committed by GitHub
parent 16c529550f
commit bd178710dc
2 changed files with 12 additions and 1 deletions

View File

@ -51,6 +51,18 @@
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<configuration combine.self="override">
<forkCount>3</forkCount>
<reuseForks>false</reuseForks>
<includes>
<include>SpringContextTest</include>
<include>**/*UnitTest</include>
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>

View File

@ -21,7 +21,6 @@ public class JndiExceptionsUnitTest {
@Test
@Order(1)
@Disabled
void givenNoContext_whenLookupObject_thenThrowNoInitialContext() {
assertThrows(NoInitialContextException.class, () -> {
JndiTemplate jndiTemplate = new JndiTemplate();