Merge pull request #32476 from 1993heqiang

* pr/32476:
  Remove redundant @ExtendWith(SpringExtension.class) for sample

Closes gh-32476
pull/32747/head
Stephane Nicoll 2 years ago
commit f415541afe

@ -19,16 +19,13 @@ package org.springframework.boot.docs.features.testing.springbootapplications.jm
import javax.management.MBeanServer;
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 static org.assertj.core.api.Assertions.assertThat;
@ExtendWith(SpringExtension.class)
@SpringBootTest(properties = "spring.jmx.enabled=true")
@DirtiesContext
class MyJmxTests {

Loading…
Cancel
Save