Lines Matching refs:message
18 static public void assertTrue(String message, boolean condition) { in assertTrue() argument
20 fail(message); in assertTrue()
33 static public void assertFalse(String message, boolean condition) { in assertFalse() argument
34 assertTrue(message, !condition); in assertFalse()
46 static public void fail(String message) { in fail() argument
47 if (message == null) { in fail()
50 throw new AssertionFailedError(message); in fail()
62 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals() argument
67 failNotEquals(message, expected, actual); in assertEquals()
79 static public void assertEquals(String message, String expected, String actual) { in assertEquals() argument
84 String cleanMessage= message == null ? "" : message; in assertEquals()
98 static public void assertEquals(String message, double expected, double actual, double delta) { in assertEquals() argument
102 failNotEquals(message, new Double(expected), new Double(actual)); in assertEquals()
116 static public void assertEquals(String message, float expected, float actual, float delta) { in assertEquals() argument
120 failNotEquals(message, new Float(expected), new Float(actual)); in assertEquals()
133 static public void assertEquals(String message, long expected, long actual) { in assertEquals() argument
134 assertEquals(message, new Long(expected), new Long(actual)); in assertEquals()
146 static public void assertEquals(String message, boolean expected, boolean actual) { in assertEquals() argument
147 assertEquals(message, Boolean.valueOf(expected), Boolean.valueOf(actual)); in assertEquals()
159 static public void assertEquals(String message, byte expected, byte actual) { in assertEquals() argument
160 assertEquals(message, new Byte(expected), new Byte(actual)); in assertEquals()
172 static public void assertEquals(String message, char expected, char actual) { in assertEquals() argument
173 assertEquals(message, new Character(expected), new Character(actual)); in assertEquals()
185 static public void assertEquals(String message, short expected, short actual) { in assertEquals() argument
186 assertEquals(message, new Short(expected), new Short(actual)); in assertEquals()
198 static public void assertEquals(String message, int expected, int actual) { in assertEquals() argument
199 assertEquals(message, new Integer(expected), new Integer(actual)); in assertEquals()
217 static public void assertNotNull(String message, Object object) { in assertNotNull() argument
218 assertTrue(message, object != null); in assertNotNull()
229 String message = "Expected: <null> but was: " + String.valueOf(object); in assertNull() local
230 assertNull(message, object); in assertNull()
236 static public void assertNull(String message, Object object) { in assertNull() argument
237 assertTrue(message, object == null); in assertNull()
243 static public void assertSame(String message, Object expected, Object actual) { in assertSame() argument
246 failNotSame(message, expected, actual); in assertSame()
260 static public void assertNotSame(String message, Object expected, Object actual) { in assertNotSame() argument
262 failSame(message); in assertNotSame()
272 static public void failSame(String message) { in failSame() argument
274 if (message != null) in failSame()
275 formatted= message+" "; in failSame()
279 static public void failNotSame(String message, Object expected, Object actual) { in failNotSame() argument
281 if (message != null) in failNotSame()
282 formatted= message+" "; in failNotSame()
286 static public void failNotEquals(String message, Object expected, Object actual) { in failNotEquals() argument
287 fail(format(message, expected, actual)); in failNotEquals()
290 public static String format(String message, Object expected, Object actual) { in format() argument
292 if (message != null && message.length() > 0) in format()
293 formatted= message+" "; in format()