Added failure message to test

This commit is contained in:
Colin Goodheart-Smithe 2016-08-04 16:28:12 +01:00
parent 785624e96b
commit f273981f37
1 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,8 @@ public class PreBuiltTransportClientTests extends RandomizedTest {
new PreBuiltTransportClient(Settings.EMPTY, plugin);
fail("exception expected");
} catch (IllegalArgumentException ex) {
assertTrue(ex.getMessage().startsWith("plugin already exists: "));
assertTrue("Expected message to start with [plugin already exists: ] but was instead [" + ex.getMessage() + "]",
ex.getMessage().startsWith("plugin already exists: "));
}
}
}