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/TextInputEntryRepetitionsEvaluatorTest.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.TextInputEntryRepetitionsMetric; 
     31import de.ugoe.cs.autoquest.usability.testutil.GenerateTaskModelUtil; 
    3232 
    3333/** 
     
    3838 * @author Alexander Deicke 
    3939 */ 
    40 public class TextInputEntryRepetitionsEvaluatorTest extends AbstractUsabilityEvaluationTC { 
     40public class TextInputEntryRepetitionsEvaluatorTest { 
    4141 
    4242    @Test 
     
    4444        // Given 
    4545        String spec = "Sequence {" + "  TextInput () {}" + "}"; 
    46         ITaskTree taskTree = createTaskTree(spec); 
     46        ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 
    4747        // When 
    4848        Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).calculate(); 
     
    5757            "Sequence {" + "  TextInput (a b c) {}" + "  Sequence {" + "    TextInput (a) {}" 
    5858                + "    TextInput (d) {}" + "    TextInput (e) {}" + "  }" + "}"; 
    59         ITaskTree taskTree = createTaskTree(spec); 
     59        ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 
    6060        // When 
    6161        Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).calculate(); 
     
    7070            "Sequence {" + "  TextInput (a b c) {}" + "  Sequence {" + "    TextInput (a) {}" 
    7171                + "    TextInput (b) {}" + "    TextInput (c) {}" + "  }" + "}"; 
    72         ITaskTree taskTree = createTaskTree(spec); 
     72        ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 
    7373        // When 
    7474        Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).calculate(); 
     
    8989                + "      TextInput (b) {}" + "      TextInput (c) {}" + "      TextInput (d) {}" 
    9090                + "      TextInput (e) {}" + "    }" + "  }" + "  TextInput (f) {}" + "}"; 
    91         ITaskTree taskTree = createTaskTree(spec); 
     91        ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 
    9292        // When 
    9393        Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).calculate(); 
     
    108108                + "      TextInput (b b b a) {}" + "      TextInput (a a c c) {}" 
    109109                + "      TextInput (b b a) {}" + "    }" + "  }" + "  TextInput (d) {}" + "}"; 
    110         ITaskTree taskTree = createTaskTree(spec); 
     110        ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 
    111111        // When 
    112112        Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).calculate(); 
Note: See TracChangeset for help on using the changeset viewer.