mirror of
https://gitee.com/dcren/initializr.git
synced 2025-09-18 09:44:47 +08:00
Upgrade to JUnit Jupiter 5.4.0-RC2
This commit is contained in:
@@ -42,8 +42,7 @@ import org.apache.tools.ant.taskdefs.Untar;
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.extension.ExtendWith;
|
||||
import org.junit.jupiter.api.support.io.TempDirectory;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
import org.skyscreamer.jsonassert.JSONAssert;
|
||||
import org.skyscreamer.jsonassert.JSONCompareMode;
|
||||
|
||||
@@ -66,7 +65,6 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
/**
|
||||
* @author Stephane Nicoll
|
||||
*/
|
||||
@ExtendWith(TempDirectory.class)
|
||||
@SpringBootTest(classes = Config.class)
|
||||
public abstract class AbstractInitializrIntegrationTests {
|
||||
|
||||
@@ -83,7 +81,7 @@ public abstract class AbstractInitializrIntegrationTests {
|
||||
private RestTemplate restTemplate;
|
||||
|
||||
@BeforeEach
|
||||
public void before(@TempDirectory.TempDir Path folder) {
|
||||
public void before(@TempDir Path folder) {
|
||||
this.restTemplate = this.restTemplateBuilder.build();
|
||||
this.folder = folder.toFile();
|
||||
}
|
||||
|
@@ -27,8 +27,7 @@ import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.extension.ExtendWith;
|
||||
import org.junit.jupiter.api.support.io.TempDirectory;
|
||||
import org.junit.jupiter.api.io.TempDir;
|
||||
import org.openqa.selenium.JavascriptExecutor;
|
||||
import org.openqa.selenium.Keys;
|
||||
import org.openqa.selenium.WebDriver;
|
||||
@@ -47,7 +46,6 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
* @author Dave Syer
|
||||
* @author Stephane Nicoll
|
||||
*/
|
||||
@ExtendWith(TempDirectory.class)
|
||||
@ActiveProfiles("test-default")
|
||||
class ProjectGenerationSmokeTests extends AbstractFullStackInitializrIntegrationTests {
|
||||
|
||||
@@ -58,7 +56,7 @@ class ProjectGenerationSmokeTests extends AbstractFullStackInitializrIntegration
|
||||
private Action enterAction;
|
||||
|
||||
@BeforeEach
|
||||
public void setup(@TempDirectory.TempDir Path folder) throws IOException {
|
||||
public void setup(@TempDir Path folder) throws IOException {
|
||||
Assumptions.assumeTrue(Boolean.getBoolean("smoke.test"),
|
||||
"Smoke tests disabled (set System property 'smoke.test')");
|
||||
this.downloadDir = folder.toFile();
|
||||
|
Reference in New Issue
Block a user