Changeset 1171 for trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/rules/metrics/TextInputRatioEvaluatorTest.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/TextInputRatioEvaluatorTest.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.TextInputRatioMetric;31 import de.ugoe.cs.autoquest.usability.testutil.GenerateTaskModelUtil; 32 32 33 33 /** … … 38 38 * @author Alexander Deicke 39 39 */ 40 public class TextInputRatioEvaluatorTest extends AbstractUsabilityEvaluationTC{40 public class TextInputRatioEvaluatorTest { 41 41 42 42 @Test … … 47 47 + " Interaction {}" + " TextInput (c) {}" + " Interaction {}" 48 48 + " Interaction {}" + " Interaction {}" + "}"; 49 ITask Tree taskTree = createTaskTree(spec);49 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 50 50 // When 51 51 Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).calculate(); … … 60 60 "Sequence {" + " Interaction {}" + " TextInput (a) {}" + " Interaction {}" 61 61 + " Interaction {}" + " TextInput (c) {}" + "}"; 62 ITask Tree taskTree = createTaskTree(spec);62 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 63 63 // When 64 64 Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).calculate(); … … 73 73 "Sequence {" + " Interaction {}" + " TextInput (a) {}" + " TextInput (b) {}" 74 74 + " Interaction {}" + " TextInput (c) {}" + "}"; 75 ITask Tree taskTree = createTaskTree(spec);75 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 76 76 // When 77 77 Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).calculate(); … … 86 86 "Sequence {" + " TextInput (a) {}" + " TextInput (b) {}" + " Interaction {}" 87 87 + " TextInput (c) {}" + "}"; 88 ITask Tree taskTree = createTaskTree(spec);88 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 89 89 // When 90 90 Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).calculate(); … … 97 97 // Given 98 98 String spec = "TextInput (bla) {}"; 99 ITask Tree taskTree = createTaskTree(spec);99 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 100 100 // When 101 101 Optional<UsabilityDefect> recommendation = new TextInputRatioMetric(taskTree).calculate();
Note: See TracChangeset
for help on using the changeset viewer.