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

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


  public void setUp() throws Exception {
  }

  @Test
  public void testGetOperator() throws Exception {
    ConditionIN in = new ConditionIN( AuditEvent.SEVERITY, "3,4" );
    Assert.assertEquals( "@in", in.getOperator() );
  }
View Full Code Here


    Assert.assertEquals( "@in", in.getOperator() );
  }

  @Test
  public void testMatchesStringString() throws Exception {
    ConditionIN in = new ConditionIN( AuditEvent.SEVERITY, "3,4" );
    Assert.assertTrue( in.matches( "3,*jwall.org", "www.jwall.org" ) );
  }
View Full Code Here

  }


  @Test
  public void testInvertedMatche() throws Exception {
    ConditionIN in = new ConditionIN( AuditEvent.SEVERITY, "3,4" );
    Boolean b =  in.matches( "3,!*jwall.org", "www.jwall.org" );
    Assert.assertFalse( b );
  }
View Full Code Here

TOP

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

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.