Changeset 1218 for trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/rules/patterns/visitors/startswith/StartsAndEndsWithEventAndContainsEventTest.java
- Timestamp:
- 06/06/13 17:09:49 (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/patterns/visitors/startswith/StartsAndEndsWithEventAndContainsEventTest.java
r1205 r1218 15 15 package de.ugoe.cs.autoquest.usability.rules.patterns.visitors.startswith; 16 16 17 import static de.ugoe.cs.autoquest.usability.task tree.filters.EventTypeFilter.MOUSE_CLICK;18 import static de.ugoe.cs.autoquest.usability.task tree.filters.EventTypeFilter.TEXT_INPUT;19 import static de.ugoe.cs.autoquest.usability.task tree.filters.TaskTypeFilter.SEQUENCE;17 import static de.ugoe.cs.autoquest.usability.taskmodel.filter.types.EventTypeFilter.MOUSE_CLICK; 18 import static de.ugoe.cs.autoquest.usability.taskmodel.filter.types.EventTypeFilter.TEXT_INPUT; 19 import static de.ugoe.cs.autoquest.usability.taskmodel.filter.types.TaskTypeFilter.SEQUENCE; 20 20 import static org.fest.assertions.api.Assertions.assertThat; 21 21 … … 52 52 "}"; 53 53 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 54 InteractionPattern pattern = new InteractionPatternBuilder().concernedNode(SEQUENCE).startsWith(TEXT_INPUT).contains(MOUSE_CLICK).endsWith(TEXT_INPUT).build();54 InteractionPattern pattern = InteractionPatternBuilder.newPattern().rootTask(SEQUENCE).startsWithEvent(TEXT_INPUT).containsEvent(MOUSE_CLICK).endsWithEvent(TEXT_INPUT).patternFinished().build(); 55 55 // When 56 56 boolean patternContained = pattern.containedIn(taskTree); … … 83 83 "}"; 84 84 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 85 InteractionPattern pattern = new InteractionPatternBuilder().concernedNode(SEQUENCE).startsWith(TEXT_INPUT).contains(MOUSE_CLICK).endsWith(TEXT_INPUT).build();85 InteractionPattern pattern = InteractionPatternBuilder.newPattern().rootTask(SEQUENCE).startsWithEvent(TEXT_INPUT).containsEvent(MOUSE_CLICK).endsWithEvent(TEXT_INPUT).patternFinished().build(); 86 86 // When 87 87 boolean patternContained = pattern.containedIn(taskTree);
Note: See TracChangeset
for help on using the changeset viewer.