order test and cleanup map (#3932)

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
This commit is contained in:
Olivier Lamy 2019-08-06 11:10:41 +10:00 committed by GitHub
parent 6a6a45e60c
commit 0a1722d652
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -19,6 +19,7 @@
package org.eclipse.jetty.webapp;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static java.util.stream.Collectors.toList;
@ -36,6 +37,12 @@ public class ConfigurationsTest
Configurations.cleanKnown();
}
@BeforeEach
public void setup()
{
Configurations.cleanKnown();
}
@Test
public void testSetKnown()
{

View File

@ -638,6 +638,8 @@
<failIfNoTests>false</failIfNoTests>
<forkCount>1</forkCount>
<reuseForks>true</reuseForks> <!-- to work around crash at https://github.com/junit-team/junit5/issues/801 -->
<!-- order can be different depending on os jvm so let's force it -->
<runOrder>alphabetical</runOrder>
<systemPropertyVariables>
<java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
<unix.socket.tmp>${unix.socket.tmp}</unix.socket.tmp>