Package org.jwall.web.audit.rules.operators

Examples of org.jwall.web.audit.rules.operators.ConditionSX.matches()


    public void testNegateMatch() throws Exception {
        log.info( "Testing negation... " );
        ConditionSX neg = new ConditionSX( "", "!*.org" );
        ConditionSX neg2 = new ConditionSX( "", "!*.org" );
        Assert.assertFalse( neg.matches( "secure.jwall.org" ) );
        Assert.assertTrue( neg2.matches( "secure.jwall.com" ) );
    }

   
    @Test
    public void testNegateMatchNoWildcard() throws Exception {
View Full Code Here


   
    @Test
    public void testNegateMatchNoWildcard() throws Exception {
        log.info( "Testing wildcard-negation..." );
        ConditionSX sx = new ConditionSX( "", "!secure.jwall.org" );
        Assert.assertFalse( sx.matches( "secure.jwall.org" ) );
        Assert.assertTrue( sx.matches( "www.jwall.org" ) );
    }
}
View Full Code Here

    @Test
    public void testNegateMatchNoWildcard() throws Exception {
        log.info( "Testing wildcard-negation..." );
        ConditionSX sx = new ConditionSX( "", "!secure.jwall.org" );
        Assert.assertFalse( sx.matches( "secure.jwall.org" ) );
        Assert.assertTrue( sx.matches( "www.jwall.org" ) );
    }
}
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.