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

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


    public void test() {
        try {
            AuditEvent event = reader.readNext();

            ConditionLT lt = new ConditionLT( ModSecurity.RULE_SEV, "3" );
           
            List<String> values = ValueExtractor.extractValues( ModSecurity.RULE_SEV, event );
            boolean matches = lt.matches( values );
            Assert.assertFalse( matches );
           
        } catch (Exception e) {
            e.printStackTrace();
            Assert.fail( e.getMessage() );
View Full Code Here


    public void testConditionLT()
    {
        try {
            log.info( "Testing  SEVERITY @lt 4" );
            log.info( "   event SEVERITY: " + ValueExtractor.extractValues( AuditEvent.SEVERITY, event ) );
            Condition c = new ConditionLT( "SEVERITY", "4" );
            if( ! c.matches( event ) )
                fail( "Failed to match ConditionLT on SEVERITY with value '4' !" );
        } catch (Exception e) {
            fail( "Error: " + e.getMessage() );
        }
    }
View Full Code Here

TOP

Related Classes of org.jwall.web.audit.rules.operators.ConditionLT

Copyright © 2018 www.massapicom. 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.