Lines Matching defs:expected
475 String[] expected = {"xxxx", "xxxx", "yyyy", "zzz"};
478 for (int i = 0; i < expected.length && i < s.length; i++) {
479 assertEquals("Wrong splitted part", expected[i], s[i]);
481 assertEquals("Wrong number of splitted parts", expected.length,
485 expected = new String[] {"xxxx", "xxxx"};
490 assertEquals("Grep fails", expected[i], s[i]);
492 assertEquals("Wrong number of string found by grep", expected.length,
499 String expected = "-foo-garply-wacky-";
501 assertEquals("Wrong result of substitution in \"a*b\"", expected, actual);
529 public void assertEquals(String message, String expected, String actual)
531 if (expected != null && !expected.equals(actual)
532 || actual != null && !actual.equals(expected))
534 fail(message + " (expected \"" + expected
539 public void assertEquals(String message, int expected, int actual)
541 if (expected != actual) {
542 fail(message + " (expected \"" + expected
549 * @param yesno string representation of expected result
694 // Expression didn't cause an expected error
697 test.fail(log, "Was expected to be an error, but wasn't.");
710 success("Produces an error (" + e.toString() + "), as expected.");
780 + " \"" + toMatch + "\", as expected:");
784 test.fail(log, "Did not match \"" + toMatch + "\", when expected to.");
786 test.fail(log, "Matched \"" + toMatch + "\", when not expected to.");
806 // Check registers against expected contents
811 // Compare expected result with actual
848 public boolean assertEquals(StringBuffer log, String message, String expected, String actual)
850 if (expected != null && !expected.equals(actual)
851 || actual != null && !actual.equals(expected))
853 test.fail(log, message + " (expected \"" + expected
860 public boolean assertEquals(StringBuffer log, String message, int expected, int actual)
862 if (expected != actual) {
863 test.fail(log, message + " (expected \"" + expected