New posts in spring-test

Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test

How to autowire field in static @BeforeClass?

Error: Unable to find @SpringBootConfiguration when doing @WebMvcTest for Spring Controller

Reload or refresh a Spring application context inside a test method?

How to clean up mocks in spring tests when using Mockito

Configure specific in memory database for testing purpose in Spring

@RunWith(SpringRunner.class) vs @RunWith(MockitoJUnitRunner.class)

org.junit.platform.commons.JUnitException: TestEngine with ID 'junit-jupiter' failed to discover tests

spring boot test unable to inject TestRestTemplate and MockMvc

Spring boot 1.4 Testing : Configuration error: found multiple declarations of @BootstrapWith

Spring beans redefinition in unit test environment

How to unit test a Spring MVC controller using @PathVariable?

Override a single @Configuration class on every spring boot @Test

Mockito Exception - when() requires an argument which has to be a method call on a mock

Spring Boot: @TestConfiguration Not Overriding Bean During Integration Test

java.lang.IllegalArgumentException: A ServletContext is required to configure default servlet handling

Spring Boot properties in 'application.yml' not loading from JUnit Test

request scoped beans in spring testing

Disable security for unit tests with spring boot

How to access Spring context in jUnit tests annotated with @RunWith and @ContextConfiguration?