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/NoLetterOrDigitTextInputsEvaluatorTest.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.NoLetterOrDigitRatioMetric; 
     31import de.ugoe.cs.autoquest.usability.testutil.GenerateTaskModelUtil; 
    3232 
    3333/** 
     
    3838 * @author Alexander Deicke 
    3939 */ 
    40 public class NoLetterOrDigitTextInputsEvaluatorTest extends AbstractUsabilityEvaluationTC { 
     40public class NoLetterOrDigitTextInputsEvaluatorTest { 
    4141 
    4242    @Test 
     
    4646                      "  TextInput () {}" +  
    4747                      "}"; 
    48         ITaskTree taskTree = createTaskTree(spec); 
     48        ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 
    4949        // When 
    5050        Optional<UsabilityDefect> recommendation = new NoLetterOrDigitRatioMetric(taskTree).calculate(); 
     
    6161                         "12345678901234567890123456789012345) {}" +  
    6262            "}"; 
    63         ITaskTree taskTree = createTaskTree(spec); 
     63        ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 
    6464        // When 
    6565        Optional<UsabilityDefect> recommendation = new NoLetterOrDigitRatioMetric(taskTree).calculate(); 
     
    7575            "  TextInput (123456789012345678901234567890_123456789012345) {}" +  
    7676            "}"; 
    77         ITaskTree taskTree = createTaskTree(spec); 
     77        ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 
    7878        // When 
    7979        Optional<UsabilityDefect> recommendation = new NoLetterOrDigitRatioMetric(taskTree).calculate(); 
     
    8888                      "  TextInput (12345_6789012345) {}" +  
    8989                      "}"; 
    90         ITaskTree taskTree = createTaskTree(spec); 
     90        ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 
    9191        // When 
    9292        Optional<UsabilityDefect> recommendation = new NoLetterOrDigitRatioMetric(taskTree).calculate(); 
     
    101101                      "  TextInput (_a_b_c_) {}" + 
    102102                      "}"; 
    103         ITaskTree taskTree = createTaskTree(spec); 
     103        ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 
    104104        // When 
    105105        Optional<UsabilityDefect> recommendation = new NoLetterOrDigitRatioMetric(taskTree).calculate(); 
Note: See TracChangeset for help on using the changeset viewer.