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

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


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

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

    public void testParseInvertedGroupedORedPair()
        throws ParseException
View Full Code Here


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

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

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

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

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

    public void testSingleMatchWhenDotClassAppended()
        throws ParseException
View Full Code Here

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

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

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

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

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

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

}
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.