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
a65bed47
Commit
a65bed47
authored
Apr 14, 2016
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5685 from izeye/polish-20160414
* pr/5685: Polish
parents
5424c566
90d897eb
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
12 additions
and
12 deletions
+12
-12
UserVehicleControllerApplicationTests.java
...ample/test/web/UserVehicleControllerApplicationTests.java
+1
-1
OverrideAutoConfiguration.java
...rk/boot/test/autoconfigure/OverrideAutoConfiguration.java
+1
-1
TypeExcludeFilters.java
...rk/boot/test/autoconfigure/filter/TypeExcludeFilters.java
+2
-2
AutoConfigureJsonTesters.java
...oot/test/autoconfigure/json/AutoConfigureJsonTesters.java
+1
-1
DataJpaTest.java
...ramework/boot/test/autoconfigure/orm/jpa/DataJpaTest.java
+1
-1
WebMvcTest.java
...ework/boot/test/autoconfigure/web/servlet/WebMvcTest.java
+1
-1
TypeExcludeFiltersContextCustomizerFactoryTests.java
...lter/TypeExcludeFiltersContextCustomizerFactoryTests.java
+1
-1
MockMvcSpringBootTestIntegrationTests.java
...re/web/servlet/MockMvcSpringBootTestIntegrationTests.java
+1
-1
WebMvcTestOneControllerIntegrationTests.java
.../web/servlet/WebMvcTestOneControllerIntegrationTests.java
+1
-1
SpringApplicationContextLoader.java
...ngframework/boot/test/SpringApplicationContextLoader.java
+1
-1
TypeExcludeFilter.java
...a/org/springframework/boot/context/TypeExcludeFilter.java
+1
-1
No files found.
spring-boot-samples/spring-boot-sample-test/src/test/java/sample/test/web/UserVehicleControllerApplicationTests.java
View file @
a65bed47
...
@@ -38,7 +38,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
...
@@ -38,7 +38,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
import
static
org
.
springframework
.
test
.
web
.
servlet
.
result
.
MockMvcResultMatchers
.
status
;
import
static
org
.
springframework
.
test
.
web
.
servlet
.
result
.
MockMvcResultMatchers
.
status
;
/**
/**
* {@code @Spring
Application
Test} based tests for {@link UserVehicleController}.
* {@code @Spring
Boot
Test} based tests for {@link UserVehicleController}.
*
*
* @author Phillip Webb
* @author Phillip Webb
*/
*/
...
...
spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/OverrideAutoConfiguration.java
View file @
a65bed47
...
@@ -42,7 +42,7 @@ public @interface OverrideAutoConfiguration {
...
@@ -42,7 +42,7 @@ public @interface OverrideAutoConfiguration {
/**
/**
* The value of the {@link EnableAutoConfiguration#ENABLED_OVERRIDE_PROPERTY enabled
* The value of the {@link EnableAutoConfiguration#ENABLED_OVERRIDE_PROPERTY enabled
*
property override
}.
*
override property
}.
* @return the override value
* @return the override value
*/
*/
boolean
enabled
();
boolean
enabled
();
...
...
spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/filter/TypeExcludeFilters.java
View file @
a65bed47
...
@@ -26,7 +26,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
...
@@ -26,7 +26,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import
org.springframework.boot.context.TypeExcludeFilter
;
import
org.springframework.boot.context.TypeExcludeFilter
;
/**
/**
* Annotation that can
on tests to define a set of {@link TypeExcludeFilter
} classes that
* Annotation that can
be on tests to define a set of {@link TypeExcludeFilter
} classes that
* should be applied to {@link SpringBootApplication @SpringBootApplication} component
* should be applied to {@link SpringBootApplication @SpringBootApplication} component
* scanning.
* scanning.
*
*
...
@@ -43,7 +43,7 @@ public @interface TypeExcludeFilters {
...
@@ -43,7 +43,7 @@ public @interface TypeExcludeFilters {
* Specifies {@link TypeExcludeFilter} classes that should be applied to
* Specifies {@link TypeExcludeFilter} classes that should be applied to
* {@link SpringBootApplication @SpringBootApplication} component scanning. Classes
* {@link SpringBootApplication @SpringBootApplication} component scanning. Classes
* specified here can either have a no-arg constructor or accept a single
* specified here can either have a no-arg constructor or accept a single
* {@code Class<?>} argument if the
n
need access to the {@code testClass}.
* {@code Class<?>} argument if the
y
need access to the {@code testClass}.
* @see TypeExcludeFilter
* @see TypeExcludeFilter
* @return the type exclude filters to apply
* @return the type exclude filters to apply
*/
*/
...
...
spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/json/AutoConfigureJsonTesters.java
View file @
a65bed47
...
@@ -32,7 +32,7 @@ import org.springframework.test.context.TestExecutionListeners.MergeMode;
...
@@ -32,7 +32,7 @@ import org.springframework.test.context.TestExecutionListeners.MergeMode;
/**
/**
* Annotation that can be applied to a test class to enable and configure
* Annotation that can be applied to a test class to enable and configure
* auto-configuration of JSON
T
esters.
* auto-configuration of JSON
t
esters.
* <p>
* <p>
* NOTE: {@code @AutoConfigureJsonTesters} works in conjunction with
* NOTE: {@code @AutoConfigureJsonTesters} works in conjunction with
* {@link JsonTesterInitializationTestExecutionListener}. If you declare your own
* {@link JsonTesterInitializationTestExecutionListener}. If you declare your own
...
...
spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/orm/jpa/DataJpaTest.java
View file @
a65bed47
...
@@ -47,7 +47,7 @@ import org.springframework.transaction.annotation.Transactional;
...
@@ -47,7 +47,7 @@ import org.springframework.transaction.annotation.Transactional;
* override these settings.
* override these settings.
* <p>
* <p>
* If you are looking to load your full application configuration, but use an embedded
* If you are looking to load your full application configuration, but use an embedded
* database, you should consider {@link SpringBootTest @Spring
Application
Test}
* database, you should consider {@link SpringBootTest @Spring
Boot
Test}
* combined with {@link AutoConfigureTestDatabase @AutoConfigureTestDatabase} rather than
* combined with {@link AutoConfigureTestDatabase @AutoConfigureTestDatabase} rather than
* this annotation.
* this annotation.
*
*
...
...
spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/web/servlet/WebMvcTest.java
View file @
a65bed47
...
@@ -46,7 +46,7 @@ import org.springframework.test.web.servlet.MockMvc;
...
@@ -46,7 +46,7 @@ import org.springframework.test.web.servlet.MockMvc;
* {@code @Component}, {@code @Service} or {@code @Repository} beans).
* {@code @Component}, {@code @Service} or {@code @Repository} beans).
* <p>
* <p>
* By default, tests annotated with {@code @WebMvcTest} will also auto-configure
* By default, tests annotated with {@code @WebMvcTest} will also auto-configure
* {@link MockMvc} (include support for HtmlUnit Web
Driver and Selenium WebClient
). For
* {@link MockMvc} (include support for HtmlUnit Web
Client and Selenium WebDriver
). For
* more fine-grained control of MockMVC that
* more fine-grained control of MockMVC that
* {@link AutoConfigureMockMvc @AutoConfigureMockMvc} annotation can be used.
* {@link AutoConfigureMockMvc @AutoConfigureMockMvc} annotation can be used.
* <p>
* <p>
...
...
spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/filter/TypeExcludeFilters
Test
ContextCustomizerFactoryTests.java
→
spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/filter/TypeExcludeFiltersContextCustomizerFactoryTests.java
View file @
a65bed47
...
@@ -37,7 +37,7 @@ import static org.mockito.Mockito.mock;
...
@@ -37,7 +37,7 @@ import static org.mockito.Mockito.mock;
*
*
* @author Phillip Webb
* @author Phillip Webb
*/
*/
public
class
TypeExcludeFilters
Test
ContextCustomizerFactoryTests
{
public
class
TypeExcludeFiltersContextCustomizerFactoryTests
{
private
TypeExcludeFiltersContextCustomizerFactory
factory
=
new
TypeExcludeFiltersContextCustomizerFactory
();
private
TypeExcludeFiltersContextCustomizerFactory
factory
=
new
TypeExcludeFiltersContextCustomizerFactory
();
...
...
spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/servlet/MockMvcSpring
Application
TestIntegrationTests.java
→
spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/servlet/MockMvcSpring
Boot
TestIntegrationTests.java
View file @
a65bed47
...
@@ -40,7 +40,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
...
@@ -40,7 +40,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
@RunWith
(
SpringRunner
.
class
)
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
@SpringBootTest
@AutoConfigureMockMvc
(
alwaysPrint
=
false
)
@AutoConfigureMockMvc
(
alwaysPrint
=
false
)
public
class
MockMvcSpring
Application
TestIntegrationTests
{
public
class
MockMvcSpring
Boot
TestIntegrationTests
{
@MockBean
@MockBean
private
ExampleMockableService
service
;
private
ExampleMockableService
service
;
...
...
spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/servlet/WebMvcTestOneControllerIntegrationTests.java
View file @
a65bed47
...
@@ -28,7 +28,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
...
@@ -28,7 +28,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
import
static
org
.
springframework
.
test
.
web
.
servlet
.
result
.
MockMvcResultMatchers
.
status
;
import
static
org
.
springframework
.
test
.
web
.
servlet
.
result
.
MockMvcResultMatchers
.
status
;
/**
/**
* Tests for {@link WebMvcTest} when
no explicit
controller is defined.
* Tests for {@link WebMvcTest} when
a specific
controller is defined.
*
*
* @author Phillip Webb
* @author Phillip Webb
*/
*/
...
...
spring-boot-test/src/main/java/org/springframework/boot/test/SpringApplicationContextLoader.java
View file @
a65bed47
...
@@ -70,7 +70,7 @@ import org.springframework.web.context.support.GenericWebApplicationContext;
...
@@ -70,7 +70,7 @@ import org.springframework.web.context.support.GenericWebApplicationContext;
* @see org.springframework.boot.test.context.SpringBootTest
* @see org.springframework.boot.test.context.SpringBootTest
* @see org.springframework.boot.test.IntegrationTest
* @see org.springframework.boot.test.IntegrationTest
* @see org.springframework.boot.test.WebIntegrationTest
* @see org.springframework.boot.test.WebIntegrationTest
* @deprecated as of 1.4 in favor of {@link SpringBootTest @Spring
Application
Test}
* @deprecated as of 1.4 in favor of {@link SpringBootTest @Spring
Boot
Test}
* {@link org.springframework.boot.test.context.SpringBootContextLoader} can also be
* {@link org.springframework.boot.test.context.SpringBootContextLoader} can also be
* considered if absolutely necessary.
* considered if absolutely necessary.
*/
*/
...
...
spring-boot/src/main/java/org/springframework/boot/context/TypeExcludeFilter.java
View file @
a65bed47
...
@@ -39,7 +39,7 @@ import org.springframework.core.type.filter.TypeFilter;
...
@@ -39,7 +39,7 @@ import org.springframework.core.type.filter.TypeFilter;
* override the {@link #match(MetadataReader, MetadataReaderFactory)} method.
* override the {@link #match(MetadataReader, MetadataReaderFactory)} method.
* <p>
* <p>
* Note that {@code TypeExcludeFilters} are initialized very early in the application
* Note that {@code TypeExcludeFilters} are initialized very early in the application
* lifecycle, they should generally not have dependencies on any other beans. They a
nd a
re
* lifecycle, they should generally not have dependencies on any other beans. They are
* primarily used internally to support {@code spring-boot-test}.
* primarily used internally to support {@code spring-boot-test}.
*
*
* @author Phillip Webb
* @author Phillip Webb
...
...
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