Lines Matching refs:expected
25 public static void assertEquals(String message, boolean expected, boolean actual) { in assertEquals() argument
26 if (actual != expected) { in assertEquals()
27 fail(message, "expected " + expected + " but was " + actual); in assertEquals()
31 public static void assertEquals(boolean expected, boolean actual) { in assertEquals() argument
32 assertEquals("", expected, actual); in assertEquals()
35 public static void assertEquals(String message, byte expected, byte actual) { in assertEquals() argument
36 if (actual != expected) { in assertEquals()
37 fail(message, "expected " + expected + " but was " + actual); in assertEquals()
41 public static void assertEquals(byte expected, byte actual) { in assertEquals() argument
42 assertEquals("", expected, actual); in assertEquals()
45 public static void assertEquals(String message, short expected, short actual) { in assertEquals() argument
46 if (actual != expected) { in assertEquals()
47 fail(message, "expected " + expected + " but was " + actual); in assertEquals()
51 public static void assertEquals(short expected, short actual) { in assertEquals() argument
52 assertEquals("", expected, actual); in assertEquals()
55 public static void assertEquals(String message, int expected, int actual) { in assertEquals() argument
56 if (actual != expected) { in assertEquals()
57 fail(message, "expected " + expected + " but was " + actual); in assertEquals()
61 public static void assertEquals(int expected, int actual) { in assertEquals() argument
62 assertEquals("", expected, actual); in assertEquals()
65 public static void assertEquals(String message, long expected, long actual) { in assertEquals() argument
66 if (actual != expected) { in assertEquals()
67 fail(message, "expected " + expected + " but was " + actual); in assertEquals()
71 public static void assertEquals(long expected, long actual) { in assertEquals() argument
72 assertEquals("", expected, actual); in assertEquals()
75 public static void assertEquals(String message, char expected, char actual) { in assertEquals() argument
76 if (actual != expected) { in assertEquals()
77 fail(message, "expected " + expected + " but was " + actual); in assertEquals()
81 public static void assertEquals(char expected, char actual) { in assertEquals() argument
82 assertEquals("", expected, actual); in assertEquals()
85 public static void assertEquals(String message, String expected, String actual) { in assertEquals() argument
86 assertEquals(message, (Object) expected, (Object) actual); in assertEquals()
89 public static void assertEquals(String expected, String actual) { in assertEquals() argument
90 assertEquals("", (Object) expected, (Object) actual); in assertEquals()
93 public static void assertEquals(String message, Object expected, Object actual) { in assertEquals() argument
94 if (expected == null && actual == null) { in assertEquals()
97 if (expected != null && expected.equals(actual)) { in assertEquals()
100 fail(message, "expected " + expected + " but was " + actual); in assertEquals()
103 public static void assertEquals(Object expected, Object actual) { in assertEquals() argument
104 assertEquals("", expected, actual); in assertEquals()
108 static public void assertEquals(String message, double expected, double actual, double delta) { in assertEquals() argument
109 if (Double.compare(expected, actual) == 0) { in assertEquals()
112 if (!(Math.abs(expected-actual) <= delta)) { in assertEquals()
113 fail(message, "expected " + expected + " but was " + actual + "; delta=" + delta); in assertEquals()
117 public static void assertEquals(double expected, double actual, double delta) { in assertEquals() argument
118 assertEquals("", expected, actual, delta); in assertEquals()
121 static public void assertEquals(String message, float expected, float actual, float delta) { in assertEquals() argument
122 if (Float.compare(expected, actual) == 0) { in assertEquals()
125 if (!(Math.abs(expected - actual) <= delta)) { in assertEquals()
126 fail(message, "expected " + expected + " but was " + actual + "; delta=" + delta); in assertEquals()
130 public static void assertEquals(float expected, float actual, float delta) { in assertEquals() argument
131 assertEquals("", expected, actual, delta); in assertEquals()
176 public static void assertSame(String message, Object expected, Object actual) { in assertSame() argument
177 if (expected != actual) { in assertSame()
178 fail(message, "expected same " + expected + ", " + actual); in assertSame()
182 public static void assertSame(Object expected, Object actual) { in assertSame() argument
183 assertSame("", expected, actual); in assertSame()
186 public static void assertNotSame(String message, Object expected, Object actual) { in assertNotSame() argument
187 if (expected == actual) { in assertNotSame()
188 fail(message, "expected not same " + expected + ", " + actual); in assertNotSame()
192 public static void assertNotSame(Object expected, Object actual) { in assertNotSame() argument
193 assertNotSame("", expected, actual); in assertNotSame()