- 24 Mar, 2016 17 commits
-
-
Phillip Webb authored
Provide variants of `WebClient` and `WebConnectionHtmlUnitDriver` that automatically resolve relative URLs to "localhost:${local.server.port}". Fixes gh-5472
-
Phillip Webb authored
Add Jackson, Gson and Basic String helper classes that allow AssertJ assertions to be used to test JSON. Fixes gh-5471
-
Phillip Webb authored
Add a `@MockBean` annotation which can be used to setup and inject mocks into an application context. The annotation can be used on test classes, test fields, configuration classes or configuration fields. When used on a field the annotation also acts as an injection point. Fixes gh-5042
-
Phillip Webb authored
Update internal tests to drop annotations that can now be inferred. Fixes gh-5470
-
Phillip Webb authored
Update @IntegrationTest to use @BootstrapWith rather than an explicitly defined set of test execution listeners. Also introduce a new @SpringApplicationTest annotation that is similar to @SpringApplicationConfiguration but a bootstrapper. Fixes gh-5230
-
Phillip Webb authored
Allow detection of `@SpringBootConfiguration` classes for both standard spring tests and bootstrap (@IntegrationTest @WebIntegrationTest) based tests. Closes gh-5295
-
Phillip Webb authored
Add TestTypeExcludeFilter which will automatically attempt to exclude test only configurations. All `@Configuration` annotated inner-classes of tests are automatically excluded. The `@TestConfiguration` annotation can be used to explicitly if a configuration needs explicit exclusion. See gh-5295 See gh-4901
-
Phillip Webb authored
Add a new TypeFilter specifically for excluding candidate components. The filter is applied to `@SpringBootApplication` and allows tests to dynamically contribute exclude filters so that specific classes of component can be excluded. See gh-5295 See gh-4901
-
Phillip Webb authored
Add a new @SpringBootConfiguration annotation that can be used to indicate the primary application configuration. The new annotation is primarily indented to allow test automatically code to find the main configuration class. See gh-5295
-
Phillip Webb authored
Update SpringApplicationContextLoader to call ContextCustomizers in the same way as other classes in `spring-test`. Fixes gh-5294
-
Phillip Webb authored
Replace all existing SpringJUnit4ClassRunner references with the new SpringRunner alias. Fixes gh-5292
-
Phillip Webb authored
Update the existing tests to use the relocated `spring-boot-test` classes. Restructuring was achieved using the following command: find . -type f -name '*.java' -exec sed -i '' \ -e s/org.springframework.boot.test.ConfigFileApplicationContextInitializer/\ org.springframework.boot.test.context.ConfigFileApplicationContextInitializer/g \ -e s/org.springframework.boot.test.EnvironmentTestUtils/\ org.springframework.boot.test.util.EnvironmentTestUtils/g \ -e s/org.springframework.boot.test.IntegrationTest/\ org.springframework.boot.test.context.IntegrationTest/g \ -e s/org.springframework.boot.test.IntegrationTestPropertiesListener/\ org.springframework.boot.test.context.IntegrationTestPropertiesListener/g \ -e s/org.springframework.boot.test.OutputCapture/\ org.springframework.boot.test.rule.OutputCapture/g \ -e s/org.springframework.boot.test.SpringApplicationConfiguration/\ org.springframework.boot.test.context.SpringApplicationConfiguration/g \ -e s/org.springframework.boot.test.SpringApplicationContextLoader/\ org.springframework.boot.test.context.SpringApplicationContextLoader/g \ -e s/org.springframework.boot.test.SpringBootMockServletContext/\ org.springframework.boot.test.mock.web.SpringBootMockServletContext/g \ -e s/org.springframework.boot.test.TestRestTemplate/\ org.springframework.boot.test.web.client.TestRestTemplate/g \ -e s/org.springframework.boot.test.WebIntegrationTest/\ org.springframework.boot.test.context.web.WebIntegrationTest/g {} \; See gh-5293
-
Phillip Webb authored
Create a new package structure for `spring-boot-test` and deprecate existing classes. Fixes gh-5293
-
Phillip Webb authored
Update spring-boot-starter-test to include JSONassert and JsonPath. Both are generally useful libraries when writing MVC tests. Fixes gh-5469
-
Phillip Webb authored
Update `@EnableTransactionManagement` so that `proxyTargetClass` is set to true. This ensures that @Transactional beans that aren't interface based can still be proxied. Fixes gh-5423
-
Phillip Webb authored
Call afterPropertiesSet on the delegate `ResourceHttpRequestHandler` to prevent an NPE. This change is required following SPR-13834.
-
Phillip Webb authored
-
- 23 Mar, 2016 2 commits
-
-
Stephane Nicoll authored
-
Andy Wilkinson authored
This is a follow-on from the work done in 50099337. Now that SPR-14015 has been fixed, constructor injection can also be used for parameterised dependencies, including optional dependencies that are injected via an ObjectProvider. Closes gh-5306
-
- 22 Mar, 2016 4 commits
-
-
Stephane Nicoll authored
Spring Boot does not support Thymeleaf 3 yet. This commit prevents the auto-configuration to activate if Thymeleaf 3 is available on the classpath. Closes gh-5371
-
Stephane Nicoll authored
-
Phillip Webb authored
-
Phillip Webb authored
-
- 21 Mar, 2016 7 commits
-
-
Stephane Nicoll authored
-
Stephane Nicoll authored
This commit excludes the Redis auto-configuration that would attempt to connect to a redis instance running at localhost otherwise.
-
Stephane Nicoll authored
-
Stephane Nicoll authored
This commit prevents the Artemis embedded mode to kick-in if the `EmbeddedJMS` class it not in the classpath. The previous condition would match if only `artemis-server` was on the classpath while `artemis-jms-server` is actually required. Closes gh-5452
-
Stephane Nicoll authored
* pr/5455: Polish contribution Auto-configure Redis repositories
-
Stephane Nicoll authored
Closes gh-5455
-
Eddú Meléndez authored
Closes gh-5448
-
- 18 Mar, 2016 10 commits
-
-
Stephane Nicoll authored
Align dependencies upgrade of the Hopper release. Closes gh-5150 See gh-5443
-
Stephane Nicoll authored
Closes gh-5150
-
Stephane Nicoll authored
* pr/5417: Polish contribution Support setting webAllowOthers for the H2 Web Console
-
Stephane Nicoll authored
Closes gh-5417
-
Marten Deinum authored
This commit adds a configuration option for the webAllowOthers option for the H2 WebServlet. It will only be added it the spring.h2.console.webAllowOthers is set to true, else it will be ignored. Closes gh-5416
-
Stephane Nicoll authored
* pr/5372: Polish contribution Improve ActiveMQ connection pool configuration
-
Stephane Nicoll authored
The properties exposed by the ActiveMQ pooled connection factory are quite specific and I felt it was arbitrary to expose some and not others. However, the number of connections and the timeouts seem the most useful so they have been kept and a `configuration` nested namespace can be used to configure any additional settings. The core properties have been renamed to be less "raw" and more compliant with the structure of other properties. The documentation on fields has also been aligned. Closes gh-5372
-
n27 authored
Closes gh-1598
-
Stephane Nicoll authored
Closes gh-5403
-
Stephane Nicoll authored
This commit updates the cache auto-configuration to provide a `CouchbaseCacheManager` if a `Bucket` has been configured. The global customizer infrastructure allows to further tune the cache manager if necessary. Closes gh-5176
-