actions.equals("methodX,ServiceEndpoint,int"));
}
public void testImpliesPermission() throws Exception
{
EJBMethodPermission p0 = new EJBMethodPermission("someEJB", null);
EJBMethodPermission p1 = new EJBMethodPermission("someEJB", "methodX");
assertTrue("p0.implies(p1)", p0.implies(p1));
p0 = new EJBMethodPermission("someEJB", "methodX");
assertTrue("p0.implies(p1)", p0.implies(p1));
p0 = new EJBMethodPermission("someEJB", null);
p1 = new EJBMethodPermission("someEJB", "methodX,Remote");
assertTrue("p0.implies(p1)", p0.implies(p1));
p1 = new EJBMethodPermission("someEJB", "methodX,Remote,");
assertTrue("p0.implies(p1)", p0.implies(p1));
p0 = new EJBMethodPermission("someEJB", "methodX");
assertTrue("p0.implies(p1)", p0.implies(p1));
p0 = new EJBMethodPermission("someEJB", "methodX,Remote");
assertTrue("p0.implies(p1)", p0.implies(p1));
p0 = new EJBMethodPermission("someEJB", null);
p1 = new EJBMethodPermission("someEJB", "methodX,Local,int,java.lang.String");
assertTrue("p0.implies(p1)", p0.implies(p1));
p0 = new EJBMethodPermission("someEJB", "methodX");
assertTrue("p0.implies(p1)", p0.implies(p1));
p0 = new EJBMethodPermission("someEJB", "methodX,,int,java.lang.String");
assertTrue("p0.implies(p1)", p0.implies(p1));
p0 = new EJBMethodPermission("someEJB", "methodX,Local");
assertTrue("p0.implies(p1)", p0.implies(p1));
p0 = new EJBMethodPermission("someEJB", ",,int,java.lang.String");
assertTrue("p0.implies(p1)", p0.implies(p1));
p0 = new EJBMethodPermission("someEJB", "methodX,Local,int,java.lang.String");
assertTrue("p0.implies(p1)", p0.implies(p1));
p0 = new EJBMethodPermission("someEJB", "methodX,Local,int,java.lang.String");
assertTrue("p0.implies(p1)", p0.implies(p1));
p0 = new EJBMethodPermission("someEJB", "methodX");
p1 = new EJBMethodPermission("someEJB", "methodX,,");
assertTrue("p0.implies(p1)", p0.implies(p1));
p0 = new EJBMethodPermission("ejbName", null, null, new String[0]);
p1 = new EJBMethodPermission("ejbName", "create", dummyInterface.class.getMethods()[0]);
assertTrue("p0.implies(p1)", p0.implies(p1));
}