Changeset 1171 for trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/rules/metrics/TextInputEntryRepetitionsEvaluatorTest.java
- Timestamp:
- 04/20/13 21:33:32 (11 years ago)
- 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 27 27 import com.google.common.base.Optional; 28 28 29 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask Tree;29 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskModel; 30 30 import de.ugoe.cs.autoquest.usability.result.UsabilityDefect; 31 import de.ugoe.cs.autoquest.usability. rules.metrics.TextInputEntryRepetitionsMetric;31 import de.ugoe.cs.autoquest.usability.testutil.GenerateTaskModelUtil; 32 32 33 33 /** … … 38 38 * @author Alexander Deicke 39 39 */ 40 public class TextInputEntryRepetitionsEvaluatorTest extends AbstractUsabilityEvaluationTC{40 public class TextInputEntryRepetitionsEvaluatorTest { 41 41 42 42 @Test … … 44 44 // Given 45 45 String spec = "Sequence {" + " TextInput () {}" + "}"; 46 ITask Tree taskTree = createTaskTree(spec);46 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 47 47 // When 48 48 Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).calculate(); … … 57 57 "Sequence {" + " TextInput (a b c) {}" + " Sequence {" + " TextInput (a) {}" 58 58 + " TextInput (d) {}" + " TextInput (e) {}" + " }" + "}"; 59 ITask Tree taskTree = createTaskTree(spec);59 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 60 60 // When 61 61 Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).calculate(); … … 70 70 "Sequence {" + " TextInput (a b c) {}" + " Sequence {" + " TextInput (a) {}" 71 71 + " TextInput (b) {}" + " TextInput (c) {}" + " }" + "}"; 72 ITask Tree taskTree = createTaskTree(spec);72 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 73 73 // When 74 74 Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).calculate(); … … 89 89 + " TextInput (b) {}" + " TextInput (c) {}" + " TextInput (d) {}" 90 90 + " TextInput (e) {}" + " }" + " }" + " TextInput (f) {}" + "}"; 91 ITask Tree taskTree = createTaskTree(spec);91 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 92 92 // When 93 93 Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).calculate(); … … 108 108 + " TextInput (b b b a) {}" + " TextInput (a a c c) {}" 109 109 + " TextInput (b b a) {}" + " }" + " }" + " TextInput (d) {}" + "}"; 110 ITask Tree taskTree = createTaskTree(spec);110 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 111 111 // When 112 112 Optional<UsabilityDefect> recommendation = new TextInputEntryRepetitionsMetric(taskTree).calculate();
Note: See TracChangeset
for help on using the changeset viewer.