|
Lines 1334-1340
Link Here
|
| 1334 |
assertEquals("Wrong size", 2, allLeavesDeltas.length); |
1334 |
assertEquals("Wrong size", 2, allLeavesDeltas.length); |
| 1335 |
IDelta child = allLeavesDeltas[0]; |
1335 |
IDelta child = allLeavesDeltas[0]; |
| 1336 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
1336 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
| 1337 |
assertTrue("Has no extend restrictions", !RestrictionModifiers.isExtendRestriction(child.getRestrictions())); |
1337 |
assertTrue("Has no extend restrictions", !RestrictionModifiers.isExtendRestriction(child.getCurrentRestrictions())); |
| 1338 |
assertEquals("Wrong flag", IDelta.METHOD, child.getFlags()); |
1338 |
assertEquals("Wrong flag", IDelta.METHOD, child.getFlags()); |
| 1339 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
1339 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
| 1340 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
1340 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
|
Lines 1362-1368
Link Here
|
| 1362 |
assertEquals("Wrong size", 2, allLeavesDeltas.length); |
1362 |
assertEquals("Wrong size", 2, allLeavesDeltas.length); |
| 1363 |
IDelta child = allLeavesDeltas[0]; |
1363 |
IDelta child = allLeavesDeltas[0]; |
| 1364 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
1364 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
| 1365 |
assertFalse("Extend restrictions", RestrictionModifiers.isExtendRestriction(child.getRestrictions())); |
1365 |
assertFalse("Extend restrictions", RestrictionModifiers.isExtendRestriction(child.getCurrentRestrictions())); |
| 1366 |
assertEquals("Wrong flag", IDelta.FIELD, child.getFlags()); |
1366 |
assertEquals("Wrong flag", IDelta.FIELD, child.getFlags()); |
| 1367 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
1367 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
| 1368 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
1368 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
|
Lines 1458-1464
Link Here
|
| 1458 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
1458 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
| 1459 |
IDelta child = allLeavesDeltas[0]; |
1459 |
IDelta child = allLeavesDeltas[0]; |
| 1460 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
1460 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
| 1461 |
assertTrue("No extend restrictions", RestrictionModifiers.isExtendRestriction(child.getRestrictions())); |
1461 |
assertTrue("No extend restrictions", RestrictionModifiers.isExtendRestriction(child.getCurrentRestrictions())); |
| 1462 |
assertEquals("Wrong flag", IDelta.FIELD, child.getFlags()); |
1462 |
assertEquals("Wrong flag", IDelta.FIELD, child.getFlags()); |
| 1463 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
1463 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
| 1464 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
1464 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
|
Lines 1482-1488
Link Here
|
| 1482 |
IDelta child = allLeavesDeltas[0]; |
1482 |
IDelta child = allLeavesDeltas[0]; |
| 1483 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
1483 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
| 1484 |
assertTrue("Not visible", Util.isVisible(child.getNewModifiers())); |
1484 |
assertTrue("Not visible", Util.isVisible(child.getNewModifiers())); |
| 1485 |
assertTrue("Extend restrictions", !RestrictionModifiers.isExtendRestriction(child.getRestrictions())); |
1485 |
assertTrue("Extend restrictions", !RestrictionModifiers.isExtendRestriction(child.getCurrentRestrictions())); |
| 1486 |
assertEquals("Wrong flag", IDelta.FIELD, child.getFlags()); |
1486 |
assertEquals("Wrong flag", IDelta.FIELD, child.getFlags()); |
| 1487 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
1487 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
| 1488 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
1488 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
|
Lines 1595-1601
Link Here
|
| 1595 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
1595 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
| 1596 |
IDelta child = allLeavesDeltas[0]; |
1596 |
IDelta child = allLeavesDeltas[0]; |
| 1597 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
1597 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
| 1598 |
assertTrue("No extend restrictions", RestrictionModifiers.isExtendRestriction(child.getRestrictions())); |
1598 |
assertTrue("No extend restrictions", RestrictionModifiers.isExtendRestriction(child.getCurrentRestrictions())); |
| 1599 |
assertEquals("Wrong flag", IDelta.FIELD, child.getFlags()); |
1599 |
assertEquals("Wrong flag", IDelta.FIELD, child.getFlags()); |
| 1600 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
1600 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
| 1601 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
1601 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
|
Lines 1693-1699
Link Here
|
| 1693 |
assertEquals("Wrong size", 2, allLeavesDeltas.length); |
1693 |
assertEquals("Wrong size", 2, allLeavesDeltas.length); |
| 1694 |
IDelta child = allLeavesDeltas[0]; |
1694 |
IDelta child = allLeavesDeltas[0]; |
| 1695 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
1695 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
| 1696 |
assertTrue("Extend restrictions", !RestrictionModifiers.isExtendRestriction(child.getRestrictions())); |
1696 |
assertTrue("Extend restrictions", !RestrictionModifiers.isExtendRestriction(child.getCurrentRestrictions())); |
| 1697 |
assertEquals("Wrong flag", IDelta.METHOD, child.getFlags()); |
1697 |
assertEquals("Wrong flag", IDelta.METHOD, child.getFlags()); |
| 1698 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
1698 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
| 1699 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
1699 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
|
Lines 1721-1727
Link Here
|
| 1721 |
assertEquals("Wrong size", 2, allLeavesDeltas.length); |
1721 |
assertEquals("Wrong size", 2, allLeavesDeltas.length); |
| 1722 |
IDelta child = allLeavesDeltas[0]; |
1722 |
IDelta child = allLeavesDeltas[0]; |
| 1723 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
1723 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
| 1724 |
assertTrue("No extend restrictions", RestrictionModifiers.isExtendRestriction(child.getRestrictions())); |
1724 |
assertTrue("No extend restrictions", RestrictionModifiers.isExtendRestriction(child.getCurrentRestrictions())); |
| 1725 |
assertEquals("Wrong flag", IDelta.METHOD, child.getFlags()); |
1725 |
assertEquals("Wrong flag", IDelta.METHOD, child.getFlags()); |
| 1726 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
1726 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
| 1727 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
1727 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
|
Lines 1749-1755
Link Here
|
| 1749 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
1749 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
| 1750 |
IDelta child = allLeavesDeltas[0]; |
1750 |
IDelta child = allLeavesDeltas[0]; |
| 1751 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
1751 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
| 1752 |
assertTrue("No extend restrictions", RestrictionModifiers.isExtendRestriction(child.getRestrictions())); |
1752 |
assertTrue("No extend restrictions", RestrictionModifiers.isExtendRestriction(child.getCurrentRestrictions())); |
| 1753 |
assertEquals("Wrong flag", IDelta.TYPE_MEMBER, child.getFlags()); |
1753 |
assertEquals("Wrong flag", IDelta.TYPE_MEMBER, child.getFlags()); |
| 1754 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
1754 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
| 1755 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
1755 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
|
Lines 1772-1778
Link Here
|
| 1772 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
1772 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
| 1773 |
IDelta child = allLeavesDeltas[0]; |
1773 |
IDelta child = allLeavesDeltas[0]; |
| 1774 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
1774 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
| 1775 |
assertTrue("No extend restrictions", RestrictionModifiers.isExtendRestriction(child.getRestrictions())); |
1775 |
assertTrue("No extend restrictions", RestrictionModifiers.isExtendRestriction(child.getCurrentRestrictions())); |
| 1776 |
assertEquals("Wrong flag", IDelta.TYPE_MEMBER, child.getFlags()); |
1776 |
assertEquals("Wrong flag", IDelta.TYPE_MEMBER, child.getFlags()); |
| 1777 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
1777 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
| 1778 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
1778 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
|
Lines 1834-1840
Link Here
|
| 1834 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
1834 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
| 1835 |
IDelta child = allLeavesDeltas[0]; |
1835 |
IDelta child = allLeavesDeltas[0]; |
| 1836 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
1836 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
| 1837 |
assertTrue("Extend restrictions", !RestrictionModifiers.isExtendRestriction(child.getRestrictions())); |
1837 |
assertTrue("Extend restrictions", !RestrictionModifiers.isExtendRestriction(child.getCurrentRestrictions())); |
| 1838 |
assertEquals("Wrong flag", IDelta.METHOD, child.getFlags()); |
1838 |
assertEquals("Wrong flag", IDelta.METHOD, child.getFlags()); |
| 1839 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
1839 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
| 1840 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
1840 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
|
Lines 1857-1863
Link Here
|
| 1857 |
assertEquals("Wrong size", 2, allLeavesDeltas.length); |
1857 |
assertEquals("Wrong size", 2, allLeavesDeltas.length); |
| 1858 |
IDelta child = allLeavesDeltas[0]; |
1858 |
IDelta child = allLeavesDeltas[0]; |
| 1859 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
1859 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
| 1860 |
assertTrue("Extend restrictions", !RestrictionModifiers.isExtendRestriction(child.getRestrictions())); |
1860 |
assertTrue("Extend restrictions", !RestrictionModifiers.isExtendRestriction(child.getCurrentRestrictions())); |
| 1861 |
assertEquals("Wrong flag", IDelta.METHOD, child.getFlags()); |
1861 |
assertEquals("Wrong flag", IDelta.METHOD, child.getFlags()); |
| 1862 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
1862 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
| 1863 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
1863 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
|
Lines 2140-2146
Link Here
|
| 2140 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
2140 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
| 2141 |
IDelta child = allLeavesDeltas[0]; |
2141 |
IDelta child = allLeavesDeltas[0]; |
| 2142 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
2142 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
| 2143 |
assertTrue("No extend restrictions", RestrictionModifiers.isExtendRestriction(child.getRestrictions())); |
2143 |
assertTrue("No extend restrictions", RestrictionModifiers.isExtendRestriction(child.getCurrentRestrictions())); |
| 2144 |
assertEquals("Wrong flag", IDelta.TYPE_MEMBER, child.getFlags()); |
2144 |
assertEquals("Wrong flag", IDelta.TYPE_MEMBER, child.getFlags()); |
| 2145 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
2145 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
| 2146 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
2146 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
|
Lines 2209-2215
Link Here
|
| 2209 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
2209 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
| 2210 |
IDelta child = allLeavesDeltas[0]; |
2210 |
IDelta child = allLeavesDeltas[0]; |
| 2211 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
2211 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
| 2212 |
assertTrue("No extend restrictions", RestrictionModifiers.isExtendRestriction(child.getRestrictions())); |
2212 |
assertTrue("No extend restrictions", RestrictionModifiers.isExtendRestriction(child.getCurrentRestrictions())); |
| 2213 |
assertEquals("Wrong flag", IDelta.TYPE_MEMBER, child.getFlags()); |
2213 |
assertEquals("Wrong flag", IDelta.TYPE_MEMBER, child.getFlags()); |
| 2214 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
2214 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
| 2215 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
2215 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
|
Lines 2383-2389
Link Here
|
| 2383 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
2383 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
| 2384 |
IDelta child = allLeavesDeltas[0]; |
2384 |
IDelta child = allLeavesDeltas[0]; |
| 2385 |
assertEquals("Wrong kind", IDelta.REMOVED, child.getKind()); |
2385 |
assertEquals("Wrong kind", IDelta.REMOVED, child.getKind()); |
| 2386 |
assertTrue("Not extend restrictions", RestrictionModifiers.isExtendRestriction(child.getRestrictions())); |
2386 |
assertTrue("Not extend restrictions", RestrictionModifiers.isExtendRestriction(child.getCurrentRestrictions())); |
| 2387 |
assertEquals("Wrong flag", IDelta.FIELD, child.getFlags()); |
2387 |
assertEquals("Wrong flag", IDelta.FIELD, child.getFlags()); |
| 2388 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
2388 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
| 2389 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
2389 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
|
Lines 2473-2479
Link Here
|
| 2473 |
IDelta child = allLeavesDeltas[0]; |
2473 |
IDelta child = allLeavesDeltas[0]; |
| 2474 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
2474 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
| 2475 |
// implicit restrictions |
2475 |
// implicit restrictions |
| 2476 |
assertTrue("No extend restrictions", RestrictionModifiers.isExtendRestriction(child.getRestrictions())); |
2476 |
assertTrue("No extend restrictions", RestrictionModifiers.isExtendRestriction(child.getCurrentRestrictions())); |
| 2477 |
assertEquals("Wrong flag", IDelta.FIELD, child.getFlags()); |
2477 |
assertEquals("Wrong flag", IDelta.FIELD, child.getFlags()); |
| 2478 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
2478 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
| 2479 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
2479 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
|
Lines 2497-2503
Link Here
|
| 2497 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
2497 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
| 2498 |
IDelta child = allLeavesDeltas[0]; |
2498 |
IDelta child = allLeavesDeltas[0]; |
| 2499 |
assertEquals("Wrong kind", IDelta.REMOVED, child.getKind()); |
2499 |
assertEquals("Wrong kind", IDelta.REMOVED, child.getKind()); |
| 2500 |
assertTrue("Not extend restrictions", RestrictionModifiers.isExtendRestriction(child.getRestrictions())); |
2500 |
assertTrue("Not extend restrictions", RestrictionModifiers.isExtendRestriction(child.getCurrentRestrictions())); |
| 2501 |
assertEquals("Wrong flag", IDelta.METHOD, child.getFlags()); |
2501 |
assertEquals("Wrong flag", IDelta.METHOD, child.getFlags()); |
| 2502 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
2502 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
| 2503 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
2503 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
|
Lines 2544-2550
Link Here
|
| 2544 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
2544 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
| 2545 |
IDelta child = allLeavesDeltas[0]; |
2545 |
IDelta child = allLeavesDeltas[0]; |
| 2546 |
assertEquals("Wrong kind", IDelta.REMOVED, child.getKind()); |
2546 |
assertEquals("Wrong kind", IDelta.REMOVED, child.getKind()); |
| 2547 |
assertTrue("Not extend restrictions", RestrictionModifiers.isExtendRestriction(child.getRestrictions())); |
2547 |
assertTrue("Not extend restrictions", RestrictionModifiers.isExtendRestriction(child.getCurrentRestrictions())); |
| 2548 |
assertEquals("Wrong flag", IDelta.CONSTRUCTOR, child.getFlags()); |
2548 |
assertEquals("Wrong flag", IDelta.CONSTRUCTOR, child.getFlags()); |
| 2549 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
2549 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
| 2550 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
2550 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
|
Lines 2590-2596
Link Here
|
| 2590 |
IDelta child = allLeavesDeltas[0]; |
2590 |
IDelta child = allLeavesDeltas[0]; |
| 2591 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
2591 |
assertEquals("Wrong kind", IDelta.ADDED, child.getKind()); |
| 2592 |
assertTrue("Not visible", Util.isVisible(child.getNewModifiers())); |
2592 |
assertTrue("Not visible", Util.isVisible(child.getNewModifiers())); |
| 2593 |
assertTrue("No extend restriction", RestrictionModifiers.isExtendRestriction(child.getRestrictions())); |
2593 |
assertTrue("No extend restriction", RestrictionModifiers.isExtendRestriction(child.getCurrentRestrictions())); |
| 2594 |
assertEquals("Wrong flag", IDelta.METHOD, child.getFlags()); |
2594 |
assertEquals("Wrong flag", IDelta.METHOD, child.getFlags()); |
| 2595 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
2595 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
| 2596 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
2596 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
|
Lines 2613-2619
Link Here
|
| 2613 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
2613 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
| 2614 |
IDelta child = allLeavesDeltas[0]; |
2614 |
IDelta child = allLeavesDeltas[0]; |
| 2615 |
assertEquals("Wrong kind", IDelta.REMOVED, child.getKind()); |
2615 |
assertEquals("Wrong kind", IDelta.REMOVED, child.getKind()); |
| 2616 |
assertTrue("Not extend restrictions", RestrictionModifiers.isExtendRestriction(child.getRestrictions())); |
2616 |
assertTrue("Not extend restrictions", RestrictionModifiers.isExtendRestriction(child.getCurrentRestrictions())); |
| 2617 |
assertEquals("Wrong flag", IDelta.FIELD, child.getFlags()); |
2617 |
assertEquals("Wrong flag", IDelta.FIELD, child.getFlags()); |
| 2618 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
2618 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
| 2619 |
assertFalse("Is compatible", DeltaProcessor.isCompatible(child)); |
2619 |
assertFalse("Is compatible", DeltaProcessor.isCompatible(child)); |
|
Lines 2637-2643
Link Here
|
| 2637 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
2637 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
| 2638 |
IDelta child = allLeavesDeltas[0]; |
2638 |
IDelta child = allLeavesDeltas[0]; |
| 2639 |
assertEquals("Wrong kind", IDelta.REMOVED, child.getKind()); |
2639 |
assertEquals("Wrong kind", IDelta.REMOVED, child.getKind()); |
| 2640 |
assertTrue("Not extend restrictions", RestrictionModifiers.isExtendRestriction(child.getRestrictions())); |
2640 |
assertTrue("Not extend restrictions", RestrictionModifiers.isExtendRestriction(child.getCurrentRestrictions())); |
| 2641 |
assertEquals("Wrong flag", IDelta.METHOD, child.getFlags()); |
2641 |
assertEquals("Wrong flag", IDelta.METHOD, child.getFlags()); |
| 2642 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
2642 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
| 2643 |
assertFalse("Is compatible", DeltaProcessor.isCompatible(child)); |
2643 |
assertFalse("Is compatible", DeltaProcessor.isCompatible(child)); |
|
Lines 2660-2666
Link Here
|
| 2660 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
2660 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
| 2661 |
IDelta child = allLeavesDeltas[0]; |
2661 |
IDelta child = allLeavesDeltas[0]; |
| 2662 |
assertEquals("Wrong kind", IDelta.REMOVED, child.getKind()); |
2662 |
assertEquals("Wrong kind", IDelta.REMOVED, child.getKind()); |
| 2663 |
assertTrue("Not extend restrictions", RestrictionModifiers.isExtendRestriction(child.getRestrictions())); |
2663 |
assertTrue("Not extend restrictions", RestrictionModifiers.isExtendRestriction(child.getCurrentRestrictions())); |
| 2664 |
assertEquals("Wrong flag", IDelta.CONSTRUCTOR, child.getFlags()); |
2664 |
assertEquals("Wrong flag", IDelta.CONSTRUCTOR, child.getFlags()); |
| 2665 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
2665 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
| 2666 |
assertFalse("Is compatible", DeltaProcessor.isCompatible(child)); |
2666 |
assertFalse("Is compatible", DeltaProcessor.isCompatible(child)); |
|
Lines 2683-2690
Link Here
|
| 2683 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
2683 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
| 2684 |
IDelta child = allLeavesDeltas[0]; |
2684 |
IDelta child = allLeavesDeltas[0]; |
| 2685 |
assertEquals("Wrong kind", IDelta.REMOVED, child.getKind()); |
2685 |
assertEquals("Wrong kind", IDelta.REMOVED, child.getKind()); |
| 2686 |
assertTrue("Not extend restrictions", RestrictionModifiers.isExtendRestriction(child.getRestrictions())); |
2686 |
assertTrue("Not extend restrictions", RestrictionModifiers.isExtendRestriction(child.getCurrentRestrictions())); |
| 2687 |
assertTrue("Not instantiate restrictions", RestrictionModifiers.isInstantiateRestriction(child.getRestrictions())); |
2687 |
assertTrue("Not instantiate restrictions", RestrictionModifiers.isInstantiateRestriction(child.getCurrentRestrictions())); |
| 2688 |
assertEquals("Wrong flag", IDelta.CONSTRUCTOR, child.getFlags()); |
2688 |
assertEquals("Wrong flag", IDelta.CONSTRUCTOR, child.getFlags()); |
| 2689 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
2689 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
| 2690 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
2690 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
|
Lines 2707-2714
Link Here
|
| 2707 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
2707 |
assertEquals("Wrong size", 1, allLeavesDeltas.length); |
| 2708 |
IDelta child = allLeavesDeltas[0]; |
2708 |
IDelta child = allLeavesDeltas[0]; |
| 2709 |
assertEquals("Wrong kind", IDelta.REMOVED, child.getKind()); |
2709 |
assertEquals("Wrong kind", IDelta.REMOVED, child.getKind()); |
| 2710 |
assertFalse("Is extend restrictions", RestrictionModifiers.isExtendRestriction(child.getRestrictions())); |
2710 |
assertFalse("Is extend restrictions", RestrictionModifiers.isExtendRestriction(child.getCurrentRestrictions())); |
| 2711 |
assertTrue("Not instantiate restrictions", RestrictionModifiers.isInstantiateRestriction(child.getRestrictions())); |
2711 |
assertTrue("Not instantiate restrictions", RestrictionModifiers.isInstantiateRestriction(child.getCurrentRestrictions())); |
| 2712 |
assertEquals("Wrong flag", IDelta.CONSTRUCTOR, child.getFlags()); |
2712 |
assertEquals("Wrong flag", IDelta.CONSTRUCTOR, child.getFlags()); |
| 2713 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
2713 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
| 2714 |
assertFalse("Is compatible", DeltaProcessor.isCompatible(child)); |
2714 |
assertFalse("Is compatible", DeltaProcessor.isCompatible(child)); |
|
Lines 3024-3030
Link Here
|
| 3024 |
IDelta child = allLeavesDeltas[0]; |
3024 |
IDelta child = allLeavesDeltas[0]; |
| 3025 |
assertEquals("Wrong kind", IDelta.CHANGED, child.getKind()); |
3025 |
assertEquals("Wrong kind", IDelta.CHANGED, child.getKind()); |
| 3026 |
assertEquals("Wrong flag", IDelta.DECREASE_ACCESS, child.getFlags()); |
3026 |
assertEquals("Wrong flag", IDelta.DECREASE_ACCESS, child.getFlags()); |
| 3027 |
assertTrue("No @noextend restriction", RestrictionModifiers.isExtendRestriction(child.getRestrictions())); |
3027 |
assertTrue("No @noextend restriction", RestrictionModifiers.isExtendRestriction(child.getCurrentRestrictions())); |
| 3028 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
3028 |
assertEquals("Wrong element type", IDelta.CLASS_ELEMENT_TYPE, child.getElementType()); |
| 3029 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
3029 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
| 3030 |
} |
3030 |
} |
|
Lines 3308-3314
Link Here
|
| 3308 |
IDelta child = allLeavesDeltas[0]; |
3308 |
IDelta child = allLeavesDeltas[0]; |
| 3309 |
assertEquals("Wrong kind", IDelta.CHANGED, child.getKind()); |
3309 |
assertEquals("Wrong kind", IDelta.CHANGED, child.getKind()); |
| 3310 |
assertEquals("Wrong flag", IDelta.DECREASE_ACCESS, child.getFlags()); |
3310 |
assertEquals("Wrong flag", IDelta.DECREASE_ACCESS, child.getFlags()); |
| 3311 |
assertTrue("No @noextend restriction", RestrictionModifiers.isExtendRestriction(child.getRestrictions())); |
3311 |
assertTrue("No @noextend restriction", RestrictionModifiers.isExtendRestriction(child.getCurrentRestrictions())); |
| 3312 |
assertEquals("Wrong element type", IDelta.ANNOTATION_ELEMENT_TYPE, child.getElementType()); |
3312 |
assertEquals("Wrong element type", IDelta.ANNOTATION_ELEMENT_TYPE, child.getElementType()); |
| 3313 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
3313 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
| 3314 |
} |
3314 |
} |
|
Lines 3330-3336
Link Here
|
| 3330 |
IDelta child = allLeavesDeltas[0]; |
3330 |
IDelta child = allLeavesDeltas[0]; |
| 3331 |
assertEquals("Wrong kind", IDelta.CHANGED, child.getKind()); |
3331 |
assertEquals("Wrong kind", IDelta.CHANGED, child.getKind()); |
| 3332 |
assertEquals("Wrong flag", IDelta.DECREASE_ACCESS, child.getFlags()); |
3332 |
assertEquals("Wrong flag", IDelta.DECREASE_ACCESS, child.getFlags()); |
| 3333 |
assertTrue("No @noextend restriction", RestrictionModifiers.isExtendRestriction(child.getRestrictions())); |
3333 |
assertTrue("No @noextend restriction", RestrictionModifiers.isExtendRestriction(child.getCurrentRestrictions())); |
| 3334 |
assertEquals("Wrong element type", IDelta.INTERFACE_ELEMENT_TYPE, child.getElementType()); |
3334 |
assertEquals("Wrong element type", IDelta.INTERFACE_ELEMENT_TYPE, child.getElementType()); |
| 3335 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
3335 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
| 3336 |
} |
3336 |
} |
|
Lines 3352-3358
Link Here
|
| 3352 |
IDelta child = allLeavesDeltas[0]; |
3352 |
IDelta child = allLeavesDeltas[0]; |
| 3353 |
assertEquals("Wrong kind", IDelta.CHANGED, child.getKind()); |
3353 |
assertEquals("Wrong kind", IDelta.CHANGED, child.getKind()); |
| 3354 |
assertEquals("Wrong flag", IDelta.DECREASE_ACCESS, child.getFlags()); |
3354 |
assertEquals("Wrong flag", IDelta.DECREASE_ACCESS, child.getFlags()); |
| 3355 |
assertTrue("No @noextend restriction", RestrictionModifiers.isExtendRestriction(child.getRestrictions())); |
3355 |
assertTrue("No @noextend restriction", RestrictionModifiers.isExtendRestriction(child.getCurrentRestrictions())); |
| 3356 |
assertEquals("Wrong element type", IDelta.INTERFACE_ELEMENT_TYPE, child.getElementType()); |
3356 |
assertEquals("Wrong element type", IDelta.INTERFACE_ELEMENT_TYPE, child.getElementType()); |
| 3357 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
3357 |
assertTrue("Not compatible", DeltaProcessor.isCompatible(child)); |
| 3358 |
} |
3358 |
} |