Logo Search packages:      
Sourcecode: maven-repo-helper version File versions

void org::debian::maven::repo::POMTransformerTest::testTransformMavenJavadocPluginPom (  )  throws Exception [inline]

Test of cleanPom method, of class POMCleaner.

Definition at line 43 of file POMTransformerTest.java.

References org::debian::maven::repo::POMTransformer::addDefaultRules(), org::debian::maven::repo::POMTransformer::addRule(), and org::debian::maven::repo::POMTransformer::transformPom().

                                                                      {
        usePom("maven-javadoc-plugin.xml");
        boolean noParent = true;
        POMTransformer instance = new POMTransformer();
        instance.addDefaultRules();
        instance.addRule(new DependencyRule("org.codehaus.modello modello-maven-plugin maven-plugin s/.*/1.0.1/"));
        instance.addRule(new DependencyRule("org.codehaus.mojo clirr-maven-plugin * *"));
        instance.addRule(new DependencyRule("org.apache.bcel bcel jar s/5\\..*/5.x/"));
        instance.addRule(new DependencyRule("* maven-plugin-plugin maven-plugin s/.*/2.5/"));
        instance.transformPom(pom, updatedPom, noParent, false, null, null);
        assertXMLEqual(read("maven-javadoc-plugin.transformed"), read(updatedPom));
    }


Generated by  Doxygen 1.6.0   Back to index