| Line 1682... |
Line 1682... |
| 1682 |
// test applyPV returns 2 and leaves mVersion alone - wince style limits
|
1682 |
// test applyPV returns 2 and leaves mVersion alone - wince style limits
|
| 1683 |
p = new Package(rm, "9.9.9000", 9, 9, 9, 0);
|
1683 |
p = new Package(rm, "9.9.9000", 9, 9, 9, 0);
|
| 1684 |
assertTrue(p.getId() == 2);
|
1684 |
assertTrue(p.getId() == 2);
|
| 1685 |
assertTrue(p.getVersion().compareTo("9.9.9000") == 0);
|
1685 |
assertTrue(p.getVersion().compareTo("9.9.9000") == 0);
|
| 1686 |
|
1686 |
|
| 1687 |
// test applyPV returns 0 and sets mVersion from 8.8.8000 to 8.8.9000
|
1687 |
// test applyPV returns 0 and sets mNextVersion from 8.8.8000 to 8.8.9000 and does not change mVersion
|
| 1688 |
p = new Package(rm, "8.8.8000", 9, 9, 9, 0);
|
1688 |
p = new Package(rm, "8.8.8000", 9, 9, 9, 0);
|
| 1689 |
assertTrue(p.getId() == 0);
|
1689 |
assertTrue(p.getId() == 0);
|
| 1690 |
assertTrue(p.getVersion().compareTo("8.8.9000") == 0);
|
1690 |
assertTrue(p.getVersion().compareTo("8.8.8000") == 0);
|
| - |
|
1691 |
assertTrue(p.getNextVersion().compareTo("8.8.9000") == 0);
|
| 1691 |
|
1692 |
|
| 1692 |
// test applyPV returns 0 and sets mVersion from 8.8.9000 to 8.9.0000
|
1693 |
// test applyPV returns 0 and sets mNextVersion from 8.8.9000 to 8.9.0000
|
| 1693 |
p = new Package(rm, "8.8.9000", 9, 9, 9, 0);
|
1694 |
p = new Package(rm, "8.8.9000", 9, 9, 9, 0);
|
| 1694 |
assertTrue(p.getId() == 0);
|
1695 |
assertTrue(p.getId() == 0);
|
| 1695 |
assertTrue(p.getVersion().compareTo("8.9.0000") == 0);
|
1696 |
assertTrue(p.getVersion().compareTo("8.8.9000") == 0);
|
| - |
|
1697 |
assertTrue(p.getNextVersion().compareTo("8.9.0000") == 0);
|
| 1696 |
|
1698 |
|
| 1697 |
// test applyPV returns 0 and sets mVersion from 8.9.9000 to 9.0.0000
|
1699 |
// test applyPV returns 0 and sets mNextVersion from 8.9.9000 to 9.0.0000
|
| 1698 |
p = new Package(rm, "8.9.9000", 9, 9, 9, 0);
|
1700 |
p = new Package(rm, "8.9.9000", 9, 9, 9, 0);
|
| 1699 |
assertTrue(p.getId() == 0);
|
1701 |
assertTrue(p.getId() == 0);
|
| 1700 |
assertTrue(p.getVersion().compareTo("9.0.0000") == 0);
|
1702 |
assertTrue(p.getVersion().compareTo("8.9.9000") == 0);
|
| - |
|
1703 |
assertTrue(p.getNextVersion().compareTo("9.0.0000") == 0);
|
| 1701 |
|
1704 |
|
| 1702 |
// test applyPV returns 2 and leaves mVersion alone - mos style limits
|
1705 |
// test applyPV returns 2 and leaves mVersion alone - mos style limits
|
| 1703 |
p = new Package(rm, "99.99.0000", 99, 99, 0, 0);
|
1706 |
p = new Package(rm, "99.99.0000", 99, 99, 0, 0);
|
| 1704 |
assertTrue(p.getId() == 2);
|
1707 |
assertTrue(p.getId() == 2);
|
| 1705 |
assertTrue(p.getVersion().compareTo("99.99.0000") == 0);
|
1708 |
assertTrue(p.getVersion().compareTo("99.99.0000") == 0);
|
| 1706 |
|
1709 |
|
| 1707 |
// test applyPV returns 0 and sets mVersion from 98.98.0000 to 98.99.0000
|
1710 |
// test applyPV returns 0 and sets mNextVersion from 98.98.0000 to 98.99.0000
|
| 1708 |
p = new Package(rm, "98.98.0000", 99, 99, 0, 0);
|
1711 |
p = new Package(rm, "98.98.0000", 99, 99, 0, 0);
|
| 1709 |
assertTrue(p.getId() == 0);
|
1712 |
assertTrue(p.getId() == 0);
|
| 1710 |
assertTrue(p.getVersion().compareTo("98.99.0000") == 0);
|
1713 |
assertTrue(p.getVersion().compareTo("98.98.0000") == 0);
|
| - |
|
1714 |
assertTrue(p.getNextVersion().compareTo("98.99.0000") == 0);
|
| 1711 |
|
1715 |
|
| 1712 |
// test applyPV returns 0 and sets mVersion from 98.99.0000 to 99.0.0000
|
1716 |
// test applyPV returns 0 and sets mNextVersion from 98.99.0000 to 99.0.0000
|
| 1713 |
p = new Package(rm, "98.99.0000", 99, 99, 0, 0);
|
1717 |
p = new Package(rm, "98.99.0000", 99, 99, 0, 0);
|
| 1714 |
assertTrue(p.getId() == 0);
|
1718 |
assertTrue(p.getId() == 0);
|
| 1715 |
assertTrue(p.getVersion().compareTo("99.0.0000") == 0);
|
1719 |
assertTrue(p.getVersion().compareTo("98.99.0000") == 0);
|
| - |
|
1720 |
assertTrue(p.getNextVersion().compareTo("99.0.0000") == 0);
|
| 1716 |
|
1721 |
|
| 1717 |
}
|
1722 |
}
|
| 1718 |
|
1723 |
|
| 1719 |
/**
|
1724 |
/**
|
| 1720 |
* test method designed to ripple of COTS packages
|
1725 |
* test method designed to ripple of COTS packages
|
| Line 1733... |
Line 1738... |
| 1733 |
assertTrue(p.getVersion().compareTo("willNotRipple") == 0);
|
1738 |
assertTrue(p.getVersion().compareTo("willNotRipple") == 0);
|
| 1734 |
|
1739 |
|
| 1735 |
mLogger.debug("TestCotsRipples: willRipple.0000.cots");
|
1740 |
mLogger.debug("TestCotsRipples: willRipple.0000.cots");
|
| 1736 |
p = new Package(rm, "willRipple.0000.cots", 255, 255, 255, 255);
|
1741 |
p = new Package(rm, "willRipple.0000.cots", 255, 255, 255, 255);
|
| 1737 |
assertTrue(p.getId() == 0);
|
1742 |
assertTrue(p.getId() == 0);
|
| 1738 |
assertTrue(p.getVersion().compareTo("willRipple.1000") == 0);
|
1743 |
assertTrue(p.getVersion().compareTo("willRipple.0000") == 0);
|
| - |
|
1744 |
assertTrue(p.getNextVersion().compareTo("willRipple.1000") == 0);
|
| 1739 |
|
1745 |
|
| 1740 |
mLogger.debug("TestCotsRipples: willNotRipple.000.cots");
|
1746 |
mLogger.debug("TestCotsRipples: willNotRipple.000.cots");
|
| 1741 |
p = new Package(rm, "willNotRipple.000.cots", 255, 255, 255, 255);
|
1747 |
p = new Package(rm, "willNotRipple.000.cots", 255, 255, 255, 255);
|
| 1742 |
assertTrue(p.getId() == 1);
|
1748 |
assertTrue(p.getId() == 1);
|
| 1743 |
assertTrue(p.getVersion().compareTo("willNotRipple.000") == 0);
|
1749 |
assertTrue(p.getVersion().compareTo("willNotRipple.000") == 0);
|