Lines Matching refs:assertEquals

33   private static void assertEquals(String expected, String actual) {  in assertEquals()  method in Main
59 assertEquals("length=1; index=2", ex.getMessage()); in arrayAccess()
67 assertEquals("length=1; index=2", ex.getMessage()); in arrayAccess()
75 assertEquals("length=1; index=2", ex.getMessage()); in arrayAccess()
83 assertEquals("length=1; index=2", ex.getMessage()); in arrayAccess()
91 assertEquals("length=1; index=2", ex.getMessage()); in arrayAccess()
99 assertEquals("length=1; index=2", ex.getMessage()); in arrayAccess()
110 assertEquals("java.lang.Exception cannot be stored in an array of type java.lang.String[]", in arrayStore()
120 assertEquals("java.lang.Integer cannot be stored in an array of type Main$C[][]", in arrayStore()
130 assertEquals("Main$C[] cannot be stored in an array of type java.lang.Float[][]", in arrayStore()
139assertEquals("source[4] of type java.lang.String cannot be stored in destination array of type jav… in arrayStore()
148 assertEquals("Incompatible types: src=java.lang.String[], dst=int[]", ex.getMessage()); in arrayStore()
156 assertEquals("Incompatible types: src=float[], dst=java.lang.Runnable[]", ex.getMessage()); in arrayStore()
164 assertEquals("Incompatible types: src=boolean[], dst=double[][]", ex.getMessage()); in arrayStore()
172 assertEquals("source of type java.lang.String is not an array", ex.getMessage()); in arrayStore()
180 assertEquals("destination of type java.lang.Integer is not an array", ex.getMessage()); in arrayStore()
189 assertEquals("source of type Main$C is not an array", ex.getMessage()); in arrayStore()
200 assertEquals("java.lang.Exception cannot be cast to java.lang.String", ex.getMessage()); in classCast()
208 assertEquals("java.lang.String[] cannot be cast to Main$C", ex.getMessage()); in classCast()
216 assertEquals("float[] cannot be cast to Main$C", ex.getMessage()); in classCast()
224 assertEquals("char[][] cannot be cast to Main$C", ex.getMessage()); in classCast()
232 assertEquals("java.lang.Integer cannot be cast to java.lang.Object[][][]", ex.getMessage()); in classCast()
260 assertEquals("Invalid name: [V", ex.getMessage()); in classNotFound()
268 assertEquals("package.Class", ex.getMessage()); in classNotFound()
276 assertEquals("[[Lpackage.Class;", ex.getMessage()); in classNotFound()
285 assertEquals("-123", ex.getMessage()); in negativeArraySize()
305assertEquals("Attempt to invoke virtual method 'int java.lang.Object.hashCode()' on a null object … in nullPointers()
314assertEquals("Attempt to read from field 'int A.i' on a null object reference", ex.getMessage()); in nullPointers()
323assertEquals("Attempt to write to field 'int A.i' on a null object reference", ex.getMessage()); in nullPointers()
332 assertEquals("Attempt to read from null array", ex.getMessage()); in nullPointers()
341 assertEquals("Attempt to write to null array", ex.getMessage()); in nullPointers()
350 assertEquals("Attempt to get length of null array", ex.getMessage()); in nullPointers()
361 assertEquals("field A.b has type java.lang.String, got java.lang.Integer", in reflection()
371 assertEquals("field A.i has type int, got null", expected.getMessage()); in reflection()
380 assertEquals("field A.i has type int, got java.lang.String", expected.getMessage()); in reflection()
389 assertEquals("method A.m argument 2 has type java.lang.String, got java.lang.Integer", in reflection()
399 assertEquals("method A.m argument 1 has type int, got null", expected.getMessage()); in reflection()
407 assertEquals("Wrong number of arguments; expected 1, got 0", iae.getMessage()); in reflection()
414 assertEquals("method java.lang.String.charAt argument 1 has type int, got java.lang.String", in reflection()
422 assertEquals("method java.lang.String.charAt argument 1 has type int, got null", in reflection()
430 assertEquals("Expected receiver of type java.lang.String, but got java.lang.Integer", in reflection()
438 assertEquals("null receiver", npe.getMessage()); in reflection()
448 assertEquals("length=5; index=-1", ex.getMessage()); in stringIndex()
456 assertEquals("length=5; index=7", ex.getMessage()); in stringIndex()
464 assertEquals("length=11; index=14", ex.getMessage()); in stringIndex()