public void assertNumberOfWarnings(int expected) { assertEquals(warnings.size(), expected, String.format("Number of warnings is incorrect, actual warnings: %s", warningsString())); }
public void assertNumberOfWarnings(int expected) { Assert.assertEquals(warnings.size(), expected, String.format("Number of warnings is incorrect, actual warnings: %s", warningsString())); }
public void assertNumberOfWarnings(int expected) { assertEquals(warnings.size(), expected, String.format("Number of warnings is incorrect, actual warnings: %s", warningsString())); }
public void assertMatchingWarningRecorded(String... parts) { for (Message warning : warnings) { boolean matched = true; for (String part : parts) { if (!warning.getMessage().contains(part)) { matched = false; } } if (matched) { return; } } fail(String.format("Expected message (%s) not found in monitor warning list. Warnings: %s", Joiner.on(", ").join(parts), warningsString())); }
public void assertMatchingWarningRecorded(String... parts) { for (Message warning : warnings) { boolean matched = true; for (String part : parts) { if (!warning.getMessage().contains(part)) { matched = false; } } if (matched) { return; } } fail(String.format("Expected message (%s) not found in monitor warning list. Warnings: %s", Joiner.on(", ").join(parts), warningsString())); }
public void assertMatchingWarningRecorded(String... parts) { for (Message warning : warnings) { boolean matched = true; for (String part : parts) { if (!warning.getMessage().contains(part)) { matched = false; } } if (matched) { return; } } Assert.fail(String.format("Expected message (%s) not found in monitor warning list. Warnings: %s", Joiner.on(", ").join(parts), warningsString())); }