• Stephane Nicoll's avatar
    Improve error message used in TestDatabaseAutoConfiguration · ffa6d6d6
    Stephane Nicoll authored
    By default, `@DataJpaTest` (and `@AutoConfigureTestDatabase`) attempt to
    replace any existing `DataSource` by an embedded one. Previously, if
    there is was no embedded database on the classpath, the exception message
    did not provide that context in the error message.
    
    This commit clarifies the error message to conduct
    `TestDatabaseAutoConfiguration` (that is replacing the existing
    `DataSource`).
    
    Closes gh-7797
    ffa6d6d6
Name
Last commit
Last update
..
java/org/springframework/boot/test/autoconfigure Loading commit data...
resources/META-INF Loading commit data...