Fix formatting following formatter update

pull/16472/head
Madhura Bhave 6 years ago
parent ddc52502f5
commit eff2f92c48

@ -37,9 +37,9 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Madhura Bhave * @author Madhura Bhave
*/ */
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT, properties = { @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT,
"management.server.port=0", properties = { "management.server.port=0",
"management.server.servlet.context-path=/management" }) "management.server.servlet.context-path=/management" })
public class ManagementPortAndPathSampleActuatorApplicationTests { public class ManagementPortAndPathSampleActuatorApplicationTests {
@LocalServerPort @LocalServerPort

@ -38,8 +38,8 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Dave Syer * @author Dave Syer
*/ */
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT, properties = { @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT,
"management.server.port:0" }) properties = { "management.server.port:0" })
public class SampleActuatorUiApplicationPortTests { public class SampleActuatorUiApplicationPortTests {
@LocalServerPort @LocalServerPort

@ -38,9 +38,9 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Dave Syer * @author Dave Syer
*/ */
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT, properties = { @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT,
"management.server.port=0", "management.server.address=127.0.0.1", properties = { "management.server.port=0", "management.server.address=127.0.0.1",
"management.server.servlet.context-path:/admin" }) "management.server.servlet.context-path:/admin" })
public class ManagementAddressActuatorApplicationTests { public class ManagementAddressActuatorApplicationTests {
@LocalServerPort @LocalServerPort

@ -37,8 +37,8 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Dave Syer * @author Dave Syer
*/ */
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT, properties = { @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT,
"management.endpoints.web.base-path=/admin" }) properties = { "management.endpoints.web.base-path=/admin" })
public class ManagementPathSampleActuatorApplicationTests { public class ManagementPathSampleActuatorApplicationTests {
@Autowired @Autowired

@ -40,9 +40,10 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Dave Syer * @author Dave Syer
*/ */
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT, properties = { @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT,
"management.server.port=0", "management.endpoints.web.base-path=/admin", properties = { "management.server.port=0",
"management.endpoint.health.show-details=never" }) "management.endpoints.web.base-path=/admin",
"management.endpoint.health.show-details=never" })
public class ManagementPortAndPathSampleActuatorApplicationTests { public class ManagementPortAndPathSampleActuatorApplicationTests {
@LocalServerPort @LocalServerPort

@ -37,8 +37,8 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Dave Syer * @author Dave Syer
*/ */
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT, properties = { @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT,
"management.server.port=-1" }) properties = { "management.server.port=-1" })
public class NoManagementSampleActuatorApplicationTests { public class NoManagementSampleActuatorApplicationTests {
@Autowired @Autowired

@ -37,8 +37,8 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Dave Syer * @author Dave Syer
*/ */
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT, properties = { @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT,
"spring.mvc.servlet.path=/spring" }) properties = { "spring.mvc.servlet.path=/spring" })
public class ServletPathSampleActuatorApplicationTests { public class ServletPathSampleActuatorApplicationTests {
@Autowired @Autowired

@ -41,9 +41,10 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Dave Syer * @author Dave Syer
*/ */
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(classes = { @SpringBootTest(
ShutdownSampleActuatorApplicationTests.SecurityConfiguration.class, classes = { ShutdownSampleActuatorApplicationTests.SecurityConfiguration.class,
SampleActuatorApplication.class }, webEnvironment = WebEnvironment.RANDOM_PORT) SampleActuatorApplication.class },
webEnvironment = WebEnvironment.RANDOM_PORT)
public class ShutdownSampleActuatorApplicationTests { public class ShutdownSampleActuatorApplicationTests {
@Autowired @Autowired

@ -45,7 +45,8 @@ public class ChatService {
+ (event.isCancelled() ? "cancelled" : "closed") + "]"); + (event.isCancelled() ? "cancelled" : "closed") + "]");
} }
@org.atmosphere.config.service.Message(encoders = JacksonEncoderDecoder.class, decoders = JacksonEncoderDecoder.class) @org.atmosphere.config.service.Message(encoders = JacksonEncoderDecoder.class,
decoders = JacksonEncoderDecoder.class)
public Message onMessage(Message message) throws IOException { public Message onMessage(Message message) throws IOException {
this.logger.info("Author " + message.getAuthor() + " sent message " this.logger.info("Author " + message.getAuthor() + " sent message "
+ message.getMessage()); + message.getMessage());

@ -45,7 +45,8 @@ import org.springframework.web.socket.handler.TextWebSocketHandler;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(classes = SampleAtmosphereApplication.class, webEnvironment = WebEnvironment.RANDOM_PORT) @SpringBootTest(classes = SampleAtmosphereApplication.class,
webEnvironment = WebEnvironment.RANDOM_PORT)
public class SampleAtmosphereApplicationTests { public class SampleAtmosphereApplicationTests {
private static Log logger = LogFactory.getLog(SampleAtmosphereApplicationTests.class); private static Log logger = LogFactory.getLog(SampleAtmosphereApplicationTests.class);

@ -39,8 +39,8 @@ import static org.assertj.core.api.Assertions.assertThat;
* Tests for {@link SampleCassandraApplication}. * Tests for {@link SampleCassandraApplication}.
*/ */
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@TestExecutionListeners(mergeMode = MergeMode.MERGE_WITH_DEFAULTS, listeners = { @TestExecutionListeners(mergeMode = MergeMode.MERGE_WITH_DEFAULTS,
OrderedCassandraTestExecutionListener.class }) listeners = { OrderedCassandraTestExecutionListener.class })
@SpringBootTest @SpringBootTest
@CassandraDataSet(keyspace = "mykeyspace", value = "setup.cql") @CassandraDataSet(keyspace = "mykeyspace", value = "setup.cql")
@EmbeddedCassandra(timeout = 60000) @EmbeddedCassandra(timeout = 60000)

@ -19,7 +19,8 @@ package sample.data.elasticsearch;
import org.springframework.data.annotation.Id; import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document; import org.springframework.data.elasticsearch.annotations.Document;
@Document(indexName = "customer", type = "customer", shards = 1, replicas = 0, refreshInterval = "-1") @Document(indexName = "customer", type = "customer", shards = 1, replicas = 0,
refreshInterval = "-1")
public class Customer { public class Customer {
@Id @Id

@ -30,7 +30,8 @@ public class City implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@Id @Id
@SequenceGenerator(name = "city_generator", sequenceName = "city_sequence", initialValue = 23) @SequenceGenerator(name = "city_generator", sequenceName = "city_sequence",
initialValue = 23)
@GeneratedValue(generator = "city_generator") @GeneratedValue(generator = "city_generator")
private Long id; private Long id;

@ -36,7 +36,8 @@ public class Hotel implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@Id @Id
@SequenceGenerator(name = "hotel_generator", sequenceName = "hotel_sequence", initialValue = 28) @SequenceGenerator(name = "hotel_generator", sequenceName = "hotel_sequence",
initialValue = 28)
@GeneratedValue(generator = "hotel_generator") @GeneratedValue(generator = "hotel_generator")
private Long id; private Long id;

@ -38,7 +38,8 @@ public class Review implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@Id @Id
@SequenceGenerator(name = "review_generator", sequenceName = "review_sequence", initialValue = 64) @SequenceGenerator(name = "review_generator", sequenceName = "review_sequence",
initialValue = 64)
@GeneratedValue(generator = "review_generator") @GeneratedValue(generator = "review_generator")
private Long id; private Long id;

@ -45,8 +45,8 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
*/ */
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
// Enable JMX so we can test the MBeans (you can't do this in a properties file) // Enable JMX so we can test the MBeans (you can't do this in a properties file)
@SpringBootTest(properties = { "spring.jmx.enabled:true", @SpringBootTest(
"spring.datasource.jmx-enabled:true" }) properties = { "spring.jmx.enabled:true", "spring.datasource.jmx-enabled:true" })
@ActiveProfiles("scratch") @ActiveProfiles("scratch")
// Separate profile for web tests to avoid clashing databases // Separate profile for web tests to avoid clashing databases
public class SampleDataJpaApplicationTests { public class SampleDataJpaApplicationTests {

@ -30,7 +30,8 @@ public class City implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@Id @Id
@SequenceGenerator(name = "city_generator", sequenceName = "city_sequence", initialValue = 23) @SequenceGenerator(name = "city_generator", sequenceName = "city_sequence",
initialValue = 23)
@GeneratedValue(generator = "city_generator") @GeneratedValue(generator = "city_generator")
private Long id; private Long id;

@ -33,7 +33,8 @@ public class Hotel implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@Id @Id
@SequenceGenerator(name = "hotel_generator", sequenceName = "hotel_sequence", initialValue = 28) @SequenceGenerator(name = "hotel_generator", sequenceName = "hotel_sequence",
initialValue = 28)
@GeneratedValue(generator = "hotel_generator") @GeneratedValue(generator = "hotel_generator")
private Long id; private Long id;

@ -25,7 +25,8 @@ import javax.persistence.SequenceGenerator;
public class Person { public class Person {
@Id @Id
@SequenceGenerator(name = "person_generator", sequenceName = "person_sequence", allocationSize = 1) @SequenceGenerator(name = "person_generator", sequenceName = "person_sequence",
allocationSize = 1)
@GeneratedValue(generator = "person_generator") @GeneratedValue(generator = "person_generator")
private Long id; private Long id;

@ -28,7 +28,8 @@ import javax.persistence.SequenceGenerator;
public class Note { public class Note {
@Id @Id
@SequenceGenerator(name = "note_generator", sequenceName = "note_sequence", initialValue = 5) @SequenceGenerator(name = "note_generator", sequenceName = "note_sequence",
initialValue = 5)
@GeneratedValue(generator = "note_generator") @GeneratedValue(generator = "note_generator")
private long id; private long id;

@ -28,7 +28,8 @@ import javax.persistence.SequenceGenerator;
public class Tag { public class Tag {
@Id @Id
@SequenceGenerator(name = "tag_generator", sequenceName = "tag_sequence", initialValue = 4) @SequenceGenerator(name = "tag_generator", sequenceName = "tag_sequence",
initialValue = 4)
@GeneratedValue(generator = "tag_generator") @GeneratedValue(generator = "tag_generator")
private long id; private long id;

@ -34,7 +34,8 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Stephane Nicoll * @author Stephane Nicoll
*/ */
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(properties = "spring.kafka.bootstrap-servers=${spring.embedded.kafka.brokers}") @SpringBootTest(
properties = "spring.kafka.bootstrap-servers=${spring.embedded.kafka.brokers}")
@EmbeddedKafka @EmbeddedKafka
public class SampleKafkaApplicationTests { public class SampleKafkaApplicationTests {

@ -32,10 +32,10 @@ import org.springframework.test.context.junit4.SpringRunner;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, properties = { @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
"APP-CLIENT-ID=my-client-id", "APP-CLIENT-SECRET=my-client-secret", properties = { "APP-CLIENT-ID=my-client-id", "APP-CLIENT-SECRET=my-client-secret",
"YAHOO-CLIENT-ID=my-yahoo-client-id", "YAHOO-CLIENT-ID=my-yahoo-client-id",
"YAHOO-CLIENT-SECRET=my-yahoo-client-secret" }) "YAHOO-CLIENT-SECRET=my-yahoo-client-secret" })
public class SampleOAuth2ClientApplicationTests { public class SampleOAuth2ClientApplicationTests {
@LocalServerPort @LocalServerPort

@ -27,10 +27,10 @@ import org.springframework.test.web.reactive.server.WebTestClient;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, properties = { @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
"APP-CLIENT-ID=my-client-id", "APP-CLIENT-SECRET=my-client-secret", properties = { "APP-CLIENT-ID=my-client-id", "APP-CLIENT-SECRET=my-client-secret",
"YAHOO-CLIENT-ID=my-google-client-id", "YAHOO-CLIENT-ID=my-google-client-id",
"YAHOO-CLIENT-SECRET=my-google-client-secret" }) "YAHOO-CLIENT-SECRET=my-google-client-secret" })
public class SampleReactiveOAuth2ClientApplicationTests { public class SampleReactiveOAuth2ClientApplicationTests {
@Autowired @Autowired

@ -44,9 +44,9 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Madhura Bhave * @author Madhura Bhave
*/ */
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT, properties = { @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT,
"management.server.port=0" }, classes = { properties = { "management.server.port=0" },
ManagementPortSampleSecureWebFluxTests.SecurityConfiguration.class, classes = { ManagementPortSampleSecureWebFluxTests.SecurityConfiguration.class,
SampleSecureWebFluxApplication.class }) SampleSecureWebFluxApplication.class })
public class ManagementPortSampleSecureWebFluxTests { public class ManagementPortSampleSecureWebFluxTests {

@ -34,7 +34,8 @@ import org.springframework.test.web.reactive.server.WebTestClient;
* @author Madhura Bhave * @author Madhura Bhave
*/ */
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, properties = "management.endpoint.health.show-details=never") @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
properties = "management.endpoint.health.show-details=never")
public class SampleSecureWebFluxApplicationTests { public class SampleSecureWebFluxApplicationTests {
@Autowired @Autowired

@ -43,9 +43,9 @@ import org.springframework.test.web.reactive.server.WebTestClient;
* @author Madhura Bhave * @author Madhura Bhave
*/ */
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = { @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
SampleSecureWebFluxCustomSecurityTests.SecurityConfiguration.class, classes = { SampleSecureWebFluxCustomSecurityTests.SecurityConfiguration.class,
SampleSecureWebFluxApplication.class }) SampleSecureWebFluxApplication.class })
public class SampleSecureWebFluxCustomSecurityTests { public class SampleSecureWebFluxCustomSecurityTests {
@Autowired @Autowired

@ -39,7 +39,8 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Vedran Pavic * @author Vedran Pavic
*/ */
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(properties = "server.servlet.session.timeout:2", webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) @SpringBootTest(properties = "server.servlet.session.timeout:2",
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class SampleSessionWebFluxApplicationTests { public class SampleSessionWebFluxApplicationTests {
@LocalServerPort @LocalServerPort

@ -64,8 +64,8 @@ public class NonAutoConfigurationSampleTomcatApplicationTests {
DispatcherServletAutoConfiguration.class, WebMvcAutoConfiguration.class, DispatcherServletAutoConfiguration.class, WebMvcAutoConfiguration.class,
HttpMessageConvertersAutoConfiguration.class, HttpMessageConvertersAutoConfiguration.class,
PropertyPlaceholderAutoConfiguration.class }) PropertyPlaceholderAutoConfiguration.class })
@ComponentScan(basePackageClasses = { SampleController.class, @ComponentScan(
HelloWorldService.class }) basePackageClasses = { SampleController.class, HelloWorldService.class })
public static class NonAutoConfigurationSampleTomcatApplication { public static class NonAutoConfigurationSampleTomcatApplication {
public static void main(String[] args) { public static void main(String[] args) {

@ -23,8 +23,10 @@ import org.springframework.web.bind.annotation.RestController;
@RestController @RestController
public class ExampleController { public class ExampleController {
@PostMapping(path = "/", consumes = { MediaType.APPLICATION_JSON_VALUE, @PostMapping(path = "/",
"!application/xml" }, produces = MediaType.TEXT_PLAIN_VALUE, headers = "X-Custom=Foo", params = "a!=alpha") consumes = { MediaType.APPLICATION_JSON_VALUE, "!application/xml" },
produces = MediaType.TEXT_PLAIN_VALUE, headers = "X-Custom=Foo",
params = "a!=alpha")
public String example() { public String example() {
return "Hello World"; return "Hello World";
} }

@ -45,7 +45,8 @@ import org.springframework.web.socket.client.standard.StandardWebSocketClient;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(classes = SampleJettyWebSocketsApplication.class, webEnvironment = WebEnvironment.RANDOM_PORT) @SpringBootTest(classes = SampleJettyWebSocketsApplication.class,
webEnvironment = WebEnvironment.RANDOM_PORT)
public class SampleWebSocketsApplicationTests { public class SampleWebSocketsApplicationTests {
private static Log logger = LogFactory.getLog(SampleWebSocketsApplicationTests.class); private static Log logger = LogFactory.getLog(SampleWebSocketsApplicationTests.class);

@ -49,8 +49,10 @@ import org.springframework.web.socket.client.standard.StandardWebSocketClient;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(classes = { SampleJettyWebSocketsApplication.class, @SpringBootTest(
CustomContainerConfiguration.class }, webEnvironment = WebEnvironment.RANDOM_PORT) classes = { SampleJettyWebSocketsApplication.class,
CustomContainerConfiguration.class },
webEnvironment = WebEnvironment.RANDOM_PORT)
public class CustomContainerWebSocketsApplicationTests { public class CustomContainerWebSocketsApplicationTests {
private static Log logger = LogFactory private static Log logger = LogFactory

@ -45,7 +45,8 @@ import org.springframework.web.socket.client.standard.StandardWebSocketClient;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(classes = SampleTomcatWebSocketApplication.class, webEnvironment = WebEnvironment.RANDOM_PORT) @SpringBootTest(classes = SampleTomcatWebSocketApplication.class,
webEnvironment = WebEnvironment.RANDOM_PORT)
public class SampleWebSocketsApplicationTests { public class SampleWebSocketsApplicationTests {
private static Log logger = LogFactory.getLog(SampleWebSocketsApplicationTests.class); private static Log logger = LogFactory.getLog(SampleWebSocketsApplicationTests.class);

@ -49,8 +49,10 @@ import org.springframework.web.socket.client.standard.StandardWebSocketClient;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(classes = { SampleTomcatWebSocketApplication.class, @SpringBootTest(
CustomContainerConfiguration.class }, webEnvironment = WebEnvironment.RANDOM_PORT) classes = { SampleTomcatWebSocketApplication.class,
CustomContainerConfiguration.class },
webEnvironment = WebEnvironment.RANDOM_PORT)
public class CustomContainerWebSocketsApplicationTests { public class CustomContainerWebSocketsApplicationTests {
private static Log logger = LogFactory private static Log logger = LogFactory

@ -45,7 +45,8 @@ import org.springframework.web.socket.client.standard.StandardWebSocketClient;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(classes = SampleUndertowWebSocketsApplication.class, webEnvironment = WebEnvironment.RANDOM_PORT) @SpringBootTest(classes = SampleUndertowWebSocketsApplication.class,
webEnvironment = WebEnvironment.RANDOM_PORT)
public class SampleWebSocketsApplicationTests { public class SampleWebSocketsApplicationTests {
private static Log logger = LogFactory.getLog(SampleWebSocketsApplicationTests.class); private static Log logger = LogFactory.getLog(SampleWebSocketsApplicationTests.class);

@ -49,8 +49,10 @@ import org.springframework.web.socket.client.standard.StandardWebSocketClient;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)
@SpringBootTest(classes = { SampleUndertowWebSocketsApplication.class, @SpringBootTest(
CustomContainerConfiguration.class }, webEnvironment = WebEnvironment.RANDOM_PORT) classes = { SampleUndertowWebSocketsApplication.class,
CustomContainerConfiguration.class },
webEnvironment = WebEnvironment.RANDOM_PORT)
public class CustomContainerWebSocketsApplicationTests { public class CustomContainerWebSocketsApplicationTests {
private static Log logger = LogFactory private static Log logger = LogFactory

Loading…
Cancel
Save