This commit is contained in:
Stephane Nicoll 2017-12-13 15:43:30 +01:00
parent a626f5462d
commit 1fdc1e373c
5 changed files with 5 additions and 5 deletions

View File

@ -60,7 +60,7 @@ public class ManagementPortAndPathSampleActuatorApplicationTests {
} }
@Test @Test
public void testMetrics() throws Exception { public void testMetrics() {
testHome(); // makes sure some requests have been made testHome(); // makes sure some requests have been made
@SuppressWarnings("rawtypes") @SuppressWarnings("rawtypes")
ResponseEntity<Map> entity = new TestRestTemplate().getForEntity( ResponseEntity<Map> entity = new TestRestTemplate().getForEntity(

View File

@ -60,7 +60,7 @@ public class ManagementPortSampleActuatorApplicationTests {
} }
@Test @Test
public void testMetrics() throws Exception { public void testMetrics() {
testHome(); // makes sure some requests have been made testHome(); // makes sure some requests have been made
@SuppressWarnings("rawtypes") @SuppressWarnings("rawtypes")
ResponseEntity<Map> entity = new TestRestTemplate().getForEntity( ResponseEntity<Map> entity = new TestRestTemplate().getForEntity(

View File

@ -56,7 +56,7 @@ public class NoManagementSampleActuatorApplicationTests {
} }
@Test @Test
public void testMetricsNotAvailable() throws Exception { public void testMetricsNotAvailable() {
testHome(); // makes sure some requests have been made testHome(); // makes sure some requests have been made
@SuppressWarnings("rawtypes") @SuppressWarnings("rawtypes")
ResponseEntity<Map> entity = this.restTemplate ResponseEntity<Map> entity = this.restTemplate

View File

@ -89,7 +89,7 @@ public class SampleActuatorApplicationTests {
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@Test @Test
public void testMetrics() throws Exception { public void testMetrics() {
testHome(); // makes sure some requests have been made testHome(); // makes sure some requests have been made
@SuppressWarnings("rawtypes") @SuppressWarnings("rawtypes")
ResponseEntity<Map> entity = this.restTemplate ResponseEntity<Map> entity = this.restTemplate

View File

@ -51,7 +51,7 @@ public class SampleIntegrationApplicationTests {
private ConfigurableApplicationContext context; private ConfigurableApplicationContext context;
@Before @Before
public void deleteInputAndOutput() throws InterruptedException { public void deleteInputAndOutput() {
deleteIfExists(new File("target/input")); deleteIfExists(new File("target/input"));
deleteIfExists(new File("target/output")); deleteIfExists(new File("target/output"));
} }