Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
debe15b2
Commit
debe15b2
authored
Feb 05, 2018
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
aac88502
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
MockBeanWithDirtiesContextClassModeBeforeMethodIntegrationTests.java
...hDirtiesContextClassModeBeforeMethodIntegrationTests.java
+1
-2
SpyBeanWithDirtiesContextClassModeBeforeMethodIntegrationTests.java
...hDirtiesContextClassModeBeforeMethodIntegrationTests.java
+1
-2
No files found.
spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/MockBeanWithDirtiesContextClassModeBeforeMethodIntegrationTests.java
View file @
debe15b2
...
@@ -26,7 +26,6 @@ import org.springframework.context.annotation.Configuration;
...
@@ -26,7 +26,6 @@ import org.springframework.context.annotation.Configuration;
import
org.springframework.context.annotation.Import
;
import
org.springframework.context.annotation.Import
;
import
org.springframework.test.annotation.DirtiesContext
;
import
org.springframework.test.annotation.DirtiesContext
;
import
org.springframework.test.annotation.DirtiesContext.ClassMode
;
import
org.springframework.test.annotation.DirtiesContext.ClassMode
;
import
org.springframework.test.annotation.DirtiesContext.MethodMode
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
...
@@ -34,7 +33,7 @@ import static org.mockito.BDDMockito.given;
...
@@ -34,7 +33,7 @@ import static org.mockito.BDDMockito.given;
/**
/**
* Integration tests for using {@link MockBean} with {@link DirtiesContext} and
* Integration tests for using {@link MockBean} with {@link DirtiesContext} and
* {@link
MethodMode#BEFORE
_METHOD}.
* {@link
ClassMode#BEFORE_EACH_TEST
_METHOD}.
*
*
* @author Andy Wilkinson
* @author Andy Wilkinson
*/
*/
...
...
spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/SpyBeanWithDirtiesContextClassModeBeforeMethodIntegrationTests.java
View file @
debe15b2
...
@@ -26,14 +26,13 @@ import org.springframework.context.annotation.Configuration;
...
@@ -26,14 +26,13 @@ import org.springframework.context.annotation.Configuration;
import
org.springframework.context.annotation.Import
;
import
org.springframework.context.annotation.Import
;
import
org.springframework.test.annotation.DirtiesContext
;
import
org.springframework.test.annotation.DirtiesContext
;
import
org.springframework.test.annotation.DirtiesContext.ClassMode
;
import
org.springframework.test.annotation.DirtiesContext.ClassMode
;
import
org.springframework.test.annotation.DirtiesContext.MethodMode
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
static
org
.
mockito
.
Mockito
.
verify
;
import
static
org
.
mockito
.
Mockito
.
verify
;
/**
/**
* Integration tests for using {@link SpyBean} with {@link DirtiesContext} and
* Integration tests for using {@link SpyBean} with {@link DirtiesContext} and
* {@link
MethodMode#BEFORE
_METHOD}.
* {@link
ClassMode#BEFORE_EACH_TEST
_METHOD}.
*
*
* @author Andy Wilkinson
* @author Andy Wilkinson
*/
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment