Search in sources :

Example 1 with TaskTestObject

use of org.motechproject.testmodule.domain.TaskTestObject in project motech by motech.

the class ActionParametersBundleIT method prepareExpectedTaskTestObject.

private List<TaskTestObject> prepareExpectedTaskTestObject() {
    List<TaskTestObject> expectedTaskTestObjects = new ArrayList<>();
    expectedTaskTestObjects.add(new TaskTestObject("ActionValue", "ActionValue - postActionParameter"));
    expectedTaskTestObjects.add(new TaskTestObject("ActionValue - postActionParameter", "ActionValue - postActionParameter - postActionParameter"));
    expectedTaskTestObjects.add(new TaskTestObject("ActionValue - postActionParameter - postActionParameter", "ActionValue - postActionParameter - postActionParameter - postActionParameter"));
    return expectedTaskTestObjects;
}
Also used : ArrayList(java.util.ArrayList) TaskTestObject(org.motechproject.testmodule.domain.TaskTestObject)

Example 2 with TaskTestObject

use of org.motechproject.testmodule.domain.TaskTestObject in project motech by motech.

the class TasksTestServiceImpl method createTestObjectWithPostActionParameter.

@Override
public TaskTestObject createTestObjectWithPostActionParameter(String name) {
    TaskTestObject object = new TaskTestObject(name);
    object.setTestNameWithPrefix(name + " - postActionParameter");
    taskTestObjects.add(object);
    return object;
}
Also used : TaskTestObject(org.motechproject.testmodule.domain.TaskTestObject)

Aggregations

TaskTestObject (org.motechproject.testmodule.domain.TaskTestObject)2 ArrayList (java.util.ArrayList)1