|
|
|
|
@ -18,14 +18,11 @@ package org.springframework.boot.docs.features.testing.springbootapplications.jm
@@ -18,14 +18,11 @@ package org.springframework.boot.docs.features.testing.springbootapplications.jm
|
|
|
|
|
|
|
|
|
|
import org.assertj.core.api.Assertions.assertThat |
|
|
|
|
import org.junit.jupiter.api.Test |
|
|
|
|
import org.junit.jupiter.api.extension.ExtendWith |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired |
|
|
|
|
import org.springframework.boot.test.context.SpringBootTest |
|
|
|
|
import org.springframework.test.annotation.DirtiesContext |
|
|
|
|
import org.springframework.test.context.junit.jupiter.SpringExtension |
|
|
|
|
import javax.management.MBeanServer |
|
|
|
|
|
|
|
|
|
@ExtendWith(SpringExtension::class) |
|
|
|
|
@SpringBootTest(properties = ["spring.jmx.enabled=true"]) |
|
|
|
|
@DirtiesContext |
|
|
|
|
class MyJmxTests(@Autowired val mBeanServer: MBeanServer) { |
|
|
|
|
|