Package com.opensymphony.module.propertyset.memory

Examples of com.opensymphony.module.propertyset.memory.MemoryPropertySet


  public void testPassesCondition() throws Exception {
    AcegiRoleCondition condition = new AcegiRoleCondition();

    Map transientVars = new HashMap();
    Map args = new HashMap();
    PropertySet ps = new MemoryPropertySet();

    args.put(AcegiRoleCondition.ROLE, "manager");
    assertTrue("Should be in manager role", condition.passesCondition(transientVars, args, ps));

    args.put(AcegiRoleCondition.ROLE, "vp");
View Full Code Here


  public void testWithRoleArg() throws Exception {
    AcegiRoleCondition condition = new AcegiRoleCondition();

    try {
      condition.passesCondition(new HashMap(), new HashMap(), new MemoryPropertySet());
      fail("Should not be able to test with ROLE attribute");
    } catch(WorkflowException ex) {
      // success
    }
  }
View Full Code Here

TOP

Related Classes of com.opensymphony.module.propertyset.memory.MemoryPropertySet

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.