Package org.netbeans.server.uihandler.statistics.WebProjects

Examples of org.netbeans.server.uihandler.statistics.WebProjects.WebProjectItem


        assertEquals("SERVER:tomcat", new Integer(3), joined.get(WebProjectItem.newServer("tomcat")));
        assertEquals("SERVER:glassfish", new Integer(3), joined.get(WebProjectItem.newServer("glassfish")));
    }

    public void testWebProjectItems() {
        WebProjectItem item = new WebProjectItem("SERVER:glassfish");
        WebProjectItem item2 = new WebProjectItem("SERVER:glassfish");
        WebProjectItem item3 = WebProjectItem.newServer("glassfish");
        WebProjectItem item4 = WebProjectItem.newServer("tomcat");
        assertEquals(item, item2);
        assertEquals(item.hashCode(), item2.hashCode());
        assertEquals(item, item3);
        assertEquals(item.hashCode(), item3.hashCode());
        assertEquals(WebProjectItem.Type.SERVER, item.getType());
        assertNotSame(item, item4);
        assertEquals("glassfish", item.getName());
        item = new WebProjectItem("FRAMEWORK:Spring Framework 2.5");
        assertEquals(WebProjectItem.Type.FRAMEWORK, item.getType());
        assertEquals("Spring Framework 2.5", item.getName());
    }
View Full Code Here


        assertEquals(WebProjectItem.Type.FRAMEWORK, item.getType());
        assertEquals("Spring Framework 2.5", item.getName());
    }

    public void testLongName(){
        WebProjectItem item = new WebProjectItem("FRAMEWORK:org.netbeans.modules.web.frameworks.facelets.FaceletsFrameworkProvider");
        assertTrue(item.toString().length() < Preferences.MAX_KEY_LENGTH);
    }
View Full Code Here

TOP

Related Classes of org.netbeans.server.uihandler.statistics.WebProjects.WebProjectItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.