Skip to content
Permalink
Browse files
This closes #37
Add missing @OverRide annotations and other cleanup
  • Loading branch information
sjcorbett committed Feb 6, 2017
2 parents 8ecbfe7 + ee59562 commit 88bb5e7bda81869ff4957e7f50ada7decbaf1dbe
Showing 1 changed file with 2 additions and 0 deletions.
@@ -162,6 +162,7 @@ public void testDeleteRedisApplication() throws Exception {
Assert.assertNotNull(response);
try {
Asserts.succeedsEventually(ImmutableMap.of("timeout", Duration.minutes(1)), new Runnable() {
@Override
public void run() {
try {
ApplicationSummary summary = api.getApplicationApi().get("redis-app");
@@ -182,6 +183,7 @@ public void run() {

private void assertServiceStateEventually(final String app, final String entity, final Lifecycle state, Duration timeout) {
Asserts.succeedsEventually(ImmutableMap.of("timeout", timeout), new Runnable() {
@Override
public void run() {
Object status = api.getSensorApi().get(app, entity, "service.state", false);
assertTrue(state.toString().equalsIgnoreCase(status.toString()), "status="+status);

0 comments on commit 88bb5e7

Please sign in to comment.