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

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

Test of compareTo method, of class DependencyRule.

Definition at line 43 of file DependencyRuleTest.java.

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

                                {
        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.compareTo(servlet23) > 0);
        assertTrue(generic.compareTo(log4j12) > 0);
        assertTrue(servlet23.compareTo(log4j12) > 0);
        assertTrue(servlet23.compareTo(generic) < 0);
        assertTrue(log4j12.compareTo(servlet23) < 0);
        assertEquals(0, servlet23.compareTo(servlet23));
    }


Generated by  Doxygen 1.6.0   Back to index