Ignore:
Timestamp:
04/07/13 21:49:02 (11 years ago)
Author:
adeicke
Message:

Added tests for usage pattern detection-

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

    r1141 r1151  
    4949        ITaskTree taskTree = createTaskTree(spec); 
    5050        // When 
    51         Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).check(); 
     51        Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).calculate(); 
    5252        // Then 
    5353        assertThat(recommendation).is(absent()); 
     
    6262        ITaskTree taskTree = createTaskTree(spec); 
    6363        // When 
    64         Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).check(); 
     64        Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).calculate(); 
    6565        // Then 
    6666        assertThat(recommendation).is(present()).has(infoRecommendationSeverityLevel()); 
     
    7575        ITaskTree taskTree = createTaskTree(spec); 
    7676        // When 
    77         Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).check(); 
     77        Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).calculate(); 
    7878        // Then 
    7979        assertThat(recommendation).is(present()).has(lowRecommendationSeverityLevel()); 
     
    8888        ITaskTree taskTree = createTaskTree(spec); 
    8989        // When 
    90         Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).check(); 
     90        Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).calculate(); 
    9191        // Then 
    9292        assertThat(recommendation).is(present()).has(mediumRecommendationSeverityLevel()); 
     
    9999        ITaskTree taskTree = createTaskTree(spec); 
    100100        // When 
    101         Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).check(); 
     101        Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).calculate(); 
    102102        // Then 
    103103        assertThat(recommendation).is(present()).has(highRecommendationSeverityLevel()); 
Note: See TracChangeset for help on using the changeset viewer.