- 19 Sep, 2016 3 commits
-
-
Johnny Lim authored
-
Phillip Webb authored
Update `@AutoConfigureMockMvc` with a `printOnlyOnFailure` option which allows errors to be printed only when tests fail. Defaults to `true` meaning the logs are no longer cluttered with MVC results for passing tests. Fixes gh-6653
-
Phillip Webb authored
-
- 18 Sep, 2016 16 commits
-
-
Andy Wilkinson authored
-
Andy Wilkinson authored
Closes gh-6914 (I hope)
-
Stephane Nicoll authored
-
Stephane Nicoll authored
-
Andy Wilkinson authored
See gh-6918
-
Andy Wilkinson authored
-
Phillip Webb authored
Update WebDriver support to ensure that the `.quit()` method is called after each test method runs and that a new WebDriver instance is injected each time. Support is provided by introducing a new `Scope` which is applied by a ContextCustomizerFactory and reset by a TestExecutionListener. Fixes gh-6641
-
Phillip Webb authored
-
Phillip Webb authored
Fixes gh-6916
-
Phillip Webb authored
* pr/6909: Link to Spring Security OAuth2 reference docs
-
Mike Gehard authored
Update documentation to include a link to Spring Security OAuth2's reference documentation. Closes gh-6909
-
Phillip Webb authored
* pr/6919: Add contextPath LocalHostUriTemplateHandler URIs
-
Eddú Meléndez authored
Update `LocalHostUriTemplateHandler` so that the `server.context-path` property is also considered when building the URL. Fixes gh-6904 Closes gh-6919
-
Phillip Webb authored
Fixes gh-6918
-
Phillip Webb authored
Refine @MockBean/@SpyBean qualifier support so that qualifiers form part of the context cache key. Prior to this commit is was possible that two different tests could accidentally share the same context if they defined the same @Mock but with different @Qualifiers. See gh-6753
-
Phillip Webb authored
-
- 17 Sep, 2016 2 commits
-
-
Stephane Nicoll authored
See gh-6593
-
Phillip Webb authored
Tweak the fix from 50c68a49 to no longer print a link the reference documentation. See gh-6593
-
- 16 Sep, 2016 16 commits
-
-
Phillip Webb authored
Update `@AutoConfigureTestDatabase` so that it always imports `DataSourceAutoConfiguration`. Prior to this commit the annotation could only be applied if something else also imported DataSource auto-configuration. Fixes gh-6897
-
Phillip Webb authored
-
Phillip Webb authored
Update the launch script so that it no longer changes ownership of the PID_FOLDER. Commit b24e736c had changed the chown line from: chown "$run_user" "$PID_FOLDER/${identity}" to: chown "$run_user" "$PID_FOLDER" This meant that it was possible for the launch script to change ownership of `/var/run` and prevent later processes from writing to the folder. Since PID_FOLDER is created before the chown statement, and that the `checkPermissions` function runs to ensure that the PID file can be written, it appears that the chown is not even required. Fixes gh-6532
-
Phillip Webb authored
Add `spring.mvc.formcontent.putfilter.enabled` property to allow the HttpPutFormContentFilter to be disabled. Fixes gh-6519
-
Phillip Webb authored
Update `AbstractNestedCondition` to correctly group nested conditions on members. Fixes gh-6672
-
Phillip Webb authored
Closes gh-6835
-
Andy Wilkinson authored
-
Andy Wilkinson authored
See gh-6910
-
Stephane Nicoll authored
-
Stephane Nicoll authored
Add an explicit note that states that "spring.datasource.url" (or more specifically "spring.datasource.class-name" that is inferred from the former) is necessary to connect to a database. If the class-name isn't specified, Spring Boot will attempt to auto-configure an embedded database. Closes gh-6907
-
Stephane Nicoll authored
This commit improves the startup error message so that it does not reference `--debug` anymore. Such command-line switch only works when the application is started using `java -jar`. The error message now refers directly to a section of the documentation that provides more details and links to more useful examples. Closes gh-6593
-
Stephane Nicoll authored
-
Stephane Nicoll authored
This commit fixes the documentation that wrongly states that SpringBootWebSecurityConfiguration is an auto-configuration. Rather than excluding this class, we should exclude SecurityAutoConfiguration that imports it. Closes gh-6861
-
Stephane Nicoll authored
Previously, if an injection point used a qualifier, `MockBean` and `SpyBean` couldn't be used to mock/spy it as there was no way to specify that qualifier information. This commit now detects qualifier information on the injection point and associate it with the created `BeanDefintion`. If one wants to mock a bean that is qualified with `@Qualifier("foo")`, the definition of the mock should be as follows: ``` public class MyTest { @MockBean @Qualifier("foo") private ExampleService service; } ``` As a side effect, it is now possible to mock a service by type even if there are multiple instances of that type in the application context. The provided qualifier information is used to determine the right candidate and the proper bean definition is replaced accordingly. Closes gh-6753
-
Phillip Webb authored
Change TestEntityManager so that entities with an ID can be persisted. Fixes gh-6546
-
Phillip Webb authored
See gh-6897
-
- 15 Sep, 2016 3 commits
-
-
Phillip Webb authored
Update detection logic to also consider `@Rules` classes. Also make the documentation a little clearer. Fixes gh-6768
-
Phillip Webb authored
Protect against the situation where no DataSource beans can be found at all. Fixes gh-6897
-
Phillip Webb authored
* pr/6882: Use default simple types with MongoMappingContext
-