Lines 74-80
Link Here
|
74 |
|
74 |
|
75 |
public void testGetItems () { |
75 |
public void testGetItems () { |
76 |
assertNotNull ("UpdateItems found " + URL_TO_TEST_CATALOG, updateItems); |
76 |
assertNotNull ("UpdateItems found " + URL_TO_TEST_CATALOG, updateItems); |
77 |
assertEquals ("3 items found.", 3, updateItems.keySet ().size ()); |
77 |
assertEquals ("4 items found.", 4, updateItems.keySet ().size ()); |
78 |
} |
78 |
} |
79 |
|
79 |
|
80 |
public void testLicenses () { |
80 |
public void testLicenses () { |
Lines 85-90
Link Here
|
85 |
assertNotNull (mi + " has license.", mi.getAgreement ()); |
85 |
assertNotNull (mi + " has license.", mi.getAgreement ()); |
86 |
assertFalse (mi + " has non-empty license.", mi.getAgreement ().length () == 0); |
86 |
assertFalse (mi + " has non-empty license.", mi.getAgreement ().length () == 0); |
87 |
} |
87 |
} |
|
|
88 |
} |
89 |
|
90 |
public void testLicenseUrlCDDL() { |
91 |
UpdateItem item = updateItems.get("org.netbeans.test.license.cddl.url_1.0"); |
92 |
UpdateItemImpl impl = Trampoline.SPI.impl(item); |
93 |
assertTrue("UpdateItemImpl " + impl + " instanceof ModuleItem.", impl instanceof ModuleItem); |
94 |
ModuleItem mi = (ModuleItem) impl; |
95 |
assertNotNull(mi + " has license.", mi.getAgreement()); |
96 |
assertTrue(mi + " has non-cddl license.", mi.getAgreement().startsWith("COMMON DEVELOPMENT AND DISTRIBUTION LICENSE")); |
88 |
} |
97 |
} |
89 |
|
98 |
|
90 |
public void testVisiblePlugin () { |
99 |
public void testVisiblePlugin () { |