Changeset 1166 for trunk/autoquest-core-usability-evaluation-test
- Timestamp:
- 04/19/13 19:52:15 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/CMDperformUsabilityEvaluationTest.java
r1151 r1166 24 24 import com.google.common.collect.Lists; 25 25 26 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask Tree;26 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskModel; 27 27 import de.ugoe.cs.autoquest.usability.rules.UsabilityResult; 28 import de.ugoe.cs.autoquest.usability.testutil.GenerateTask TreeUtil;28 import de.ugoe.cs.autoquest.usability.testutil.GenerateTaskModelUtil; 29 29 import de.ugoe.cs.util.console.GlobalDataContainer; 30 30 … … 49 49 * Test method for {@link de.ugoe.cs.autoquest.usability.CMDperformUsabilityEvaluation#run(java.util.List)}. 50 50 */ 51 public void run_without_evaluation_result_parameter_set_and_no_task_ tree_in_data_container() {52 List<?> parameters = Lists.newArrayList("task Tree");51 public void run_without_evaluation_result_parameter_set_and_no_task_model_in_data_container() { 52 List<?> parameters = Lists.newArrayList("taskModel"); 53 53 new CMDperformUsabilityEvaluation().run((List<Object>) parameters); 54 54 assertThat(getUsabilityEvaluationResult("usabilityEvaluationResult").isPresent()).isFalse(); … … 64 64 */ 65 65 @Test 66 public void run_with_all_parameter_set_and_no_task_ tree_in_data_container() {67 List<?> parameters = Lists.newArrayList("task Tree", "evaluationResult");66 public void run_with_all_parameter_set_and_no_task_model_in_data_container() { 67 List<?> parameters = Lists.newArrayList("taskModel", "evaluationResult"); 68 68 new CMDperformUsabilityEvaluation().run((List<Object>) parameters); 69 69 assertThat(getUsabilityEvaluationResult("evaluationResult").isPresent()).isFalse(); … … 75 75 */ 76 76 @Test 77 public void run_with_more_parameter_set_and_no_task_ tree_in_data_container() {78 List<?> parameters = Lists.newArrayList("task Tree", "evaluationResult", "dummyParameter");77 public void run_with_more_parameter_set_and_no_task_model_in_data_container() { 78 List<?> parameters = Lists.newArrayList("taskModel", "evaluationResult", "dummyParameter"); 79 79 new CMDperformUsabilityEvaluation().run((List<Object>) parameters); 80 80 assertThat(getUsabilityEvaluationResult("evaluationResult").isPresent()).isFalse(); … … 86 86 */ 87 87 @Test 88 public void run_with_all_parameter_set_and_task_tree_in_data_container() { 89 String spec = "EventTask target1 {}"; 90 storeInDataContainer(GenerateTaskTreeUtil.getTaskTreeFromSpec(spec)); 91 List<?> parameters = Lists.newArrayList("taskTree", "evaluationResult"); 88 public void run_with_all_parameter_set_and_task_model_in_data_container() { 89 String spec = "UserSession {" + 90 " Event action1 {}" + 91 "}"; 92 storeInDataContainer(GenerateTaskModelUtil.getTaskModelFromSpec(spec)); 93 List<?> parameters = Lists.newArrayList("taskModel", "evaluationResult"); 92 94 new CMDperformUsabilityEvaluation().run((List<Object>) parameters); 93 95 assertThat(getUsabilityEvaluationResult("evaluationResult").isPresent()).isTrue(); … … 95 97 } 96 98 97 private void storeInDataContainer(ITask Tree taskTree) {98 GlobalDataContainer.getInstance().addData("task Tree", taskTree);99 private void storeInDataContainer(ITaskModel taskModel) { 100 GlobalDataContainer.getInstance().addData("taskModel", taskModel); 99 101 } 100 102 … … 105 107 public void print_help_text() { 106 108 String helpText = new CMDperformUsabilityEvaluation().help(); 107 assertThat(helpText).isEqualToIgnoringCase("peformUsabilityEvaluation <task Tree> {evaluationResult}");109 assertThat(helpText).isEqualToIgnoringCase("peformUsabilityEvaluation <taskModel> {evaluationResult}"); 108 110 } 109 111
Note: See TracChangeset
for help on using the changeset viewer.