Ignore:
Timestamp:
04/19/13 19:52:15 (12 years ago)
Author:
adeicke
Message:

Renaming from *Tree to *Model.

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  
    2424import com.google.common.collect.Lists; 
    2525 
    26 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTree; 
     26import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskModel; 
    2727import de.ugoe.cs.autoquest.usability.rules.UsabilityResult; 
    28 import de.ugoe.cs.autoquest.usability.testutil.GenerateTaskTreeUtil; 
     28import de.ugoe.cs.autoquest.usability.testutil.GenerateTaskModelUtil; 
    2929import de.ugoe.cs.util.console.GlobalDataContainer; 
    3030 
     
    4949     * Test method for {@link de.ugoe.cs.autoquest.usability.CMDperformUsabilityEvaluation#run(java.util.List)}. 
    5050     */ 
    51     public void run_without_evaluation_result_parameter_set_and_no_task_tree_in_data_container() { 
    52         List<?> parameters = Lists.newArrayList("taskTree"); 
     51    public void run_without_evaluation_result_parameter_set_and_no_task_model_in_data_container() { 
     52        List<?> parameters = Lists.newArrayList("taskModel"); 
    5353        new CMDperformUsabilityEvaluation().run((List<Object>) parameters); 
    5454        assertThat(getUsabilityEvaluationResult("usabilityEvaluationResult").isPresent()).isFalse(); 
     
    6464     */ 
    6565    @Test 
    66     public void run_with_all_parameter_set_and_no_task_tree_in_data_container() { 
    67         List<?> parameters = Lists.newArrayList("taskTree", "evaluationResult"); 
     66    public void run_with_all_parameter_set_and_no_task_model_in_data_container() { 
     67        List<?> parameters = Lists.newArrayList("taskModel", "evaluationResult"); 
    6868        new CMDperformUsabilityEvaluation().run((List<Object>) parameters); 
    6969        assertThat(getUsabilityEvaluationResult("evaluationResult").isPresent()).isFalse(); 
     
    7575     */ 
    7676    @Test 
    77     public void run_with_more_parameter_set_and_no_task_tree_in_data_container() { 
    78         List<?> parameters = Lists.newArrayList("taskTree", "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"); 
    7979        new CMDperformUsabilityEvaluation().run((List<Object>) parameters); 
    8080        assertThat(getUsabilityEvaluationResult("evaluationResult").isPresent()).isFalse(); 
     
    8686     */ 
    8787    @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"); 
    9294        new CMDperformUsabilityEvaluation().run((List<Object>) parameters); 
    9395        assertThat(getUsabilityEvaluationResult("evaluationResult").isPresent()).isTrue(); 
     
    9597    } 
    9698 
    97     private void storeInDataContainer(ITaskTree taskTree) { 
    98         GlobalDataContainer.getInstance().addData("taskTree", taskTree); 
     99    private void storeInDataContainer(ITaskModel taskModel) { 
     100        GlobalDataContainer.getInstance().addData("taskModel", taskModel); 
    99101    } 
    100102     
     
    105107    public void print_help_text() { 
    106108        String helpText = new CMDperformUsabilityEvaluation().help(); 
    107         assertThat(helpText).isEqualToIgnoringCase("peformUsabilityEvaluation <taskTree> {evaluationResult}"); 
     109        assertThat(helpText).isEqualToIgnoringCase("peformUsabilityEvaluation <taskModel> {evaluationResult}"); 
    108110    } 
    109111 
Note: See TracChangeset for help on using the changeset viewer.