Lines Matching refs:Assert

17 import junit.framework.Assert;
33 Assert.assertTrue(test.equals(test)); in main()
34 Assert.assertTrue(test.equals(test1)); in main()
35 Assert.assertFalse(test.equals(test2)); in main()
37 Assert.assertEquals(test.compareTo(test1), 0); in main()
38 Assert.assertTrue(test1.compareTo(test2) > 0); in main()
39 Assert.assertTrue(test2.compareTo(test1) < 0); in main()
41 Assert.assertEquals("".compareTo(""), 0); in main()
42 Assert.assertTrue(test.compareTo("") > 0); in main()
43 Assert.assertTrue("".compareTo(test) < 0); in main()
46 Assert.assertEquals(test.compareTo(sub), 0); in main()
47 Assert.assertEquals(sub.compareTo(test), 0); in main()
48 Assert.assertTrue(test.equals(sub)); in main()
49 Assert.assertTrue(sub.equals(test)); in main()
51 Assert.assertFalse(offset.equals(sub)); in main()
52 Assert.assertFalse(sub.equals(offset)); in main()
54 Assert.assertFalse(test.equals(blah)); in main()
59 Assert.fail("didn't get expected npe"); in main()
64 Assert.assertFalse(test.equals(null)); in main()
67 Assert.assertTrue(test.equals("123456789")); in main()
68 Assert.assertFalse(test.equals(test1)); in main()
71 Assert.assertTrue(test.equals("23456789")); in main()
74 Assert.assertTrue(test.equals("3456789")); in main()
77 Assert.assertTrue(test.equals("456789")); in main()
80 Assert.assertTrue(test.equals("78")); in main()
84 Assert.assertEquals(4, strings.length); in main()
86 Assert.assertEquals("this is a path", test.replaceAll("/", " ")); in main()
87 Assert.assertEquals("this is a path", test.replace("/", " ")); in main()
127 Assert.assertEquals("I", /* Small latin dotless i */ "\u0131".toUpperCase()); in main()
128 Assert.assertEquals("abc", "a\u0131c".replace('\u0131', 'b')); in main()
129 Assert.assertEquals("a\u0131c", "abc".replace('b', '\u0131')); in main()
132Assert.assertFalse(result.equals("Very long constant string, so that the known constant count fiel… in main()
324 Assert.assertEquals(1 + 16 * 10, length); in testCompareToAndEquals()
376 Assert.assertEquals("0123456789abcdef".charAt(k), lhs.charAt(k)); in testCompareToAndEquals()
377 Assert.assertEquals("0123456789abcdef".charAt(k), rhs.charAt(k)); in testCompareToAndEquals()
380 Assert.assertFalse(expected == 0); in testCompareToAndEquals()
396 Assert.assertEquals(equalsExpected, $noinline$equals(lhs, rhs)); in testCompareToAndEquals()
402 Assert.fail(); in testCompareToAndEquals()
407 Assert.fail(); in testCompareToAndEquals()
411 Assert.assertFalse($noinline$equals("", null)); in testCompareToAndEquals()
414 Assert.fail(); in testCompareToAndEquals()
516 Assert.assertEquals(expX, $noinline$indexOf(full, 'x')); in testIndexOf()
517 Assert.assertEquals(exp0440, $noinline$indexOf(full, '\u0440')); in testIndexOf()
518 Assert.assertEquals(exp0000, $noinline$indexOf(full, '\u0000')); in testIndexOf()
519 Assert.assertEquals(expX, $noinline$indexOf(full, 'x', -1)); in testIndexOf()
520 Assert.assertEquals(exp0440, $noinline$indexOf(full, '\u0440', -1)); in testIndexOf()
521 Assert.assertEquals(exp0000, $noinline$indexOf(full, '\u0000', -1)); in testIndexOf()
522 Assert.assertEquals(-1, $noinline$indexOf(full, 'x', full.length() + 1)); in testIndexOf()
523 Assert.assertEquals(-1, $noinline$indexOf(full, '\u0440', full.length() + 1)); in testIndexOf()
524 Assert.assertEquals(-1, $noinline$indexOf(full, '\u0000', full.length() + 1)); in testIndexOf()
546 Assert.assertEquals(eX, $noinline$indexOf(full, 'x', from)); in testIndexOf()
547 Assert.assertEquals(e0440, $noinline$indexOf(full, '\u0440', from)); in testIndexOf()
548 Assert.assertEquals(e0000, $noinline$indexOf(full, '\u0000', from)); in testIndexOf()
556 Assert.assertTrue($noinline$equalsConstString0("")); in testEqualsConstString()
557 Assert.assertFalse($noinline$equalsConstString0("1")); in testEqualsConstString()
559 Assert.assertTrue($noinline$equalsConstString3("012")); in testEqualsConstString()
560 Assert.assertFalse($noinline$equalsConstString3("01")); in testEqualsConstString()
561 Assert.assertFalse($noinline$equalsConstString3("0123")); in testEqualsConstString()
562 Assert.assertFalse($noinline$equalsConstString3("01x")); in testEqualsConstString()
563 Assert.assertFalse($noinline$equalsConstString3("01\u0440")); in testEqualsConstString()
565 Assert.assertTrue($noinline$equalsConstString7("0123456")); in testEqualsConstString()
566 Assert.assertFalse($noinline$equalsConstString7("012345")); in testEqualsConstString()
567 Assert.assertFalse($noinline$equalsConstString7("01234567")); in testEqualsConstString()
568 Assert.assertFalse($noinline$equalsConstString7("012345x")); in testEqualsConstString()
569 Assert.assertFalse($noinline$equalsConstString7("012345\u0440")); in testEqualsConstString()
571 Assert.assertTrue($noinline$equalsConstString12("012345678901")); in testEqualsConstString()
572 Assert.assertFalse($noinline$equalsConstString12("01234567890")); in testEqualsConstString()
573 Assert.assertFalse($noinline$equalsConstString12("0123456789012")); in testEqualsConstString()
574 Assert.assertFalse($noinline$equalsConstString12("01234567890x")); in testEqualsConstString()
575 Assert.assertFalse($noinline$equalsConstString12("01234567890\u0440")); in testEqualsConstString()
577 Assert.assertTrue($noinline$equalsConstString14("01234567890123")); in testEqualsConstString()
578 Assert.assertFalse($noinline$equalsConstString14("0123456789012")); in testEqualsConstString()
579 Assert.assertFalse($noinline$equalsConstString14("012345678901234")); in testEqualsConstString()
580 Assert.assertFalse($noinline$equalsConstString14("0123456789012x")); in testEqualsConstString()
581 Assert.assertFalse($noinline$equalsConstString14("0123456789012\u0440")); in testEqualsConstString()
583 Assert.assertTrue($noinline$equalsConstString24("012345678901234567890123")); in testEqualsConstString()
584 Assert.assertFalse($noinline$equalsConstString24("01234567890123456789012")); in testEqualsConstString()
585 Assert.assertFalse($noinline$equalsConstString24("0123456789012345678901234")); in testEqualsConstString()
586 Assert.assertFalse($noinline$equalsConstString24("01234567890123456789012x")); in testEqualsConstString()
587 Assert.assertFalse($noinline$equalsConstString24("01234567890123456789012\u0440")); in testEqualsConstString()
589 Assert.assertTrue($noinline$equalsConstString29("01234567890123456789012345678")); in testEqualsConstString()
590 Assert.assertFalse($noinline$equalsConstString29("0123456789012345678901234567")); in testEqualsConstString()
591 Assert.assertFalse($noinline$equalsConstString29("012345678901234567890123456789")); in testEqualsConstString()
592 Assert.assertFalse($noinline$equalsConstString29("0123456789012345678901234567x")); in testEqualsConstString()
593 Assert.assertFalse($noinline$equalsConstString29("0123456789012345678901234567\u0440")); in testEqualsConstString()
595 Assert.assertTrue($noinline$equalsConstString35("01234567890123456789012345678901234")); in testEqualsConstString()
596 Assert.assertFalse($noinline$equalsConstString35("0123456789012345678901234567890123")); in testEqualsConstString()
597 Assert.assertFalse($noinline$equalsConstString35("012345678901234567890123456789012345")); in testEqualsConstString()
598 Assert.assertFalse($noinline$equalsConstString35("0123456789012345678901234567890123x")); in testEqualsConstString()
599 Assert.assertFalse( in testEqualsConstString()
602 Assert.assertTrue($noinline$equalsConstNonAsciiString3("\u044012")); in testEqualsConstString()
603 Assert.assertFalse($noinline$equalsConstNonAsciiString3("\u04401")); in testEqualsConstString()
604 Assert.assertFalse($noinline$equalsConstNonAsciiString3("\u0440123")); in testEqualsConstString()
605 Assert.assertFalse($noinline$equalsConstNonAsciiString3("\u04401x")); in testEqualsConstString()
606 Assert.assertFalse($noinline$equalsConstNonAsciiString3("012")); in testEqualsConstString()
608 Assert.assertTrue($noinline$equalsConstNonAsciiString7("\u0440123456")); in testEqualsConstString()
609 Assert.assertFalse($noinline$equalsConstNonAsciiString7("\u044012345")); in testEqualsConstString()
610 Assert.assertFalse($noinline$equalsConstNonAsciiString7("\u04401234567")); in testEqualsConstString()
611 Assert.assertFalse($noinline$equalsConstNonAsciiString7("\u044012345x")); in testEqualsConstString()
612 Assert.assertFalse($noinline$equalsConstNonAsciiString7("0123456")); in testEqualsConstString()
614 Assert.assertTrue($noinline$equalsConstNonAsciiString12("\u044012345678901")); in testEqualsConstString()
615 Assert.assertFalse($noinline$equalsConstNonAsciiString12("\u04401234567890")); in testEqualsConstString()
616 Assert.assertFalse($noinline$equalsConstNonAsciiString12("\u0440123456789012")); in testEqualsConstString()
617 Assert.assertFalse($noinline$equalsConstNonAsciiString12("\u04401234567890x")); in testEqualsConstString()
618 Assert.assertFalse($noinline$equalsConstNonAsciiString12("012345678901")); in testEqualsConstString()
620 Assert.assertTrue($noinline$equalsConstNonAsciiString14("\u04401234567890123")); in testEqualsConstString()
621 Assert.assertFalse($noinline$equalsConstNonAsciiString14("\u0440123456789012")); in testEqualsConstString()
622 Assert.assertFalse($noinline$equalsConstNonAsciiString14("\u044012345678901234")); in testEqualsConstString()
623 Assert.assertFalse($noinline$equalsConstNonAsciiString14("\u0440123456789012x")); in testEqualsConstString()
624 Assert.assertFalse($noinline$equalsConstNonAsciiString14("01234567890123")); in testEqualsConstString()
626 Assert.assertTrue($noinline$equalsConstNonAsciiString24("\u044012345678901234567890123")); in testEqualsConstString()
627 Assert.assertFalse($noinline$equalsConstNonAsciiString24("\u04401234567890123456789012")); in testEqualsConstString()
628 Assert.assertFalse($noinline$equalsConstNonAsciiString24("\u0440123456789012345678901234")); in testEqualsConstString()
629 Assert.assertFalse($noinline$equalsConstNonAsciiString24("\u04401234567890123456789012x")); in testEqualsConstString()
630 Assert.assertFalse($noinline$equalsConstNonAsciiString24("\012345678901234567890123")); in testEqualsConstString()
632 Assert.assertTrue( in testEqualsConstString()
634 Assert.assertFalse( in testEqualsConstString()
636 Assert.assertFalse( in testEqualsConstString()
638 Assert.assertFalse( in testEqualsConstString()
640 Assert.assertFalse($noinline$equalsConstNonAsciiString29("01234567890123456789012345678")); in testEqualsConstString()
642 Assert.assertTrue( in testEqualsConstString()
644 Assert.assertFalse( in testEqualsConstString()
646 Assert.assertFalse( in testEqualsConstString()
648 Assert.assertFalse( in testEqualsConstString()
650 Assert.assertFalse( in testEqualsConstString()
655 Assert.assertTrue($noinline$constString0Equals("")); in testConstStringEquals()
656 Assert.assertFalse($noinline$constString0Equals("1")); in testConstStringEquals()
658 Assert.assertTrue($noinline$constString3Equals("012")); in testConstStringEquals()
659 Assert.assertFalse($noinline$constString3Equals("01")); in testConstStringEquals()
660 Assert.assertFalse($noinline$constString3Equals("0123")); in testConstStringEquals()
661 Assert.assertFalse($noinline$constString3Equals("01x")); in testConstStringEquals()
662 Assert.assertFalse($noinline$constString3Equals("01\u0440")); in testConstStringEquals()
664 Assert.assertTrue($noinline$constString7Equals("0123456")); in testConstStringEquals()
665 Assert.assertFalse($noinline$constString7Equals("012345")); in testConstStringEquals()
666 Assert.assertFalse($noinline$constString7Equals("01234567")); in testConstStringEquals()
667 Assert.assertFalse($noinline$constString7Equals("012345x")); in testConstStringEquals()
668 Assert.assertFalse($noinline$constString7Equals("012345\u0440")); in testConstStringEquals()
670 Assert.assertTrue($noinline$constString12Equals("012345678901")); in testConstStringEquals()
671 Assert.assertFalse($noinline$constString12Equals("01234567890")); in testConstStringEquals()
672 Assert.assertFalse($noinline$constString12Equals("0123456789012")); in testConstStringEquals()
673 Assert.assertFalse($noinline$constString12Equals("01234567890x")); in testConstStringEquals()
674 Assert.assertFalse($noinline$constString12Equals("01234567890\u0440")); in testConstStringEquals()
676 Assert.assertTrue($noinline$constString14Equals("01234567890123")); in testConstStringEquals()
677 Assert.assertFalse($noinline$constString14Equals("0123456789012")); in testConstStringEquals()
678 Assert.assertFalse($noinline$constString14Equals("012345678901234")); in testConstStringEquals()
679 Assert.assertFalse($noinline$constString14Equals("0123456789012x")); in testConstStringEquals()
680 Assert.assertFalse($noinline$constString14Equals("0123456789012\u0440")); in testConstStringEquals()
682 Assert.assertTrue($noinline$constString24Equals("012345678901234567890123")); in testConstStringEquals()
683 Assert.assertFalse($noinline$constString24Equals("01234567890123456789012")); in testConstStringEquals()
684 Assert.assertFalse($noinline$constString24Equals("0123456789012345678901234")); in testConstStringEquals()
685 Assert.assertFalse($noinline$constString24Equals("01234567890123456789012x")); in testConstStringEquals()
686 Assert.assertFalse($noinline$constString24Equals("01234567890123456789012\u0440")); in testConstStringEquals()
688 Assert.assertTrue($noinline$constString29Equals("01234567890123456789012345678")); in testConstStringEquals()
689 Assert.assertFalse($noinline$constString29Equals("0123456789012345678901234567")); in testConstStringEquals()
690 Assert.assertFalse($noinline$constString29Equals("012345678901234567890123456789")); in testConstStringEquals()
691 Assert.assertFalse($noinline$constString29Equals("0123456789012345678901234567x")); in testConstStringEquals()
692 Assert.assertFalse($noinline$constString29Equals("0123456789012345678901234567\u0440")); in testConstStringEquals()
694 Assert.assertTrue($noinline$constString35Equals("01234567890123456789012345678901234")); in testConstStringEquals()
695 Assert.assertFalse($noinline$constString35Equals("0123456789012345678901234567890123")); in testConstStringEquals()
696 Assert.assertFalse($noinline$constString35Equals("012345678901234567890123456789012345")); in testConstStringEquals()
697 Assert.assertFalse($noinline$constString35Equals("0123456789012345678901234567890123x")); in testConstStringEquals()
698 Assert.assertFalse( in testConstStringEquals()
701 Assert.assertTrue($noinline$constNonAsciiString3Equals("\u044012")); in testConstStringEquals()
702 Assert.assertFalse($noinline$constNonAsciiString3Equals("\u04401")); in testConstStringEquals()
703 Assert.assertFalse($noinline$constNonAsciiString3Equals("\u0440123")); in testConstStringEquals()
704 Assert.assertFalse($noinline$constNonAsciiString3Equals("\u04401x")); in testConstStringEquals()
705 Assert.assertFalse($noinline$constNonAsciiString3Equals("0123456")); in testConstStringEquals()
707 Assert.assertTrue($noinline$constNonAsciiString7Equals("\u0440123456")); in testConstStringEquals()
708 Assert.assertFalse($noinline$constNonAsciiString7Equals("\u044012345")); in testConstStringEquals()
709 Assert.assertFalse($noinline$constNonAsciiString7Equals("\u04401234567")); in testConstStringEquals()
710 Assert.assertFalse($noinline$constNonAsciiString7Equals("\u044012345x")); in testConstStringEquals()
711 Assert.assertFalse($noinline$constNonAsciiString7Equals("0123456")); in testConstStringEquals()
713 Assert.assertTrue($noinline$constNonAsciiString12Equals("\u044012345678901")); in testConstStringEquals()
714 Assert.assertFalse($noinline$constNonAsciiString12Equals("\u04401234567890")); in testConstStringEquals()
715 Assert.assertFalse($noinline$constNonAsciiString12Equals("\u0440123456789012")); in testConstStringEquals()
716 Assert.assertFalse($noinline$constNonAsciiString12Equals("\u04401234567890x")); in testConstStringEquals()
717 Assert.assertFalse($noinline$constNonAsciiString12Equals("012345678901")); in testConstStringEquals()
719 Assert.assertTrue($noinline$constNonAsciiString14Equals("\u04401234567890123")); in testConstStringEquals()
720 Assert.assertFalse($noinline$constNonAsciiString14Equals("\u0440123456789012")); in testConstStringEquals()
721 Assert.assertFalse($noinline$constNonAsciiString14Equals("\u044012345678901234")); in testConstStringEquals()
722 Assert.assertFalse($noinline$constNonAsciiString14Equals("\u0440123456789012x")); in testConstStringEquals()
723 Assert.assertFalse($noinline$constNonAsciiString14Equals("01234567890123")); in testConstStringEquals()
725 Assert.assertTrue($noinline$constNonAsciiString24Equals("\u044012345678901234567890123")); in testConstStringEquals()
726 Assert.assertFalse($noinline$constNonAsciiString24Equals("\u04401234567890123456789012")); in testConstStringEquals()
727 Assert.assertFalse($noinline$constNonAsciiString24Equals("\u0440123456789012345678901234")); in testConstStringEquals()
728 Assert.assertFalse($noinline$constNonAsciiString24Equals("\u04401234567890123456789012x")); in testConstStringEquals()
729 Assert.assertFalse($noinline$constNonAsciiString24Equals("\012345678901234567890123")); in testConstStringEquals()
731 Assert.assertTrue( in testConstStringEquals()
733 Assert.assertFalse( in testConstStringEquals()
735 Assert.assertFalse( in testConstStringEquals()
737 Assert.assertFalse( in testConstStringEquals()
739 Assert.assertFalse($noinline$constNonAsciiString29Equals("01234567890123456789012345678")); in testConstStringEquals()
741 Assert.assertTrue( in testConstStringEquals()
743 Assert.assertFalse( in testConstStringEquals()
745 Assert.assertFalse( in testConstStringEquals()
747 Assert.assertFalse( in testConstStringEquals()
749 Assert.assertFalse( in testConstStringEquals()
755 Assert.assertTrue("A".equals(new String(new byte[] { (byte)'A' }, /* hibyte */ 0x100))); in testConstStringEquals()