Lines Matching refs:expected
24 public static void assertSame(Object expected, Object value) { in assertSame() argument
25 if (expected != value) { in assertSame()
27 String.valueOf(expected) + ", got " + String.valueOf(value)); in assertSame()
31 public static void assertNotSame(Object expected, Object value) { in assertNotSame() argument
32 if (expected == value) { in assertNotSame()
34 "Objects are the same: " + String.valueOf(expected)); in assertNotSame()
38 public static void assertEquals(String message, int expected, int actual) { in assertEquals() argument
39 if (expected != actual) { in assertEquals()
44 public static void assertEquals(int expected, int actual) { in assertEquals() argument
45 if (expected != actual) { in assertEquals()
46 throw new AssertionError("Expected " + expected + " got " + actual); in assertEquals()
70 public static void assertEquals(Object expected, Object actual) { in assertEquals() argument
71 if (!expected.equals(actual)) { in assertEquals()
72 String msg = "Expected \"" + expected + "\" but got \"" + actual + "\""; in assertEquals()
77 public static void assertNotEquals(int expected, int actual) { in assertNotEquals() argument
78 if (expected == actual) { in assertNotEquals()
79 throw new AssertionError("Expected " + expected + " got " + actual); in assertNotEquals()
83 public static void assertNotEquals(Object expected, Object actual) { in assertNotEquals() argument
84 if (expected.equals(actual)) { in assertNotEquals()
85 String msg = "Objects are the same: " + String.valueOf(expected); in assertNotEquals()
90 public static <T> void assertArrayEquals(T[] actual, T... expected) { in assertArrayEquals() argument
91 assertTrue(Arrays.equals(expected, actual)); in assertArrayEquals()
95 String message, Object expected, Object actual) { in assertEquals() argument
96 if (!expected.equals(actual)) { in assertEquals()
102 String message, long expected, long actual) { in assertEquals() argument
103 if (expected != actual) { in assertEquals()
108 public static void assertEquals(long expected, long actual) { in assertEquals() argument
109 if (expected != actual) { in assertEquals()
110 throw new AssertionError("Expected " + expected + " got " + actual); in assertEquals()
115 String message, boolean expected, boolean actual) { in assertEquals() argument
116 if (expected != actual) { in assertEquals()
121 public static void assertEquals(boolean expected, boolean actual) { in assertEquals() argument
122 if (expected != actual) { in assertEquals()
123 throw new AssertionError("Expected " + expected + " got " + actual); in assertEquals()
128 String message, float expected, float actual) { in assertEquals() argument
129 if (expected != actual) { in assertEquals()
134 public static void assertEquals(float expected, float actual) { in assertEquals() argument
135 if (expected != actual) { in assertEquals()
136 throw new AssertionError("Expected " + expected + " got " + actual); in assertEquals()
140 public static void assertEquals(float expected, float actual, in assertEquals() argument
142 if ((actual < expected - tolerance) || (expected + tolerance < actual)) { in assertEquals()
143 throw new AssertionError("Expected " + expected + " got " + actual + in assertEquals()
149 String message, double expected, double actual) { in assertEquals() argument
150 if (expected != actual) { in assertEquals()
155 public static void assertEquals(double expected, double actual) { in assertEquals() argument
156 if (expected != actual) { in assertEquals()
157 throw new AssertionError("Expected " + expected + " got " + actual); in assertEquals()
161 public static void assertEquals(double expected, double actual, in assertEquals() argument
163 if ((actual < expected - tolerance) || (expected + tolerance < actual)) { in assertEquals()
164 throw new AssertionError("Expected " + expected + " got " + actual + in assertEquals()
170 String message, Object expected, Object actual) { in assertSame() argument
171 if (expected != actual) { in assertSame()