Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
View | Details | Raw Unified | Return to bug 149071 | Differences between
and this patch

Collapse All | Expand All

(-)autoupdate.services/test/unit/src/org/netbeans/modules/autoupdate/updateprovider/AutoupdateCatalogParserTest.java (-1 / +10 lines)
 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 () {
(-)autoupdate.services/test/unit/src/org/netbeans/modules/autoupdate/updateprovider/data/catalog.xml (-1 / +8 lines)
 Lines 1-6    Link Here 
1
<?xml version="1.0" encoding="UTF-8" ?>
1
<?xml version="1.0" encoding="UTF-8" ?>
2
2
3
<!DOCTYPE module_updates PUBLIC "-//NetBeans//DTD Autoupdate Catalog 2.5//EN" "http://www.netbeans.org/dtds/autoupdate-catalog-2_5.dtd">
3
<!DOCTYPE module_updates PUBLIC "-//NetBeans//DTD Autoupdate Catalog 2.6//EN" "http://www.netbeans.org/dtds/autoupdate-catalog-2_6.dtd">
4
<module_updates timestamp="08/08/08/08/08/2008">
4
<module_updates timestamp="08/08/08/08/08/2008">
5
    
5
    
6
<notification url="http://plugins.netbeans.org/tests">Important thing!</notification>
6
<notification url="http://plugins.netbeans.org/tests">Important thing!</notification>
 Lines 27-37    Link Here 
27
    
27
    
28
</module>
28
</module>
29
29
30
<module codenamebase="org.netbeans.test.license.cddl.url" distribution="org-netbeans-test-license-cddl-url.nbm" downloadsize="2652" homepage="" license="cddl.txt" moduleauthor="" needsrestart="false">
31
    <manifest AutoUpdate-Show-In-Client="true" OpenIDE-Module="org.netbeans.test.license.url" OpenIDE-Module-Display-Category="Debugging" OpenIDE-Module-Implementation-Version="090311" OpenIDE-Module-Java-Dependencies="Java &gt; 1.5" OpenIDE-Module-Long-Description="Must to check license url attribute" OpenIDE-Module-Name="Visible Plugin" OpenIDE-Module-Requires="org.openide.modules.ModuleFormat1" OpenIDE-Module-Short-Description="Plugin with licence url set" OpenIDE-Module-Specification-Version="1.0"/>
32
33
</module>
34
30
</module_group>
35
</module_group>
31
36
32
<license name="strict-testament">I will never write tests.
37
<license name="strict-testament">I will never write tests.
33
</license>
38
</license>
34
<license name="kind-testament">I will make documentation sometime.
39
<license name="kind-testament">I will make documentation sometime.
35
</license>
40
</license>
41
<license name="cddl.txt" url="http://www.netbeans.org/cddl.txt"/>
42
36
</module_updates>
43
</module_updates>
37
44

Return to bug 149071
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo