Changeset 1151
- Timestamp:
- 04/07/13 21:49:02 (12 years ago)
- Location:
- trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability
- Files:
-
- 11 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/AllTests.java
r1040 r1151 19 19 import org.junit.runners.Suite.SuiteClasses; 20 20 21 import de.ugoe.cs.autoquest.usability.evaluation.rule.evaluator.NoLetterOrDigitTextInputsEvaluatorTest; 22 import de.ugoe.cs.autoquest.usability.evaluation.rule.evaluator.TextInputEntryRepetitionsEvaluatorTest; 23 import de.ugoe.cs.autoquest.usability.evaluation.rule.evaluator.TextInputRatioEvaluatorTest; 24 import de.ugoe.cs.autoquest.usability.evaluation.rule.set.EmptyUsabilityRulesetTest; 25 import de.ugoe.cs.autoquest.usability.evaluation.rule.set.RulesetFactoryTest; 21 import de.ugoe.cs.autoquest.usability.rules.metrics.NoLetterOrDigitTextInputsEvaluatorTest; 22 import de.ugoe.cs.autoquest.usability.rules.metrics.TextInputEntryRepetitionsEvaluatorTest; 23 import de.ugoe.cs.autoquest.usability.rules.metrics.TextInputRatioEvaluatorTest; 24 import de.ugoe.cs.autoquest.usability.rules.patterns.LongFormUsageDefectTest; 25 import de.ugoe.cs.autoquest.usability.rules.patterns.visitors.contains.ContainsAndEndsWithEventTest; 26 import de.ugoe.cs.autoquest.usability.rules.patterns.visitors.contains.ContainsEventTest; 27 import de.ugoe.cs.autoquest.usability.rules.patterns.visitors.contains.ContainsPatternTest; 28 import de.ugoe.cs.autoquest.usability.rules.patterns.visitors.endswith.EndsWithEventTest; 29 import de.ugoe.cs.autoquest.usability.rules.patterns.visitors.endswith.EndsWithPatternTest; 30 import de.ugoe.cs.autoquest.usability.rules.patterns.visitors.startswith.StartsAndEndsWithEventAndContainsEventTest; 31 import de.ugoe.cs.autoquest.usability.rules.patterns.visitors.startswith.StartsAndEndsWithEventTest; 32 import de.ugoe.cs.autoquest.usability.rules.patterns.visitors.startswith.StartsAndEndsWithPatternAndContainsPatternTest; 33 import de.ugoe.cs.autoquest.usability.rules.patterns.visitors.startswith.StartsAndEndsWithPatternTest; 34 import de.ugoe.cs.autoquest.usability.rules.patterns.visitors.startswith.StartsWithEventAndContainsEventTest; 35 import de.ugoe.cs.autoquest.usability.rules.patterns.visitors.startswith.StartsWithEventAndContainsPatternTest; 36 import de.ugoe.cs.autoquest.usability.rules.patterns.visitors.startswith.StartsWithEventAndEndsWithPatternTest; 37 import de.ugoe.cs.autoquest.usability.rules.patterns.visitors.startswith.StartsWithEventContainsEventEndsWithPatternTest; 38 import de.ugoe.cs.autoquest.usability.rules.patterns.visitors.startswith.StartsWithEventContainsPatternAndEndsWithEventTest; 39 import de.ugoe.cs.autoquest.usability.rules.patterns.visitors.startswith.StartsWithEventContainsPatternAndEndsWithPatternTest; 40 import de.ugoe.cs.autoquest.usability.rules.patterns.visitors.startswith.StartsWithEventTest; 41 import de.ugoe.cs.autoquest.usability.rules.patterns.visitors.startswith.StartsWithPatternAndContainsEventTest; 42 import de.ugoe.cs.autoquest.usability.rules.patterns.visitors.startswith.StartsWithPatternAndContainsPatternTest; 43 import de.ugoe.cs.autoquest.usability.rules.patterns.visitors.startswith.StartsWithPatternAndEndsWithEventTest; 44 import de.ugoe.cs.autoquest.usability.rules.patterns.visitors.startswith.StartsWithPatternContainsEventAndEndsWithEventTest; 45 import de.ugoe.cs.autoquest.usability.rules.patterns.visitors.startswith.StartsWithPatternContainsEventAndEndsWithPatternTest; 46 import de.ugoe.cs.autoquest.usability.rules.patterns.visitors.startswith.StartsWithPatternContainsPatternAndEndsWithEventTest; 47 import de.ugoe.cs.autoquest.usability.rules.patterns.visitors.startswith.StartsWithPatternTest; 26 48 27 49 /** … … 34 56 @RunWith(Suite.class) 35 57 @SuiteClasses( 36 { UsabilityEvaluationFacadeTest.class, UsabilityEvaluationReportTest.class, 37 EmptyUsabilityRulesetTest.class, RulesetFactoryTest.class, 38 NoLetterOrDigitTextInputsEvaluatorTest.class, TextInputEntryRepetitionsEvaluatorTest.class, 39 TextInputRatioEvaluatorTest.class }) 58 { CMDperformUsabilityEvaluationTest.class, 59 NoLetterOrDigitTextInputsEvaluatorTest.class, 60 TextInputEntryRepetitionsEvaluatorTest.class, 61 TextInputRatioEvaluatorTest.class, 62 StartsWithEventTest.class, StartsWithPatternTest.class, 63 StartsWithEventAndContainsEventTest.class, StartsWithPatternAndContainsPatternTest.class, 64 StartsWithEventAndContainsPatternTest.class, StartsWithPatternAndContainsEventTest.class, 65 StartsAndEndsWithEventTest.class, StartsAndEndsWithPatternTest.class, 66 StartsWithEventAndEndsWithPatternTest.class, StartsWithPatternAndEndsWithEventTest.class, 67 StartsAndEndsWithEventAndContainsEventTest.class, StartsAndEndsWithPatternAndContainsPatternTest.class, 68 StartsWithEventContainsEventEndsWithPatternTest.class, StartsWithPatternContainsEventAndEndsWithPatternTest.class, 69 StartsWithEventContainsPatternAndEndsWithEventTest.class, StartsWithPatternContainsPatternAndEndsWithEventTest.class, 70 StartsWithEventContainsPatternAndEndsWithPatternTest.class, StartsWithPatternContainsEventAndEndsWithEventTest.class, 71 EndsWithEventTest.class, EndsWithPatternTest.class, 72 ContainsEventTest.class, ContainsPatternTest.class, 73 ContainsAndEndsWithEventTest.class, 74 // E -> P 75 // P -> E 76 // P -> P 77 LongFormUsageDefectTest.class 78 } 79 ) 40 80 public class AllTests { 41 81 -
trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/CMDperformUsabilityEvaluationTest.java
r1141 r1151 78 78 List<?> parameters = Lists.newArrayList("taskTree", "evaluationResult", "dummyParameter"); 79 79 new CMDperformUsabilityEvaluation().run((List<Object>) parameters); 80 assertThat(getUsabilityEvaluationResult("evaluationResult") ).isNotNull();80 assertThat(getUsabilityEvaluationResult("evaluationResult").isPresent()).isFalse(); 81 81 82 82 } -
trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/rules/metrics/NoLetterOrDigitTextInputsEvaluatorTest.java
r1141 r1151 48 48 ITaskTree taskTree = createTaskTree(spec); 49 49 // When 50 Optional<UsabilityDefect> recommendation = new NoLetterOrDigitRatioMetric(taskTree).c heck();50 Optional<UsabilityDefect> recommendation = new NoLetterOrDigitRatioMetric(taskTree).calculate(); 51 51 // Then 52 52 assertThat(recommendation).is(absent()); … … 63 63 ITaskTree taskTree = createTaskTree(spec); 64 64 // When 65 Optional<UsabilityDefect> recommendation = new NoLetterOrDigitRatioMetric(taskTree).c heck();65 Optional<UsabilityDefect> recommendation = new NoLetterOrDigitRatioMetric(taskTree).calculate(); 66 66 // Then 67 67 assertThat(recommendation).is(present()).has(infoRecommendationSeverityLevel()); … … 77 77 ITaskTree taskTree = createTaskTree(spec); 78 78 // When 79 Optional<UsabilityDefect> recommendation = new NoLetterOrDigitRatioMetric(taskTree).c heck();79 Optional<UsabilityDefect> recommendation = new NoLetterOrDigitRatioMetric(taskTree).calculate(); 80 80 // Then 81 81 assertThat(recommendation).is(present()).has(lowRecommendationSeverityLevel()); … … 90 90 ITaskTree taskTree = createTaskTree(spec); 91 91 // When 92 Optional<UsabilityDefect> recommendation = new NoLetterOrDigitRatioMetric(taskTree).c heck();92 Optional<UsabilityDefect> recommendation = new NoLetterOrDigitRatioMetric(taskTree).calculate(); 93 93 // Then 94 94 assertThat(recommendation).is(present()).has(mediumRecommendationSeverityLevel()); … … 103 103 ITaskTree taskTree = createTaskTree(spec); 104 104 // When 105 Optional<UsabilityDefect> recommendation = new NoLetterOrDigitRatioMetric(taskTree).c heck();105 Optional<UsabilityDefect> recommendation = new NoLetterOrDigitRatioMetric(taskTree).calculate(); 106 106 // Then 107 107 assertThat(recommendation).is(present()).has(highRecommendationSeverityLevel()); -
trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/rules/metrics/TextInputEntryRepetitionsEvaluatorTest.java
r1141 r1151 46 46 ITaskTree taskTree = createTaskTree(spec); 47 47 // When 48 Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).c heck();48 Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).calculate(); 49 49 // Then 50 50 assertThat(recommendation).is(absent()); … … 59 59 ITaskTree taskTree = createTaskTree(spec); 60 60 // When 61 Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).c heck();61 Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).calculate(); 62 62 // Then 63 63 assertThat(recommendation).is(present()).has(infoRecommendationSeverityLevel()); … … 72 72 ITaskTree taskTree = createTaskTree(spec); 73 73 // When 74 Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).c heck();74 Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).calculate(); 75 75 // Then 76 76 assertThat(recommendation).is(present()).has(lowRecommendationSeverityLevel()); … … 91 91 ITaskTree taskTree = createTaskTree(spec); 92 92 // When 93 Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).c heck();93 Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).calculate(); 94 94 // Then 95 95 assertThat(recommendation).is(present()).has(mediumRecommendationSeverityLevel()); … … 110 110 ITaskTree taskTree = createTaskTree(spec); 111 111 // When 112 Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).c heck();112 Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).calculate(); 113 113 // Then 114 114 assertThat(recommendation).is(present()).has(highRecommendationSeverityLevel()); -
trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/rules/metrics/TextInputRatioEvaluatorTest.java
r1141 r1151 49 49 ITaskTree taskTree = createTaskTree(spec); 50 50 // When 51 Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).c heck();51 Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).calculate(); 52 52 // Then 53 53 assertThat(recommendation).is(absent()); … … 62 62 ITaskTree taskTree = createTaskTree(spec); 63 63 // When 64 Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).c heck();64 Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).calculate(); 65 65 // Then 66 66 assertThat(recommendation).is(present()).has(infoRecommendationSeverityLevel()); … … 75 75 ITaskTree taskTree = createTaskTree(spec); 76 76 // When 77 Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).c heck();77 Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).calculate(); 78 78 // Then 79 79 assertThat(recommendation).is(present()).has(lowRecommendationSeverityLevel()); … … 88 88 ITaskTree taskTree = createTaskTree(spec); 89 89 // When 90 Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).c heck();90 Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).calculate(); 91 91 // Then 92 92 assertThat(recommendation).is(present()).has(mediumRecommendationSeverityLevel()); … … 99 99 ITaskTree taskTree = createTaskTree(spec); 100 100 // When 101 Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).c heck();101 Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).calculate(); 102 102 // Then 103 103 assertThat(recommendation).is(present()).has(highRecommendationSeverityLevel());
Note: See TracChangeset
for help on using the changeset viewer.