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

void org::debian::maven::repo::DependencyRuleTest::testMatches (  )  [inline]

Test of matches method, of class DependencyRule.

Definition at line 19 of file DependencyRuleTest.java.

References org::debian::maven::repo::DependencyRule::matches().

                              {
        Dependency dependency = new Dependency("javax.servlet", "servlet-api", "jar", "2.3");
        DependencyRule generic = new DependencyRule("");
        DependencyRule servlet23 = new DependencyRule("javax.servlet * * 2.3");
        DependencyRule log4j12 = new DependencyRule("log4j log4j jar s/1\\.2\\..*/1.2.x/");
        assertTrue(generic.matches(dependency));
        assertTrue(servlet23.matches(dependency));
        assertFalse(log4j12.matches(dependency));
    }


Generated by  Doxygen 1.6.0   Back to index