commit
502d14cfce
|
|
@ -30,7 +30,7 @@ import org.springframework.context.annotation.Import;
|
|||
* rules as {@code @EnableAutoConfiguration} but restricts the auto-configuration classes
|
||||
* to the specified set, rather than consulting {@code spring.factories}.
|
||||
* <p>
|
||||
* Generally, {@code @EnableAutoConfiguration} should used in preference to this
|
||||
* Generally, {@code @EnableAutoConfiguration} should be used in preference to this
|
||||
* annotation, however, {@code @ImportAutoConfiguration} can be useful in some situations
|
||||
* and especially when writing tests.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ import org.springframework.session.hazelcast.config.annotation.web.http.Hazelcas
|
|||
class HazelcastSessionConfiguration {
|
||||
|
||||
@Configuration
|
||||
public static class SprigBootHazelcastHttpSessionConfiguration
|
||||
public static class SpringBootHazelcastHttpSessionConfiguration
|
||||
extends HazelcastHttpSessionConfiguration {
|
||||
|
||||
@Autowired
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ import org.junit.Test;
|
|||
import org.junit.runner.RunWith;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionEvaluationReport;
|
||||
import org.springframework.boot.test.autoconfigure.web.servlet.MockMvcSecurityAutoConfiguration;
|
||||
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
|
|
@ -46,9 +45,6 @@ public class MockMvcSecurityAutoConfigurationIntegrationTests {
|
|||
@Autowired
|
||||
MockMvc mockMvc;
|
||||
|
||||
@Autowired
|
||||
ConditionEvaluationReport conditionEvaluationReport;
|
||||
|
||||
@Test
|
||||
@WithMockUser(username = "test", password = "test", roles = "USER")
|
||||
public void okResponseWithMockUser() throws Exception {
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||
|
||||
/**
|
||||
* Base class for {@link SpringBootTest} tests configured to start an embedded servlet
|
||||
* container
|
||||
* container.
|
||||
*
|
||||
* @author Phillip Webb
|
||||
* @author Andy Wilkinson
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|||
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
|
||||
|
||||
/**
|
||||
* Tests for {@link SpringBootTest} configured with {@link WebEnvironment#DEFINED_PORT}.
|
||||
* Tests for {@link SpringBootTest} configured with {@link WebEnvironment#RANDOM_PORT}.
|
||||
*
|
||||
* @author Phillip Webb
|
||||
* @author Andy Wilkinson
|
||||
|
|
|
|||
Loading…
Reference in New Issue