Remove reference to spring.datasource.jmx-enabled

This commits moves the single use of that property to the already
existing Tomcat-specific one.

Closes gh-16673
This commit is contained in:
Stephane Nicoll
2019-05-13 17:11:03 +02:00
parent 22ae160faa
commit 1c3a91883d
4 changed files with 15 additions and 12 deletions

View File

@@ -42,8 +42,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
* @author Dave Syer
*/
// Enable JMX so we can test the MBeans (you can't do this in a properties file)
@SpringBootTest(
properties = { "spring.jmx.enabled:true", "spring.datasource.jmx-enabled:true" })
@SpringBootTest(properties = "spring.jmx.enabled:true")
@ActiveProfiles("scratch")
// Separate profile for web tests to avoid clashing databases
class SampleDataJpaApplicationTests {