Package de.hybris.platform.workflow.jalo
Class WorkflowCompatibleTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.testframework.HybrisJUnit4TransactionalTest
-
- de.hybris.platform.workflow.jalo.WorkflowCompatibleTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class WorkflowCompatibleTest extends HybrisJUnit4TransactionalTest
Test for extension Workflow.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description WorkflowCompatibleTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testWorkflowCreate
public void testWorkflowCreate()
Checks if actions of test workflow has correct status.
-
testWorkflowCreateDisableActivate
public void testWorkflowCreateDisableActivate()
Disable actions 1 and 2 of test workflow and checks the status of the workflow actions.
-
testWorkflowCompleteChain
public void testWorkflowCompleteChain()
Completes the actions of the test workflow and checks the action status.
-
testWorkflowCompleteReject
public void testWorkflowCompleteReject()
Rejects action 3 of test workflow and checks action status.
-
testAttachments
public void testAttachments()
Creates some attachments and assigns them to the test workflow.
-
testAssignedUserCheck
public void testAssignedUserCheck()
-
createWorkflowTemplate
protected WorkflowTemplate createWorkflowTemplate(User user)
Creates a workflow template with given user assigned.- Parameters:
user
- user instance to use for template- Returns:
- new created template instance
-
createUser
protected User createUser(java.lang.String userName)
Creates a user instance using given uid.- Parameters:
userName
- user id used for user creation- Returns:
- created user
-
createWorkflowTemplate
protected WorkflowTemplate createWorkflowTemplate(User owner, java.lang.String code, java.lang.String desc)
Creates new workflow template using given user, code, and description.- Parameters:
owner
- user assigned to new templatecode
- code of new templatedesc
- description assigned to template- Returns:
- created template
-
createWorkflowActionTemplate
protected WorkflowActionTemplate createWorkflowActionTemplate(User user, java.lang.String code, WorkflowTemplate workflow)
Creates new action template.- Parameters:
user
- user assigned to templatecode
- code of templateworkflow
- workflow assigned to action template- Returns:
- created action template
-
getAction
protected WorkflowAction getAction(java.lang.String code)
Gets the action with given code from test workflow instance.- Parameters:
code
- code of needed action- Returns:
- action of test workflow with given code
-
getActionTemplate
protected WorkflowActionTemplate getActionTemplate(java.lang.String code)
Gets the action template with given code from test workflow template.- Parameters:
code
- code of needed action- Returns:
- action template of test workflow template with given code
-
-