mirror of
https://gitee.com/dcren/initializr.git
synced 2026-08-10 11:13:34 +08:00
Fix formatting
This commit is contained in:
@@ -16,13 +16,10 @@
|
|||||||
|
|
||||||
package io.spring.initializr.web.project
|
package io.spring.initializr.web.project
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals
|
|
||||||
import static org.junit.Assert.assertTrue
|
|
||||||
import geb.Browser
|
import geb.Browser
|
||||||
import io.spring.initializr.test.generator.ProjectAssert
|
import io.spring.initializr.test.generator.ProjectAssert
|
||||||
import io.spring.initializr.web.AbstractInitializrControllerIntegrationTests
|
import io.spring.initializr.web.AbstractInitializrControllerIntegrationTests
|
||||||
import io.spring.initializr.web.project.test.HomePage
|
import io.spring.initializr.web.project.test.HomePage
|
||||||
|
|
||||||
import org.junit.After
|
import org.junit.After
|
||||||
import org.junit.Assume
|
import org.junit.Assume
|
||||||
import org.junit.Before
|
import org.junit.Before
|
||||||
@@ -32,8 +29,12 @@ import org.openqa.selenium.WebDriver
|
|||||||
import org.openqa.selenium.firefox.FirefoxDriver
|
import org.openqa.selenium.firefox.FirefoxDriver
|
||||||
import org.openqa.selenium.firefox.FirefoxProfile
|
import org.openqa.selenium.firefox.FirefoxProfile
|
||||||
import org.openqa.selenium.interactions.Actions
|
import org.openqa.selenium.interactions.Actions
|
||||||
|
|
||||||
import org.springframework.test.context.ActiveProfiles
|
import org.springframework.test.context.ActiveProfiles
|
||||||
|
|
||||||
|
import static org.junit.Assert.assertEquals
|
||||||
|
import static org.junit.Assert.assertTrue
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Stephane Nicoll
|
* @author Stephane Nicoll
|
||||||
@@ -50,7 +51,8 @@ class ProjectGenerationSmokeTests extends AbstractInitializrControllerIntegratio
|
|||||||
|
|
||||||
@Before
|
@Before
|
||||||
void setup() {
|
void setup() {
|
||||||
Assume.assumeTrue("Not in smoke test (System property smoke.test not set)", Boolean.getBoolean("smoke.test"))
|
Assume.assumeTrue("Smoke tests disabled (set System property 'smoke.test')",
|
||||||
|
Boolean.getBoolean("smoke.test"))
|
||||||
downloadDir = folder.newFolder()
|
downloadDir = folder.newFolder()
|
||||||
FirefoxProfile fxProfile = new FirefoxProfile();
|
FirefoxProfile fxProfile = new FirefoxProfile();
|
||||||
|
|
||||||
|
|||||||
@@ -16,19 +16,19 @@
|
|||||||
|
|
||||||
package io.spring.initializr.web.support
|
package io.spring.initializr.web.support
|
||||||
|
|
||||||
import static org.junit.Assert.assertNotNull
|
|
||||||
import static org.junit.Assert.fail
|
|
||||||
import static org.springframework.test.web.client.match.MockRestRequestMatchers.requestTo
|
|
||||||
import static org.springframework.test.web.client.response.MockRestResponseCreators.withSuccess
|
|
||||||
import io.spring.initializr.metadata.InitializrMetadata
|
import io.spring.initializr.metadata.InitializrMetadata
|
||||||
import io.spring.initializr.metadata.InitializrMetadataBuilder
|
import io.spring.initializr.metadata.InitializrMetadataBuilder
|
||||||
|
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import org.springframework.core.io.ClassPathResource
|
import org.springframework.core.io.ClassPathResource
|
||||||
import org.springframework.http.MediaType
|
import org.springframework.http.MediaType
|
||||||
import org.springframework.test.web.client.MockRestServiceServer
|
import org.springframework.test.web.client.MockRestServiceServer
|
||||||
import org.springframework.web.client.RestTemplate
|
import org.springframework.web.client.RestTemplate
|
||||||
|
|
||||||
|
import static org.junit.Assert.assertNotNull
|
||||||
|
import static org.junit.Assert.fail
|
||||||
|
import static org.springframework.test.web.client.match.MockRestRequestMatchers.requestTo
|
||||||
|
import static org.springframework.test.web.client.response.MockRestResponseCreators.withSuccess
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Stephane Nicoll
|
* @author Stephane Nicoll
|
||||||
* @author Dave Syer
|
* @author Dave Syer
|
||||||
@@ -61,4 +61,5 @@ class SpringBootMetadataReaderTests {
|
|||||||
}
|
}
|
||||||
server.verify()
|
server.verify()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user