Package net.sf.jportlet.portlet.descriptor

Examples of net.sf.jportlet.portlet.descriptor.ApplicationDescriptorLoaderXml.load()


    {
        String                         path = "net/sf/jportlet/descriptor/test/portlet.xml";
        InputStream                    in = getClass(  ).getClassLoader(  ).getResourceAsStream( path );

        ApplicationDescriptorLoaderXml loader = new ApplicationDescriptorLoaderXml(  );
        ApplicationDescriptor          app = loader.load( in );

        assertNotNull( "app", app );
        assertEquals( "app.name", "Portlet Application", app.getName(  ) );
        assertEquals( "app.contextParameter[param1]", "value1", app.getContextParameter( "param1" ) );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.