Polish
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user