}
public void testImpliesPermission() throws Exception
{
String nullActions = null;
WebUserDataPermission p0 = new WebUserDataPermission("/", nullActions);
WebUserDataPermission p1 = new WebUserDataPermission("/", "GET");
assertTrue("p0.implies(p1)", p0.implies(p1));
p0 = new WebUserDataPermission("/", "");
assertTrue("p0.implies(p1)", p0.implies(p1));
p0 = new WebUserDataPermission("/", "GET");
assertTrue("p0.implies(p1)", p0.implies(p1));
p1 = new WebUserDataPermission("", "GET");
assertTrue("p0.implies(p1)", p0.implies(p1));
p0 = new WebUserDataPermission("/*", nullActions);
p1 = new WebUserDataPermission("/any", "GET");
assertTrue("p0.implies(p1)", p0.implies(p1));
p0 = new WebUserDataPermission("/*", "GET");
p1 = new WebUserDataPermission("/any", "GET");
assertTrue("p0.implies(p1)", p0.implies(p1));
p0 = new WebUserDataPermission("/any/*", "GET");
p1 = new WebUserDataPermission("/any", "GET");
assertTrue("p0.implies(p1)", p0.implies(p1));
p1 = new WebUserDataPermission("/any/", "GET");
assertTrue("p0.implies(p1)", p0.implies(p1));
p0 = new WebUserDataPermission("/any/more/*", "GET");
p1 = new WebUserDataPermission("/any/more/andsome", "GET");
assertTrue("p0.implies(p1)", p0.implies(p1));
p0 = new WebUserDataPermission("*.jsp", "POST,GET");
p1 = new WebUserDataPermission("/snoop.jsp", "GET,POST");
assertTrue("p0.implies(p1)", p0.implies(p1));
p1 = new WebUserDataPermission("/snoop.jsp", "GET,POST:NONE");
assertTrue("p0.implies(p1)", p0.implies(p1));
p0 = new WebUserDataPermission("*.jsp", "POST,GET,TRACE");
assertTrue("p0.implies(p1)", p0.implies(p1));
p0 = new WebUserDataPermission("/snoop.jsp", "POST,GET,TRACE");
assertTrue("p0.implies(p1)", p0.implies(p1));
p0 = new WebUserDataPermission("/:/secured.jsp:/unchecked.jsp:/excluded.jsp:/sslprotected.jsp", "POST,GET");
p1 = new WebUserDataPermission("/:/secured.jsp:/excluded.jsp:/sslprotected.jsp:/unchecked.jsp", "GET,POST");
assertTrue("p0.implies(p1)", p0.implies(p1));
p0 = new WebUserDataPermission("*.jsp", "POST,GET,TRACE:NONE");
p1 = new WebUserDataPermission("/snoop.jsp", "GET,POST");
assertTrue("p0.implies(p1)", p0.implies(p1));
p0 = new WebUserDataPermission("*.jsp", "POST,GET,TRACE:CONFIDENTIAL");
p1 = new WebUserDataPermission("/snoop.jsp", "GET,POST:CONFIDENTIAL");
assertTrue("p0.implies(p1)", p0.implies(p1));
}