Added failure message to test
This commit is contained in:
parent
785624e96b
commit
f273981f37
|
@ -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: "));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue