Package de.scoopgmbh.copper.common

Examples of de.scoopgmbh.copper.common.WorkflowRepository


  @Test
  public void testFindLatest() throws Exception {
    final ConfigurableApplicationContext context = new ClassPathXmlApplicationContext(new String[] {"transient-engine-application-context.xml", "SimpleTransientEngineTest-application-context.xml"});
    try {
      final WorkflowRepository repo = context.getBean(WorkflowRepository.class);
      WorkflowVersion v = repo.findLatestMajorVersion(VersionTestWorkflowDef.NAME, 9);
      assertEquals(new WorkflowVersion(9, 3, 1), v);
     
      v = repo.findLatestMinorVersion(VersionTestWorkflowDef.NAME, 9, 1);
      assertEquals(new WorkflowVersion(9, 1, 1), v);
    }
    finally {
      context.close();
    }
View Full Code Here

TOP

Related Classes of de.scoopgmbh.copper.common.WorkflowRepository

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.