|
|
|
@ -26,7 +26,6 @@ import org.springframework.context.annotation.Configuration;
|
|
|
|
|
import org.springframework.context.annotation.Import;
|
|
|
|
|
import org.springframework.test.annotation.DirtiesContext;
|
|
|
|
|
import org.springframework.test.annotation.DirtiesContext.ClassMode;
|
|
|
|
|
import org.springframework.test.annotation.DirtiesContext.MethodMode;
|
|
|
|
|
import org.springframework.test.context.junit4.SpringRunner;
|
|
|
|
|
|
|
|
|
|
import static org.assertj.core.api.Assertions.assertThat;
|
|
|
|
@ -34,7 +33,7 @@ import static org.mockito.BDDMockito.given;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Integration tests for using {@link MockBean} with {@link DirtiesContext} and
|
|
|
|
|
* {@link MethodMode#BEFORE_METHOD}.
|
|
|
|
|
* {@link ClassMode#BEFORE_EACH_TEST_METHOD}.
|
|
|
|
|
*
|
|
|
|
|
* @author Andy Wilkinson
|
|
|
|
|
*/
|
|
|
|
|