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
99ea724c
Commit
99ea724c
authored
Apr 13, 2016
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish docs
parent
296bbbc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
spring-boot-features.adoc
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+4
-2
No files found.
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
99ea724c
...
...
@@ -4435,7 +4435,7 @@ the annotations will be ignored.
[[boot-features-testing-spring-boot-applications-detecting-config]]
==== Detecting configuration
==== Detecting
test
configuration
If you're familiar with the Spring Test Framework, you may be used to using
`@ContextConfiguration(classes=...)` in order to specify which Spring `@Configuration`
to load. Alternatively, you might have often used nested `@Configuration` classes within
...
...
@@ -4522,7 +4522,7 @@ For convenience, tests that need to make REST calls to the started server can ad
[[boot-features-testing-spring-boot-applications-mocking-beans]]
==== Mocking
B
eans
==== Mocking
and spying b
eans
It's sometimes necessary to mock certain components within your application context when
running tests. For example, you may have a facade over some remote service that's
unavailable during development. Mocking can also be useful when you want to simulate
...
...
@@ -4571,6 +4571,8 @@ implementation:
}
----
Additionally you can also use `@SpyBean` to wrap any existing bean with a Mockito `spy`.
See the javadoc for full details.
[[boot-features-testing-spring-boot-applications-testing-autoconfigured-tests]]
...
...
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