Code example for Properties

Methods: getgetPropertyload

0
        WeldServletDeploymentAppender appender = new WeldServletDeploymentAppender();
        Archive<?> archive = appender.createAuxiliaryArchive();
        Assert.assertEquals("weld-servlet-1.1.0.Final.jar", archive.getName());
        Assert.assertTrue(archive.contains("META-INF/web-fragment.xml"));
        Assert.assertTrue(archive.contains("META-INF/maven/org.jboss.weld.servlet/weld-servlet/pom.properties"));
        Properties props = new Properties();
        props.load(archive.get("META-INF/maven/org.jboss.weld.servlet/weld-servlet/pom.properties").getAsset().openStream());
        Assert.assertEquals("org.jboss.weld.servlet", props.getProperty("groupId"));
        Assert.assertEquals("weld-servlet", props.get("artifactId"));
    } 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE