Changeset 1205 for trunk/autoquest-core-usability-evaluation-test/src/main/java/de/ugoe/cs/autoquest/usability/rules/patterns/visitors/startswith/StartsWithEventAndEndsWithPatternTest.java
- Timestamp:
- 05/01/13 14:33:31 (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/StartsWithEventAndEndsWithPatternTest.java
r1170 r1205 24 24 25 25 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskModel; 26 import de.ugoe.cs.autoquest.usability.rules.patterns. UsagePattern;27 import de.ugoe.cs.autoquest.usability.rules.patterns. UsagePatternBuilder;26 import de.ugoe.cs.autoquest.usability.rules.patterns.InteractionPattern; 27 import de.ugoe.cs.autoquest.usability.rules.patterns.InteractionPatternBuilder; 28 28 import de.ugoe.cs.autoquest.usability.testutil.GenerateTaskModelUtil; 29 29 … … 50 50 "}"; 51 51 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 52 UsagePatternBuilder builder = new UsagePatternBuilder();53 UsagePattern endsWithPattern = builder.concernedNode(ITERATION).startsWith(MOUSE_CLICK).build();54 UsagePattern pattern = new UsagePatternBuilder().concernedNode(SEQUENCE).startsWith(TEXT_INPUT).contains(MOUSE_CLICK).endsWith(endsWithPattern).build();52 InteractionPatternBuilder builder = new InteractionPatternBuilder(); 53 InteractionPattern endsWithPattern = builder.concernedNode(ITERATION).startsWith(MOUSE_CLICK).build(); 54 InteractionPattern pattern = new InteractionPatternBuilder().concernedNode(SEQUENCE).startsWith(TEXT_INPUT).contains(MOUSE_CLICK).endsWith(endsWithPattern).build(); 55 55 // When 56 56 boolean patternContained = pattern.containedIn(taskTree); … … 72 72 "}"; 73 73 ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 74 UsagePatternBuilder builder = new UsagePatternBuilder();75 UsagePattern endsWithPattern = builder.concernedNode(ITERATION).startsWith(MOUSE_CLICK).build();76 UsagePattern pattern = new UsagePatternBuilder().concernedNode(SEQUENCE).startsWith(TEXT_INPUT).contains(MOUSE_CLICK).endsWith(endsWithPattern).build();74 InteractionPatternBuilder builder = new InteractionPatternBuilder(); 75 InteractionPattern endsWithPattern = builder.concernedNode(ITERATION).startsWith(MOUSE_CLICK).build(); 76 InteractionPattern pattern = new InteractionPatternBuilder().concernedNode(SEQUENCE).startsWith(TEXT_INPUT).contains(MOUSE_CLICK).endsWith(endsWithPattern).build(); 77 77 // When 78 78 boolean patternContained = pattern.containedIn(taskTree);
Note: See TracChangeset
for help on using the changeset viewer.