Package com.opensymphony.workflow.spi

Examples of com.opensymphony.workflow.spi.WorkflowStore


*/
public class ConfigurationBeanTests extends TestCase {

  public void testGetDefaultStore() throws Exception {
    ConfigurationBean bean = new ConfigurationBean();
    WorkflowStore store = bean.getWorkflowStore();

    assertNotNull("Default WorkflowStore should not be null", store);
    assertEquals("Incorrect default store type", MemoryWorkflowStore.class, store.getClass());
  }
View Full Code Here


  public void testGetCustomStore() throws Exception {
    ConfigurationBean bean = new ConfigurationBean();
    bean.setPersistence(MockWorkflowStore.class.getName());

    WorkflowStore store = bean.getWorkflowStore();

    assertNotNull("Custom store should not be null", store);
    assertEquals("Incorrect store type", MockWorkflowStore.class, store.getClass());
  }
View Full Code Here

TOP

Related Classes of com.opensymphony.workflow.spi.WorkflowStore

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.