Lines Matching refs:expected
62 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals() argument
63 if (expected == null && actual == null) in assertEquals()
65 if (expected != null && expected.equals(actual)) in assertEquals()
67 failNotEquals(message, expected, actual); in assertEquals()
73 static public void assertEquals(Object expected, Object actual) { in assertEquals() argument
74 assertEquals(null, expected, actual); in assertEquals()
79 static public void assertEquals(String message, String expected, String actual) { in assertEquals() argument
80 if (expected == null && actual == null) in assertEquals()
82 if (expected != null && expected.equals(actual)) in assertEquals()
85 throw new ComparisonFailure(cleanMessage, expected, actual); in assertEquals()
90 static public void assertEquals(String expected, String actual) { in assertEquals() argument
91 assertEquals(null, expected, actual); in assertEquals()
98 static public void assertEquals(String message, double expected, double actual, double delta) { in assertEquals() argument
99 if (Double.compare(expected, actual) == 0) in assertEquals()
101 if (!(Math.abs(expected-actual) <= delta)) in assertEquals()
102 failNotEquals(message, new Double(expected), new Double(actual)); in assertEquals()
108 static public void assertEquals(double expected, double actual, double delta) { in assertEquals() argument
109 assertEquals(null, expected, actual, delta); in assertEquals()
116 static public void assertEquals(String message, float expected, float actual, float delta) { in assertEquals() argument
117 if (Float.compare(expected, actual) == 0) in assertEquals()
119 if (!(Math.abs(expected - actual) <= delta)) in assertEquals()
120 failNotEquals(message, new Float(expected), new Float(actual)); in assertEquals()
126 static public void assertEquals(float expected, float actual, float delta) { in assertEquals() argument
127 assertEquals(null, expected, actual, delta); 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()
139 static public void assertEquals(long expected, long actual) { in assertEquals() argument
140 assertEquals(null, expected, 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()
152 static public void assertEquals(boolean expected, boolean actual) { in assertEquals() argument
153 assertEquals(null, expected, 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()
165 static public void assertEquals(byte expected, byte actual) { in assertEquals() argument
166 assertEquals(null, expected, 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()
178 static public void assertEquals(char expected, char actual) { in assertEquals() argument
179 assertEquals(null, expected, 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()
191 static public void assertEquals(short expected, short actual) { in assertEquals() argument
192 assertEquals(null, expected, 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()
204 static public void assertEquals(int expected, int actual) { in assertEquals() argument
205 assertEquals(null, expected, actual); in assertEquals()
243 static public void assertSame(String message, Object expected, Object actual) { in assertSame() argument
244 if (expected == actual) in assertSame()
246 failNotSame(message, expected, actual); in assertSame()
252 static public void assertSame(Object expected, Object actual) { in assertSame() argument
253 assertSame(null, expected, actual); in assertSame()
260 static public void assertNotSame(String message, Object expected, Object actual) { in assertNotSame() argument
261 if (expected == actual) in assertNotSame()
268 static public void assertNotSame(Object expected, Object actual) { in assertNotSame() argument
269 assertNotSame(null, expected, actual); in assertNotSame()
279 static public void failNotSame(String message, Object expected, Object actual) { in failNotSame() argument
283 fail(formatted+"expected same:<"+expected+"> was not:<"+actual+">"); 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
294 return formatted+"expected:<"+expected+"> but was:<"+actual+">"; in format()