Ignore:
Timestamp:
04/20/13 21:33:32 (11 years ago)
Author:
adeicke
Message:

Fixed test cases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/rules/metrics/TextInputRatioEvaluatorTest.java

    r1151 r1171  
    2727import com.google.common.base.Optional; 
    2828 
    29 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTree; 
     29import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskModel; 
    3030import de.ugoe.cs.autoquest.usability.result.UsabilityDefect; 
    31 import de.ugoe.cs.autoquest.usability.rules.metrics.TextInputRatioMetric; 
     31import de.ugoe.cs.autoquest.usability.testutil.GenerateTaskModelUtil; 
    3232 
    3333/** 
     
    3838 * @author Alexander Deicke 
    3939 */ 
    40 public class TextInputRatioEvaluatorTest extends AbstractUsabilityEvaluationTC { 
     40public class TextInputRatioEvaluatorTest { 
    4141 
    4242    @Test 
     
    4747                + "  Interaction {}" + "  TextInput (c) {}" + "  Interaction {}" 
    4848                + "  Interaction {}" + "  Interaction {}" + "}"; 
    49         ITaskTree taskTree = createTaskTree(spec); 
     49        ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 
    5050        // When 
    5151        Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).calculate(); 
     
    6060            "Sequence {" + "  Interaction {}" + "  TextInput (a) {}" + "  Interaction {}" 
    6161                + "  Interaction {}" + "  TextInput (c) {}" + "}"; 
    62         ITaskTree taskTree = createTaskTree(spec); 
     62        ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 
    6363        // When 
    6464        Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).calculate(); 
     
    7373            "Sequence {" + "  Interaction {}" + "  TextInput (a) {}" + "  TextInput (b) {}" 
    7474                + "  Interaction {}" + "  TextInput (c) {}" + "}"; 
    75         ITaskTree taskTree = createTaskTree(spec); 
     75        ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 
    7676        // When 
    7777        Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).calculate(); 
     
    8686            "Sequence {" + "  TextInput (a) {}" + "  TextInput (b) {}" + "  Interaction {}" 
    8787                + "  TextInput (c) {}" + "}"; 
    88         ITaskTree taskTree = createTaskTree(spec); 
     88        ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 
    8989        // When 
    9090        Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).calculate(); 
     
    9797        // Given 
    9898        String spec = "TextInput (bla) {}"; 
    99         ITaskTree taskTree = createTaskTree(spec); 
     99        ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 
    100100        // When 
    101101        Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).calculate(); 
Note: See TracChangeset for help on using the changeset viewer.