1. 19 Sep, 2016 3 commits
    • Johnny Lim's avatar
      Polish · a994b11a
      Johnny Lim authored
      a994b11a
    • Phillip Webb's avatar
      Only print MVC interactions when tests fail · e239e64c
      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
      e239e64c
    • Phillip Webb's avatar
      Polish · 7ec14774
      Phillip Webb authored
      7ec14774
  2. 18 Sep, 2016 16 commits
  3. 17 Sep, 2016 2 commits
  4. 16 Sep, 2016 16 commits
    • Phillip Webb's avatar
      Fix @AutoConfigureTestDatabase imports · 2c621f40
      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
      2c621f40
    • Phillip Webb's avatar
      Merge branch '1.3.x' · 825dd0a2
      Phillip Webb authored
      825dd0a2
    • Phillip Webb's avatar
      Don't change ownership of PID_FOLDER · 3b52909f
      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
      3b52909f
    • Phillip Webb's avatar
      Allow HttpPutFormContentFilter to be disabled · b97e0bd4
      Phillip Webb authored
      Add `spring.mvc.formcontent.putfilter.enabled` property to allow the
      HttpPutFormContentFilter to be disabled.
      
      Fixes gh-6519
      b97e0bd4
    • Phillip Webb's avatar
      Fix multi-annotation nested condition logic · a2e4127d
      Phillip Webb authored
      Update `AbstractNestedCondition` to correctly group nested conditions
      on members.
      
      Fixes gh-6672
      a2e4127d
    • Phillip Webb's avatar
      Polish · 3172d434
      Phillip Webb authored
      Closes gh-6835
      3172d434
    • Andy Wilkinson's avatar
      Merge branch '1.3.x · 49f28b79
      Andy Wilkinson authored
      49f28b79
    • Andy Wilkinson's avatar
      Start building against Spring Framework 4.2.8 snapshots · faab9047
      Andy Wilkinson authored
      See gh-6910
      faab9047
    • Stephane Nicoll's avatar
      Merge branch '1.3.x' · b77eddb8
      Stephane Nicoll authored
      b77eddb8
    • Stephane Nicoll's avatar
      Polish documentation · c2cdc142
      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
      c2cdc142
    • Stephane Nicoll's avatar
      Improve startup error message · 50c68a49
      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
      50c68a49
    • Stephane Nicoll's avatar
      Polish · 78bb04f2
      Stephane Nicoll authored
      78bb04f2
    • Stephane Nicoll's avatar
      Clarify SpringBootWebSecurityConfiguration scope · 284988f0
      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
      284988f0
    • Stephane Nicoll's avatar
      Support Qualifiers on MockBean and SpyBean · 3f236dc9
      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
      3f236dc9
    • Phillip Webb's avatar
      Relax TestEntityManager @ID restriction · 3e19f8aa
      Phillip Webb authored
      Change TestEntityManager so that entities with an ID can be persisted.
      
      Fixes gh-6546
      3e19f8aa
    • Phillip Webb's avatar
      Fix failing tests · 25c4e261
      Phillip Webb authored
      See gh-6897
      25c4e261
  5. 15 Sep, 2016 3 commits