Package org.apache.maven.surefire.group.match

Examples of org.apache.maven.surefire.group.match.GroupMatcher.enabled()


    public void testParseSingleClass()
        throws ParseException
    {
        GroupMatcher matcher = new GroupMatcherParser( GroupMatcherParser.class.getName() ).parse();
        assertTrue( "Wrong matcher type: " + matcher.getClass().getName(), matcher instanceof SingleGroupMatcher );
        assertTrue( matcher.enabled( GroupMatcherParser.class ) );
    }

    public void testParseInvertedSingleClass()
        throws ParseException
    {
View Full Code Here


    public void testParseInvertedSingleClass()
        throws ParseException
    {
        GroupMatcher matcher = new GroupMatcherParser( "NOT " + GroupMatcherParser.class.getName() ).parse();
        assertTrue( "Wrong matcher type: " + matcher.getClass().getName(), matcher instanceof InverseGroupMatcher );
        assertFalse( matcher.enabled( GroupMatcherParser.class ) );
    }

    public void testParseBareANDedPair()
        throws ParseException
    {
View Full Code Here

    {
        GroupMatcher matcher = new GroupMatcherParser(
            GroupMatcherParser.class.getName() + " AND " + SingleGroupMatcher.class.getName() ).parse();

        assertTrue( "Wrong matcher type: " + matcher.getClass().getName(), matcher instanceof AndGroupMatcher );
        assertFalse( matcher.enabled( GroupMatcherParser.class ) );
        assertTrue( matcher.enabled( GroupMatcherParser.class, SingleGroupMatcher.class ) );
    }

    public void testParseBareORedPair()
        throws ParseException
View Full Code Here

        GroupMatcher matcher = new GroupMatcherParser(
            GroupMatcherParser.class.getName() + " AND " + SingleGroupMatcher.class.getName() ).parse();

        assertTrue( "Wrong matcher type: " + matcher.getClass().getName(), matcher instanceof AndGroupMatcher );
        assertFalse( matcher.enabled( GroupMatcherParser.class ) );
        assertTrue( matcher.enabled( GroupMatcherParser.class, SingleGroupMatcher.class ) );
    }

    public void testParseBareORedPair()
        throws ParseException
    {
View Full Code Here

    {
        GroupMatcher matcher = new GroupMatcherParser(
            GroupMatcherParser.class.getName() + " OR " + SingleGroupMatcher.class.getName() ).parse();

        assertTrue( "Wrong matcher type: " + matcher.getClass().getName(), matcher instanceof OrGroupMatcher );
        assertTrue( matcher.enabled( GroupMatcherParser.class ) );
        assertTrue( matcher.enabled( GroupMatcherParser.class, SingleGroupMatcher.class ) );
    }

    public void testBareCommaSeparatedORedPair()
        throws ParseException
View Full Code Here

        GroupMatcher matcher = new GroupMatcherParser(
            GroupMatcherParser.class.getName() + " OR " + SingleGroupMatcher.class.getName() ).parse();

        assertTrue( "Wrong matcher type: " + matcher.getClass().getName(), matcher instanceof OrGroupMatcher );
        assertTrue( matcher.enabled( GroupMatcherParser.class ) );
        assertTrue( matcher.enabled( GroupMatcherParser.class, SingleGroupMatcher.class ) );
    }

    public void testBareCommaSeparatedORedPair()
        throws ParseException
    {
View Full Code Here

    {
        GroupMatcher matcher = new GroupMatcherParser(
            GroupMatcherParser.class.getName() + ", " + SingleGroupMatcher.class.getName() ).parse();

        assertTrue( "Wrong matcher type: " + matcher.getClass().getName(), matcher instanceof OrGroupMatcher );
        assertTrue( matcher.enabled( GroupMatcherParser.class ) );
        assertTrue( matcher.enabled( GroupMatcherParser.class, SingleGroupMatcher.class ) );
    }

    public void testParseGroupedANDedPair()
        throws ParseException
View Full Code Here

        GroupMatcher matcher = new GroupMatcherParser(
            GroupMatcherParser.class.getName() + ", " + SingleGroupMatcher.class.getName() ).parse();

        assertTrue( "Wrong matcher type: " + matcher.getClass().getName(), matcher instanceof OrGroupMatcher );
        assertTrue( matcher.enabled( GroupMatcherParser.class ) );
        assertTrue( matcher.enabled( GroupMatcherParser.class, SingleGroupMatcher.class ) );
    }

    public void testParseGroupedANDedPair()
        throws ParseException
    {
View Full Code Here

    {
        GroupMatcher matcher = new GroupMatcherParser(
            "(" + GroupMatcherParser.class.getName() + " AND " + SingleGroupMatcher.class.getName() + ")" ).parse();

        assertTrue( "Wrong matcher type: " + matcher.getClass().getName(), matcher instanceof AndGroupMatcher );
        assertFalse( matcher.enabled( GroupMatcherParser.class ) );
        assertTrue( matcher.enabled( GroupMatcherParser.class, SingleGroupMatcher.class ) );
    }

    public void testParseGroupedORedPair()
        throws ParseException
View Full Code Here

        GroupMatcher matcher = new GroupMatcherParser(
            "(" + GroupMatcherParser.class.getName() + " AND " + SingleGroupMatcher.class.getName() + ")" ).parse();

        assertTrue( "Wrong matcher type: " + matcher.getClass().getName(), matcher instanceof AndGroupMatcher );
        assertFalse( matcher.enabled( GroupMatcherParser.class ) );
        assertTrue( matcher.enabled( GroupMatcherParser.class, SingleGroupMatcher.class ) );
    }

    public void testParseGroupedORedPair()
        throws ParseException
    {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.