Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jbpm.integration.console;
 
 import static org.junit.Assert.assertEquals;
 
 
 import org.junit.Test;
public class CommandDelegateTest extends JbpmTestCase{
	public void testGetProcesses() {
		assertEquals("Minimal Process" ,.getProcesses().get(1).getName());
	}
	public void testGetProcess() {
		assertEquals("Minimal Process" ,.getProcess("Minimal").getName());
	}
	public void testGetProcessByName(){
		assertEquals("Minimal" ,.getProcessByName("Minimal Process").getId());
	}
	public void testRemoveProcess(){
	}	
	public void testStartInstance(){
		ProcessInstanceLog instance = .startProcess("Minimal"null);
		assertEquals("Minimal"instance.getProcessId());
	}
	public void testGetProcessInstanceLog() {
		ProcessInstanceLog instance = .startProcess("Minimal"null);
		assertEquals(instance.getId(), .getProcessInstanceLog(instance.getId() + "").getId());
	}
	public void testAbortProcessInstance(){
		HashMap<String,Objectvariables = new HashMap<StringObject>();
		variables.put("key""value");
		.startProcess("UserTask"variables);
	}
		HashMap<String,Objectvariables = new HashMap<StringObject>();
		variables.put("key""value");
		ProcessInstanceLog instance = .startProcess("UserTask"variables);
	}
		ProcessInstanceLog instance = .startProcess("UserTask"null);
		HashMap<String,ObjectnewVariables = new HashMap<StringObject>();
		newVariables.put("key""value2");
		.setProcessInstanceVariables(instance.getId() + ""newVariables);
		assertEquals(newVariables.getProcessInstanceVariables(instance.getId() + ""));
	}
	public void testSignalExecution(){
		//TODO Implement
	}
New to GrepCode? Check out our FAQ X