@IntegrationTest public class WorkflowCompatibleTest extends HybrisJUnit4TransactionalTest
jaloSession| Constructor and Description |
|---|
WorkflowCompatibleTest() |
| Modifier and Type | Method and Description |
|---|---|
protected User |
createUser(java.lang.String userName)
Creates a user instance using given uid.
|
protected WorkflowActionTemplate |
createWorkflowActionTemplate(User user,
java.lang.String code,
WorkflowTemplate workflow)
Creates new action template.
|
protected WorkflowTemplate |
createWorkflowTemplate(User user)
Creates a workflow template with given user assigned.
|
protected WorkflowTemplate |
createWorkflowTemplate(User owner,
java.lang.String code,
java.lang.String desc)
Creates new workflow template using given user, code, and description.
|
protected WorkflowAction |
getAction(java.lang.String code)
Gets the action with given code from test workflow instance.
|
protected WorkflowActionTemplate |
getActionTemplate(java.lang.String code)
Gets the action template with given code from test workflow template.
|
void |
setUp() |
void |
testAssignedUserCheck() |
void |
testAttachments()
Creates some attachments and assigns them to the test workflow.
|
void |
testWorkflowCompleteChain()
Completes the actions of the test workflow and checks the action status.
|
void |
testWorkflowCompleteReject()
Rejects action 3 of test workflow and checks action status.
|
void |
testWorkflowCreate()
Checks if actions of test workflow has correct status.
|
void |
testWorkflowCreateDisableActivate()
Disable actions 1 and 2 of test workflow and checks the status of the workflow actions.
|
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void testWorkflowCreate()
public void testWorkflowCreateDisableActivate()
public void testWorkflowCompleteChain()
public void testWorkflowCompleteReject()
public void testAttachments()
public void testAssignedUserCheck()
protected WorkflowTemplate createWorkflowTemplate(User user)
user - user instance to use for templateprotected User createUser(java.lang.String userName)
userName - user id used for user creationprotected WorkflowTemplate createWorkflowTemplate(User owner, java.lang.String code, java.lang.String desc)
owner - user assigned to new templatecode - code of new templatedesc - description assigned to templateprotected WorkflowActionTemplate createWorkflowActionTemplate(User user, java.lang.String code, WorkflowTemplate workflow)
user - user assigned to templatecode - code of templateworkflow - workflow assigned to action templateprotected WorkflowAction getAction(java.lang.String code)
code - code of needed actionprotected WorkflowActionTemplate getActionTemplate(java.lang.String code)
code - code of needed actionCopyright © 2018 SAP SE. All Rights Reserved.