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

void org::debian::maven::repo::RuleTest::testIsGeneric (  )  [inline]

Test of apply method, of class Rule.

Definition at line 83 of file RuleTest.java.

                                {
        Rule simple = new Rule("test");
        assertFalse(simple.isGeneric());

        Rule simpleWithDot = new Rule("test.stuff");
        assertFalse(simpleWithDot.isGeneric());

        Rule simpleReplace = new Rule("s/test/foo/");
        assertFalse(simpleReplace.isGeneric());

        Rule complexReplace = new Rule("s/test(.*)/foo$1/");
        assertTrue(complexReplace.isGeneric());

        Rule complexReplace2 = new Rule("s/.*/debian/");
        assertTrue(complexReplace2.isGeneric());

        Rule generic = new Rule("*");
        assertTrue(generic.isGeneric());

        Rule generic2 = new Rule("test*");
        assertTrue(generic2.isGeneric());

    }


Generated by  Doxygen 1.6.0   Back to index