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

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


  @Test
  public void testMatches() {
    try {
      AuditEventRule rule = new AuditEventRule();
      rule.add(new ConditionRX("SEVERITY", "^4$"));

      boolean matches = rule.matches(event, null);
      log.info(" rule matches??: " + matches);

    } catch (Exception e) {
View Full Code Here


    @Test
    public void testMatches()
    {
        try {
            AuditEventRule rule = new AuditEventRule();
            rule.add( new ConditionRX( "SEVERITY", "^4$" ) );

            boolean matches = rule.matches( event, null );
            log.info( " rule matches??: " + matches );

        } catch (Exception e) {
View Full Code Here

    {
        try {
            log.info( "Testing  SEVERITY @rx ^\\d$" );
            String val = event.get( "SEVERITY" );
            log.info( "  event.get('SEVERITY') = " + val );
            Condition c = new ConditionRX( "SEVERITY", "^\\d$" );
            if( ! c.matches( event ) )
                fail( "Failed to match ConditionRX on SEVERITY with value '^\\d$' !" );
        } catch (Exception e) {
            fail( "Error: " + e.getMessage() );
        }
    }
View Full Code Here

TOP

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

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.