Package org.apache.wookie.proxy

Examples of org.apache.wookie.proxy.Policy


    assertEquals(0,policy.allows(new URI("ftp://test.apache.org")))
  }
 
  @Test
  public void equalsTest() throws PolicyFormatException{
    Policy policy = new Policy("* http://test.apache.org ALLOW");
    Policy policy2 = new Policy("* http://test.apache.org ALLOW");
    assertEquals(policy,policy2);
    assertTrue(policy.equals(policy2));
   
  }
View Full Code Here


   
  }

  @Test
  public void unequalTest() throws PolicyFormatException{
    Policy policy = new Policy("* http://test.apache.org ALLOW");
    Object policy2 = new String("* http://test.apache.org ALLOW");
    assertFalse(policy.equals(policy2));
  }
View Full Code Here

TOP

Related Classes of org.apache.wookie.proxy.Policy

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.