This commit is contained in:
Phillip Webb
2013-11-15 23:37:38 -08:00
parent 127da15c3c
commit 883fd9162f
22 changed files with 72 additions and 88 deletions

View File

@@ -41,7 +41,7 @@ import org.springframework.web.client.RestTemplate;
/**
* Integration tests for unsecured service endpoints (even with Spring Security on
* classpath).
*
*
* @author Dave Syer
*/
public class UnsecureManagementSampleActuatorApplicationTests {
@@ -87,7 +87,7 @@ public class UnsecureManagementSampleActuatorApplicationTests {
public void testMetrics() throws Exception {
try {
testHomeIsSecure(); // makes sure some requests have been made
} catch (AssertionError e) {
} catch (AssertionError ex) {
// ignore;
}
@SuppressWarnings("rawtypes")

View File

@@ -39,8 +39,8 @@ public class SampleMongoApplicationTests {
public void testDefaultSettings() throws Exception {
try {
SampleMongoApplication.main(new String[0]);
} catch (IllegalStateException e) {
if (serverNotRunning(e)) {
} catch (IllegalStateException ex) {
if (serverNotRunning(ex)) {
return;
}
}

View File

@@ -94,8 +94,8 @@ public class SnakeTimer {
try {
tick();
}
catch (Throwable e) {
log.error("Caught to prevent timer from shutting down", e);
catch (Throwable ex) {
log.error("Caught to prevent timer from shutting down", ex);
}
}
}, TICK_DELAY, TICK_DELAY);