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

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

Test of cleanPom method, of class POMCleaner.

Definition at line 16 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.xml");
        boolean noParent = true;
        POMTransformer instance = new POMTransformer();
        instance.addDefaultRules();
        instance.addRule(new DependencyRule("org.codehaus.plexus plexus-container-default jar s/1\\.0-alpha-.*/1.0-alpha/"));
        instance.addRule(new DependencyRule("org.apache.maven.plugins maven-assembly-plugin maven-plugin s/.*/2.2/"));
        instance.transformPom(pom, updatedPom, noParent, false, null, null);
        assertXMLEqual(read("maven.transformed"), read(updatedPom));
    }


Generated by  Doxygen 1.6.0   Back to index