Ignore:
Timestamp:
05/01/13 14:33:31 (11 years ago)
Author:
adeicke
Message:

Fixing taskmodel specs and apply renaming refactoring (UsagePattern? -> InteractionPattern?).

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/StartsWithEventContainsPatternAndEndsWithEventTest.java

    r1170 r1205  
    2424 
    2525import 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; 
     26import de.ugoe.cs.autoquest.usability.rules.patterns.InteractionPattern; 
     27import de.ugoe.cs.autoquest.usability.rules.patterns.InteractionPatternBuilder; 
    2828import de.ugoe.cs.autoquest.usability.testutil.GenerateTaskModelUtil; 
    2929 
     
    5252                      "      MouseClick t2 {}" + 
    5353                      "    }" + 
    54                       "  }" + 
    55                       "  TextInput t3 {}" + 
    56                       "  MouseClick t2 {}" + 
    57                       "  Iteration iter1 {" + 
    58                       "    TextInput t4 {}" + 
     54                      "    TextInput t3 {}" + 
     55                      "    MouseClick t2 {}" + 
     56                      "    Iteration iter1 {" + 
     57                      "      TextInput t4 {}" + 
     58                      "    }" + 
    5959                      "  }" +  
    6060                      "}"; 
    6161        ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 
    62         UsagePatternBuilder builder = new UsagePatternBuilder(); 
    63         UsagePattern containedPattern = builder.concernedNode(SELECTION).startsWith(MOUSE_CLICK).endsWith(TEXT_INPUT).build(); 
    64         UsagePattern pattern = new UsagePatternBuilder().concernedNode(SEQUENCE).startsWith(TEXT_INPUT).contains(containedPattern).endsWith(TEXT_INPUT).build(); 
     62        InteractionPatternBuilder builder = new InteractionPatternBuilder(); 
     63        InteractionPattern containedPattern = builder.concernedNode(SELECTION).startsWith(MOUSE_CLICK).endsWith(TEXT_INPUT).build(); 
     64        InteractionPattern pattern = new InteractionPatternBuilder().concernedNode(SEQUENCE).startsWith(TEXT_INPUT).contains(containedPattern).endsWith(TEXT_INPUT).build(); 
    6565        // When 
    6666        boolean patternContained = pattern.containedIn(taskTree); 
     
    9292                      "}"; 
    9393        ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 
    94         UsagePatternBuilder builder = new UsagePatternBuilder(); 
    95         UsagePattern containedPattern = builder.concernedNode(SELECTION).startsWith(MOUSE_CLICK).endsWith(TEXT_INPUT).build(); 
    96         UsagePattern pattern = new UsagePatternBuilder().concernedNode(SEQUENCE).startsWith(TEXT_INPUT).contains(containedPattern).endsWith(TEXT_INPUT).build(); 
     94        InteractionPatternBuilder builder = new InteractionPatternBuilder(); 
     95        InteractionPattern containedPattern = builder.concernedNode(SELECTION).startsWith(MOUSE_CLICK).endsWith(TEXT_INPUT).build(); 
     96        InteractionPattern pattern = new InteractionPatternBuilder().concernedNode(SEQUENCE).startsWith(TEXT_INPUT).contains(containedPattern).endsWith(TEXT_INPUT).build(); 
    9797        // When 
    9898        boolean patternContained = pattern.containedIn(taskTree); 
Note: See TracChangeset for help on using the changeset viewer.