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/TextInputEntryRepetitionsEvaluatorTest.java

    r1141 r1151  
    4646        ITaskTree taskTree = createTaskTree(spec); 
    4747        // When 
    48         Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).check(); 
     48        Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).calculate(); 
    4949        // Then 
    5050        assertThat(recommendation).is(absent()); 
     
    5959        ITaskTree taskTree = createTaskTree(spec); 
    6060        // When 
    61         Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).check(); 
     61        Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).calculate(); 
    6262        // Then 
    6363        assertThat(recommendation).is(present()).has(infoRecommendationSeverityLevel()); 
     
    7272        ITaskTree taskTree = createTaskTree(spec); 
    7373        // When 
    74         Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).check(); 
     74        Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).calculate(); 
    7575        // Then 
    7676        assertThat(recommendation).is(present()).has(lowRecommendationSeverityLevel()); 
     
    9191        ITaskTree taskTree = createTaskTree(spec); 
    9292        // When 
    93         Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).check(); 
     93        Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).calculate(); 
    9494        // Then 
    9595        assertThat(recommendation).is(present()).has(mediumRecommendationSeverityLevel()); 
     
    110110        ITaskTree taskTree = createTaskTree(spec); 
    111111        // When 
    112         Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).check(); 
     112        Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).calculate(); 
    113113        // Then 
    114114        assertThat(recommendation).is(present()).has(highRecommendationSeverityLevel()); 
Note: See TracChangeset for help on using the changeset viewer.