Examples of ConditionSX


Examples of org.jwall.web.audit.rules.operators.ConditionSX

    }

    @Before
    public void setUp() throws Exception
    {
        condition = new ConditionSX( "REQUEST_HEADERS:Host", "*.jwall.org" );
    }
View Full Code Here

Examples of org.jwall.web.audit.rules.operators.ConditionSX

    }
   
    @Test
    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" ) );
    }
View Full Code Here

Examples of org.jwall.web.audit.rules.operators.ConditionSX

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