Lines Matching refs:expected
22 public static void assertEquals(int expected, int result) { in assertEquals() argument
23 if (expected != result) { in assertEquals()
24 throw new Error("Expected: " + expected + ", found: " + result); in assertEquals()
28 public static void assertEquals(long expected, long result) { in assertEquals() argument
29 if (expected != result) { in assertEquals()
30 throw new Error("Expected: " + expected + ", found: " + result); in assertEquals()
34 public static void assertEquals(float expected, float result) { in assertEquals() argument
35 if (expected != result) { in assertEquals()
36 throw new Error("Expected: " + expected + ", found: " + result); in assertEquals()
40 public static void assertEquals(String expected, float result) { in assertEquals() argument
41 if (!expected.equals(new Float(result).toString())) { in assertEquals()
42 throw new Error("Expected: " + expected + ", found: " + result); in assertEquals()
46 public static void assertEquals(double expected, double result) { in assertEquals() argument
47 if (expected != result) { in assertEquals()
48 throw new Error("Expected: " + expected + ", found: " + result); in assertEquals()
52 public static void assertEquals(String expected, double result) { in assertEquals() argument
53 if (!expected.equals(new Double(result).toString())) { in assertEquals()
54 throw new Error("Expected: " + expected + ", found: " + result); in assertEquals()