コード例 #1
0
 @Test
 public void testPomWithParent2() throws IOException, SAXException, ParserConfigurationException {
   DeployUnit du =
       MinimalPomParser.currentURL(
           getClass().getClassLoader().getResourceAsStream("inheritance2Pom.xml"));
   assertEquals("org.kevoree.library.java.helloworld", du.getName());
   assertEquals("org.kevoree.library.java", du.getGroupName());
   assertEquals("3.4.2-SNAPSHOT", du.getVersion());
 }
コード例 #2
0
 @Test
 public void testRegularPom() throws IOException, SAXException, ParserConfigurationException {
   DeployUnit du =
       MinimalPomParser.currentURL(
           getClass().getClassLoader().getResourceAsStream("simplePom.xml"));
   assertEquals("org.kevoree.library.java.sample.breakdown", du.getName());
   assertEquals("org.kevoree.library.java", du.getGroupName());
   assertEquals("1.0-SNAPSHOT", du.getVersion());
 }