Lines Matching refs:Assert

17 import junit.framework.Assert;
32 Assert.assertTrue(test.equals(test)); in main()
33 Assert.assertTrue(test.equals(test1)); in main()
34 Assert.assertFalse(test.equals(test2)); in main()
36 Assert.assertEquals(test.compareTo(test1), 0); in main()
37 Assert.assertTrue(test1.compareTo(test2) > 0); in main()
38 Assert.assertTrue(test2.compareTo(test1) < 0); in main()
40 Assert.assertEquals("".compareTo(""), 0); in main()
41 Assert.assertTrue(test.compareTo("") > 0); in main()
42 Assert.assertTrue("".compareTo(test) < 0); in main()
45 Assert.assertEquals(test.compareTo(sub), 0); in main()
46 Assert.assertEquals(sub.compareTo(test), 0); in main()
47 Assert.assertTrue(test.equals(sub)); in main()
48 Assert.assertTrue(sub.equals(test)); in main()
50 Assert.assertFalse(offset.equals(sub)); in main()
51 Assert.assertFalse(sub.equals(offset)); in main()
53 Assert.assertFalse(test.equals(blah)); in main()
58 Assert.fail("didn't get expected npe"); in main()
63 Assert.assertFalse(test.equals(null)); in main()
66 Assert.assertTrue(test.equals("123456789")); in main()
67 Assert.assertFalse(test.equals(test1)); in main()
70 Assert.assertTrue(test.equals("23456789")); in main()
73 Assert.assertTrue(test.equals("3456789")); in main()
76 Assert.assertTrue(test.equals("456789")); in main()
79 Assert.assertTrue(test.equals("78")); in main()
83 Assert.assertEquals(4, strings.length); in main()
85 Assert.assertEquals("this is a path", test.replaceAll("/", " ")); in main()
86 Assert.assertEquals("this is a path", test.replace("/", " ")); in main()
124 Assert.assertEquals("I", /* Small latin dotless i */ "\u0131".toUpperCase()); in main()
125 Assert.assertEquals("abc", "a\u0131c".replace('\u0131', 'b')); in main()
126 Assert.assertEquals("a\u0131c", "abc".replace('b', '\u0131')); in main()
129Assert.assertFalse(result.equals("Very long constant string, so that the known constant count fiel… in main()
321 Assert.assertEquals(1 + 16 * 10, length); in testCompareToAndEquals()
373 Assert.assertEquals("0123456789abcdef".charAt(k), lhs.charAt(k)); in testCompareToAndEquals()
374 Assert.assertEquals("0123456789abcdef".charAt(k), rhs.charAt(k)); in testCompareToAndEquals()
377 Assert.assertFalse(expected == 0); in testCompareToAndEquals()
393 Assert.assertEquals(equalsExpected, $noinline$equals(lhs, rhs)); in testCompareToAndEquals()
399 Assert.fail(); in testCompareToAndEquals()
404 Assert.fail(); in testCompareToAndEquals()
408 Assert.assertFalse($noinline$equals("", null)); in testCompareToAndEquals()
411 Assert.fail(); in testCompareToAndEquals()
513 Assert.assertEquals(expX, $noinline$indexOf(full, 'x')); in testIndexOf()
514 Assert.assertEquals(exp0440, $noinline$indexOf(full, '\u0440')); in testIndexOf()
515 Assert.assertEquals(exp0000, $noinline$indexOf(full, '\u0000')); in testIndexOf()
516 Assert.assertEquals(expX, $noinline$indexOf(full, 'x', -1)); in testIndexOf()
517 Assert.assertEquals(exp0440, $noinline$indexOf(full, '\u0440', -1)); in testIndexOf()
518 Assert.assertEquals(exp0000, $noinline$indexOf(full, '\u0000', -1)); in testIndexOf()
519 Assert.assertEquals(-1, $noinline$indexOf(full, 'x', full.length() + 1)); in testIndexOf()
520 Assert.assertEquals(-1, $noinline$indexOf(full, '\u0440', full.length() + 1)); in testIndexOf()
521 Assert.assertEquals(-1, $noinline$indexOf(full, '\u0000', full.length() + 1)); in testIndexOf()
543 Assert.assertEquals(eX, $noinline$indexOf(full, 'x', from)); in testIndexOf()
544 Assert.assertEquals(e0440, $noinline$indexOf(full, '\u0440', from)); in testIndexOf()
545 Assert.assertEquals(e0000, $noinline$indexOf(full, '\u0000', from)); in testIndexOf()
553 Assert.assertTrue($noinline$equalsConstString0("")); in testEqualsConstString()
554 Assert.assertFalse($noinline$equalsConstString0("1")); in testEqualsConstString()
556 Assert.assertTrue($noinline$equalsConstString3("012")); in testEqualsConstString()
557 Assert.assertFalse($noinline$equalsConstString3("01")); in testEqualsConstString()
558 Assert.assertFalse($noinline$equalsConstString3("0123")); in testEqualsConstString()
559 Assert.assertFalse($noinline$equalsConstString3("01x")); in testEqualsConstString()
560 Assert.assertFalse($noinline$equalsConstString3("01\u0440")); in testEqualsConstString()
562 Assert.assertTrue($noinline$equalsConstString7("0123456")); in testEqualsConstString()
563 Assert.assertFalse($noinline$equalsConstString7("012345")); in testEqualsConstString()
564 Assert.assertFalse($noinline$equalsConstString7("01234567")); in testEqualsConstString()
565 Assert.assertFalse($noinline$equalsConstString7("012345x")); in testEqualsConstString()
566 Assert.assertFalse($noinline$equalsConstString7("012345\u0440")); in testEqualsConstString()
568 Assert.assertTrue($noinline$equalsConstString12("012345678901")); in testEqualsConstString()
569 Assert.assertFalse($noinline$equalsConstString12("01234567890")); in testEqualsConstString()
570 Assert.assertFalse($noinline$equalsConstString12("0123456789012")); in testEqualsConstString()
571 Assert.assertFalse($noinline$equalsConstString12("01234567890x")); in testEqualsConstString()
572 Assert.assertFalse($noinline$equalsConstString12("01234567890\u0440")); in testEqualsConstString()
574 Assert.assertTrue($noinline$equalsConstString14("01234567890123")); in testEqualsConstString()
575 Assert.assertFalse($noinline$equalsConstString14("0123456789012")); in testEqualsConstString()
576 Assert.assertFalse($noinline$equalsConstString14("012345678901234")); in testEqualsConstString()
577 Assert.assertFalse($noinline$equalsConstString14("0123456789012x")); in testEqualsConstString()
578 Assert.assertFalse($noinline$equalsConstString14("0123456789012\u0440")); in testEqualsConstString()
580 Assert.assertTrue($noinline$equalsConstString24("012345678901234567890123")); in testEqualsConstString()
581 Assert.assertFalse($noinline$equalsConstString24("01234567890123456789012")); in testEqualsConstString()
582 Assert.assertFalse($noinline$equalsConstString24("0123456789012345678901234")); in testEqualsConstString()
583 Assert.assertFalse($noinline$equalsConstString24("01234567890123456789012x")); in testEqualsConstString()
584 Assert.assertFalse($noinline$equalsConstString24("01234567890123456789012\u0440")); in testEqualsConstString()
586 Assert.assertTrue($noinline$equalsConstString29("01234567890123456789012345678")); in testEqualsConstString()
587 Assert.assertFalse($noinline$equalsConstString29("0123456789012345678901234567")); in testEqualsConstString()
588 Assert.assertFalse($noinline$equalsConstString29("012345678901234567890123456789")); in testEqualsConstString()
589 Assert.assertFalse($noinline$equalsConstString29("0123456789012345678901234567x")); in testEqualsConstString()
590 Assert.assertFalse($noinline$equalsConstString29("0123456789012345678901234567\u0440")); in testEqualsConstString()
592 Assert.assertTrue($noinline$equalsConstString35("01234567890123456789012345678901234")); in testEqualsConstString()
593 Assert.assertFalse($noinline$equalsConstString35("0123456789012345678901234567890123")); in testEqualsConstString()
594 Assert.assertFalse($noinline$equalsConstString35("012345678901234567890123456789012345")); in testEqualsConstString()
595 Assert.assertFalse($noinline$equalsConstString35("0123456789012345678901234567890123x")); in testEqualsConstString()
596 Assert.assertFalse( in testEqualsConstString()
599 Assert.assertTrue($noinline$equalsConstNonAsciiString3("\u044012")); in testEqualsConstString()
600 Assert.assertFalse($noinline$equalsConstNonAsciiString3("\u04401")); in testEqualsConstString()
601 Assert.assertFalse($noinline$equalsConstNonAsciiString3("\u0440123")); in testEqualsConstString()
602 Assert.assertFalse($noinline$equalsConstNonAsciiString3("\u04401x")); in testEqualsConstString()
603 Assert.assertFalse($noinline$equalsConstNonAsciiString3("012")); in testEqualsConstString()
605 Assert.assertTrue($noinline$equalsConstNonAsciiString7("\u0440123456")); in testEqualsConstString()
606 Assert.assertFalse($noinline$equalsConstNonAsciiString7("\u044012345")); in testEqualsConstString()
607 Assert.assertFalse($noinline$equalsConstNonAsciiString7("\u04401234567")); in testEqualsConstString()
608 Assert.assertFalse($noinline$equalsConstNonAsciiString7("\u044012345x")); in testEqualsConstString()
609 Assert.assertFalse($noinline$equalsConstNonAsciiString7("0123456")); in testEqualsConstString()
611 Assert.assertTrue($noinline$equalsConstNonAsciiString12("\u044012345678901")); in testEqualsConstString()
612 Assert.assertFalse($noinline$equalsConstNonAsciiString12("\u04401234567890")); in testEqualsConstString()
613 Assert.assertFalse($noinline$equalsConstNonAsciiString12("\u0440123456789012")); in testEqualsConstString()
614 Assert.assertFalse($noinline$equalsConstNonAsciiString12("\u04401234567890x")); in testEqualsConstString()
615 Assert.assertFalse($noinline$equalsConstNonAsciiString12("012345678901")); in testEqualsConstString()
617 Assert.assertTrue($noinline$equalsConstNonAsciiString14("\u04401234567890123")); in testEqualsConstString()
618 Assert.assertFalse($noinline$equalsConstNonAsciiString14("\u0440123456789012")); in testEqualsConstString()
619 Assert.assertFalse($noinline$equalsConstNonAsciiString14("\u044012345678901234")); in testEqualsConstString()
620 Assert.assertFalse($noinline$equalsConstNonAsciiString14("\u0440123456789012x")); in testEqualsConstString()
621 Assert.assertFalse($noinline$equalsConstNonAsciiString14("01234567890123")); in testEqualsConstString()
623 Assert.assertTrue($noinline$equalsConstNonAsciiString24("\u044012345678901234567890123")); in testEqualsConstString()
624 Assert.assertFalse($noinline$equalsConstNonAsciiString24("\u04401234567890123456789012")); in testEqualsConstString()
625 Assert.assertFalse($noinline$equalsConstNonAsciiString24("\u0440123456789012345678901234")); in testEqualsConstString()
626 Assert.assertFalse($noinline$equalsConstNonAsciiString24("\u04401234567890123456789012x")); in testEqualsConstString()
627 Assert.assertFalse($noinline$equalsConstNonAsciiString24("\012345678901234567890123")); in testEqualsConstString()
629 Assert.assertTrue( in testEqualsConstString()
631 Assert.assertFalse( in testEqualsConstString()
633 Assert.assertFalse( in testEqualsConstString()
635 Assert.assertFalse( in testEqualsConstString()
637 Assert.assertFalse($noinline$equalsConstNonAsciiString29("01234567890123456789012345678")); in testEqualsConstString()
639 Assert.assertTrue( in testEqualsConstString()
641 Assert.assertFalse( in testEqualsConstString()
643 Assert.assertFalse( in testEqualsConstString()
645 Assert.assertFalse( in testEqualsConstString()
647 Assert.assertFalse( in testEqualsConstString()
652 Assert.assertTrue($noinline$constString0Equals("")); in testConstStringEquals()
653 Assert.assertFalse($noinline$constString0Equals("1")); in testConstStringEquals()
655 Assert.assertTrue($noinline$constString3Equals("012")); in testConstStringEquals()
656 Assert.assertFalse($noinline$constString3Equals("01")); in testConstStringEquals()
657 Assert.assertFalse($noinline$constString3Equals("0123")); in testConstStringEquals()
658 Assert.assertFalse($noinline$constString3Equals("01x")); in testConstStringEquals()
659 Assert.assertFalse($noinline$constString3Equals("01\u0440")); in testConstStringEquals()
661 Assert.assertTrue($noinline$constString7Equals("0123456")); in testConstStringEquals()
662 Assert.assertFalse($noinline$constString7Equals("012345")); in testConstStringEquals()
663 Assert.assertFalse($noinline$constString7Equals("01234567")); in testConstStringEquals()
664 Assert.assertFalse($noinline$constString7Equals("012345x")); in testConstStringEquals()
665 Assert.assertFalse($noinline$constString7Equals("012345\u0440")); in testConstStringEquals()
667 Assert.assertTrue($noinline$constString12Equals("012345678901")); in testConstStringEquals()
668 Assert.assertFalse($noinline$constString12Equals("01234567890")); in testConstStringEquals()
669 Assert.assertFalse($noinline$constString12Equals("0123456789012")); in testConstStringEquals()
670 Assert.assertFalse($noinline$constString12Equals("01234567890x")); in testConstStringEquals()
671 Assert.assertFalse($noinline$constString12Equals("01234567890\u0440")); in testConstStringEquals()
673 Assert.assertTrue($noinline$constString14Equals("01234567890123")); in testConstStringEquals()
674 Assert.assertFalse($noinline$constString14Equals("0123456789012")); in testConstStringEquals()
675 Assert.assertFalse($noinline$constString14Equals("012345678901234")); in testConstStringEquals()
676 Assert.assertFalse($noinline$constString14Equals("0123456789012x")); in testConstStringEquals()
677 Assert.assertFalse($noinline$constString14Equals("0123456789012\u0440")); in testConstStringEquals()
679 Assert.assertTrue($noinline$constString24Equals("012345678901234567890123")); in testConstStringEquals()
680 Assert.assertFalse($noinline$constString24Equals("01234567890123456789012")); in testConstStringEquals()
681 Assert.assertFalse($noinline$constString24Equals("0123456789012345678901234")); in testConstStringEquals()
682 Assert.assertFalse($noinline$constString24Equals("01234567890123456789012x")); in testConstStringEquals()
683 Assert.assertFalse($noinline$constString24Equals("01234567890123456789012\u0440")); in testConstStringEquals()
685 Assert.assertTrue($noinline$constString29Equals("01234567890123456789012345678")); in testConstStringEquals()
686 Assert.assertFalse($noinline$constString29Equals("0123456789012345678901234567")); in testConstStringEquals()
687 Assert.assertFalse($noinline$constString29Equals("012345678901234567890123456789")); in testConstStringEquals()
688 Assert.assertFalse($noinline$constString29Equals("0123456789012345678901234567x")); in testConstStringEquals()
689 Assert.assertFalse($noinline$constString29Equals("0123456789012345678901234567\u0440")); in testConstStringEquals()
691 Assert.assertTrue($noinline$constString35Equals("01234567890123456789012345678901234")); in testConstStringEquals()
692 Assert.assertFalse($noinline$constString35Equals("0123456789012345678901234567890123")); in testConstStringEquals()
693 Assert.assertFalse($noinline$constString35Equals("012345678901234567890123456789012345")); in testConstStringEquals()
694 Assert.assertFalse($noinline$constString35Equals("0123456789012345678901234567890123x")); in testConstStringEquals()
695 Assert.assertFalse( in testConstStringEquals()
698 Assert.assertTrue($noinline$constNonAsciiString3Equals("\u044012")); in testConstStringEquals()
699 Assert.assertFalse($noinline$constNonAsciiString3Equals("\u04401")); in testConstStringEquals()
700 Assert.assertFalse($noinline$constNonAsciiString3Equals("\u0440123")); in testConstStringEquals()
701 Assert.assertFalse($noinline$constNonAsciiString3Equals("\u04401x")); in testConstStringEquals()
702 Assert.assertFalse($noinline$constNonAsciiString3Equals("0123456")); in testConstStringEquals()
704 Assert.assertTrue($noinline$constNonAsciiString7Equals("\u0440123456")); in testConstStringEquals()
705 Assert.assertFalse($noinline$constNonAsciiString7Equals("\u044012345")); in testConstStringEquals()
706 Assert.assertFalse($noinline$constNonAsciiString7Equals("\u04401234567")); in testConstStringEquals()
707 Assert.assertFalse($noinline$constNonAsciiString7Equals("\u044012345x")); in testConstStringEquals()
708 Assert.assertFalse($noinline$constNonAsciiString7Equals("0123456")); in testConstStringEquals()
710 Assert.assertTrue($noinline$constNonAsciiString12Equals("\u044012345678901")); in testConstStringEquals()
711 Assert.assertFalse($noinline$constNonAsciiString12Equals("\u04401234567890")); in testConstStringEquals()
712 Assert.assertFalse($noinline$constNonAsciiString12Equals("\u0440123456789012")); in testConstStringEquals()
713 Assert.assertFalse($noinline$constNonAsciiString12Equals("\u04401234567890x")); in testConstStringEquals()
714 Assert.assertFalse($noinline$constNonAsciiString12Equals("012345678901")); in testConstStringEquals()
716 Assert.assertTrue($noinline$constNonAsciiString14Equals("\u04401234567890123")); in testConstStringEquals()
717 Assert.assertFalse($noinline$constNonAsciiString14Equals("\u0440123456789012")); in testConstStringEquals()
718 Assert.assertFalse($noinline$constNonAsciiString14Equals("\u044012345678901234")); in testConstStringEquals()
719 Assert.assertFalse($noinline$constNonAsciiString14Equals("\u0440123456789012x")); in testConstStringEquals()
720 Assert.assertFalse($noinline$constNonAsciiString14Equals("01234567890123")); in testConstStringEquals()
722 Assert.assertTrue($noinline$constNonAsciiString24Equals("\u044012345678901234567890123")); in testConstStringEquals()
723 Assert.assertFalse($noinline$constNonAsciiString24Equals("\u04401234567890123456789012")); in testConstStringEquals()
724 Assert.assertFalse($noinline$constNonAsciiString24Equals("\u0440123456789012345678901234")); in testConstStringEquals()
725 Assert.assertFalse($noinline$constNonAsciiString24Equals("\u04401234567890123456789012x")); in testConstStringEquals()
726 Assert.assertFalse($noinline$constNonAsciiString24Equals("\012345678901234567890123")); in testConstStringEquals()
728 Assert.assertTrue( in testConstStringEquals()
730 Assert.assertFalse( in testConstStringEquals()
732 Assert.assertFalse( in testConstStringEquals()
734 Assert.assertFalse( in testConstStringEquals()
736 Assert.assertFalse($noinline$constNonAsciiString29Equals("01234567890123456789012345678")); in testConstStringEquals()
738 Assert.assertTrue( in testConstStringEquals()
740 Assert.assertFalse( in testConstStringEquals()
742 Assert.assertFalse( in testConstStringEquals()
744 Assert.assertFalse( in testConstStringEquals()
746 Assert.assertFalse( in testConstStringEquals()
752 Assert.assertTrue("A".equals(new String(new byte[] { (byte)'A' }, /* hibyte */ 0x100))); in testConstStringEquals()