@Test @Rollback(value = false) public void testUpdate() throws Exception, Throwable { String path = ProcessDefManagerTest.class.getClassLoader().getResource("graph.xml").getPath(); String value = FileUtils.readFileToString(new File(path)); ProcessDef def = processDefManager.getProcessDefById(2L); processDefManager.update(def, value); }
@Test @Rollback(value = false) public void testDeployDef() throws Exception, Throwable { // String // path=ProcessDefManagerTest.class.getClassLoader().getResource("graph.xml").getPath(); // String value= FileUtils.readFileToString(new File(path)); ProcessDef def = processDefManager.getProcessDefById(2L); processDefManager.deployed(def); }
@Test @Rollback(value = true) public void testDeployed() throws Exception, Throwable { ProcessDef processDef = processDefManager.getProcessDefById(1L); processDefManager.deployed(processDef); }