Lines Matching refs:expected
59 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals() argument
60 if (expected == null && actual == null) in assertEquals()
62 if (expected != null && expected.equals(actual)) in assertEquals()
64 failNotEquals(message, expected, actual); in assertEquals()
70 static public void assertEquals(Object expected, Object actual) { in assertEquals() argument
71 assertEquals(null, expected, actual); in assertEquals()
76 static public void assertEquals(String message, String expected, String actual) { in assertEquals() argument
77 if (expected == null && actual == null) in assertEquals()
79 if (expected != null && expected.equals(actual)) in assertEquals()
81 throw new ComparisonFailure(message, expected, actual); in assertEquals()
86 static public void assertEquals(String expected, String actual) { in assertEquals() argument
87 assertEquals(null, expected, actual); in assertEquals()
94 static public void assertEquals(String message, double expected, double actual, double delta) { in assertEquals() argument
97 if (Double.isInfinite(expected)) { in assertEquals()
98 if (!(expected == actual)) in assertEquals()
99 failNotEquals(message, new Double(expected), new Double(actual)); in assertEquals()
100 …} else if (!(Math.abs(expected-actual) <= delta)) // Because comparison with NaN always returns fa… in assertEquals()
101 failNotEquals(message, new Double(expected), new Double(actual)); in assertEquals()
107 static public void assertEquals(double expected, double actual, double delta) { in assertEquals() argument
108 assertEquals(null, expected, actual, delta); in assertEquals()
115 static public void assertEquals(String message, float expected, float actual, float delta) { in assertEquals() argument
118 if (Float.isInfinite(expected)) { in assertEquals()
119 if (!(expected == actual)) in assertEquals()
120 failNotEquals(message, new Float(expected), new Float(actual)); in assertEquals()
121 } else if (!(Math.abs(expected-actual) <= delta)) in assertEquals()
122 failNotEquals(message, new Float(expected), new Float(actual)); in assertEquals()
128 static public void assertEquals(float expected, float actual, float delta) { in assertEquals() argument
129 assertEquals(null, expected, actual, delta); in assertEquals()
135 static public void assertEquals(String message, long expected, long actual) { in assertEquals() argument
136 assertEquals(message, new Long(expected), new Long(actual)); in assertEquals()
141 static public void assertEquals(long expected, long actual) { in assertEquals() argument
142 assertEquals(null, expected, actual); in assertEquals()
148 static public void assertEquals(String message, boolean expected, boolean actual) { in assertEquals() argument
149 assertEquals(message, new Boolean(expected), new Boolean(actual)); in assertEquals()
154 static public void assertEquals(boolean expected, boolean actual) { in assertEquals() argument
155 assertEquals(null, expected, actual); in assertEquals()
161 static public void assertEquals(String message, byte expected, byte actual) { in assertEquals() argument
162 assertEquals(message, new Byte(expected), new Byte(actual)); in assertEquals()
167 static public void assertEquals(byte expected, byte actual) { in assertEquals() argument
168 assertEquals(null, expected, actual); in assertEquals()
174 static public void assertEquals(String message, char expected, char actual) { in assertEquals() argument
175 assertEquals(message, new Character(expected), new Character(actual)); in assertEquals()
180 static public void assertEquals(char expected, char actual) { in assertEquals() argument
181 assertEquals(null, expected, actual); in assertEquals()
187 static public void assertEquals(String message, short expected, short actual) { in assertEquals() argument
188 assertEquals(message, new Short(expected), new Short(actual)); in assertEquals()
193 static public void assertEquals(short expected, short actual) { in assertEquals() argument
194 assertEquals(null, expected, actual); in assertEquals()
200 static public void assertEquals(String message, int expected, int actual) { in assertEquals() argument
201 assertEquals(message, new Integer(expected), new Integer(actual)); in assertEquals()
206 static public void assertEquals(int expected, int actual) { in assertEquals() argument
207 assertEquals(null, expected, actual); in assertEquals()
239 static public void assertSame(String message, Object expected, Object actual) { in assertSame() argument
240 if (expected == actual) in assertSame()
242 failNotSame(message, expected, actual); in assertSame()
248 static public void assertSame(Object expected, Object actual) { in assertSame() argument
249 assertSame(null, expected, actual); in assertSame()
255 static public void assertNotSame(String message, Object expected, Object actual) { in assertNotSame() argument
256 if (expected == actual) in assertNotSame()
263 static public void assertNotSame(Object expected, Object actual) { in assertNotSame() argument
264 assertNotSame(null, expected, actual); in assertNotSame()
274 static private void failNotSame(String message, Object expected, Object actual) { in failNotSame() argument
278 fail(formatted+"expected same:<"+expected+"> was not:<"+actual+">"); in failNotSame()
281 static private void failNotEquals(String message, Object expected, Object actual) { in failNotEquals() argument
282 fail(format(message, expected, actual)); in failNotEquals()
285 static String format(String message, Object expected, Object actual) { in format() argument
289 return formatted+"expected:<"+expected+"> but was:<"+actual+">"; in format()