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

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


            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


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