Ignore:
Timestamp:
04/30/13 17:46:49 (11 years ago)
Author:
adeicke
Message:

Fixed tests.

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

    r1171 r1201  
    4343    public void should_return_no_recommendation() { 
    4444        // Given 
    45         String spec = 
    46             "Sequence {" + "  Interaction {}" + "  TextInput (a) {}" + "  Interaction {}" 
    47                 + "  Interaction {}" + "  TextInput (c) {}" + "  Interaction {}" 
    48                 + "  Interaction {}" + "  Interaction {}" + "}"; 
     45        String spec = "UserSession {" + 
     46                                  "  Sequence seq1 {" +  
     47                                  "    Interaction iter1 {}" +  
     48                                  "    TextInput t1 (a) {}" +  
     49                                  "    Interaction iter1 {}" +  
     50                                  "    Interaction t2 {}" +  
     51                                  "    TextInput t3 (c) {}" +  
     52                                  "    Interaction t4 {}" +  
     53                                  "    Interaction t5 {}" +  
     54                                  "    Interaction t6 {}" +  
     55                                  "  }" + 
     56                                  "}"; 
    4957        ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 
    5058        // When 
     
    5765    public void should_return_recommendation_with_info_severity_level() { 
    5866        // Given 
    59         String spec = 
    60             "Sequence {" + "  Interaction {}" + "  TextInput (a) {}" + "  Interaction {}" 
    61                 + "  Interaction {}" + "  TextInput (c) {}" + "}"; 
     67        String spec = "UserSession {" + 
     68                                  "  Sequence se1 {" +  
     69                                  "    Interaction t1 {}" +  
     70                                  "    TextInput t2 (a) {}" +  
     71                                  "    Interaction t3 {}" +  
     72                                  "    Interaction t4 {}" +  
     73                                  "    TextInput t5 (c) {}" + 
     74                                  "  }" +  
     75                                  "}"; 
    6276        ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 
    6377        // When 
     
    7084    public void should_return_recommendation_with_low_severity_level() { 
    7185        // Given 
    72         String spec = 
    73             "Sequence {" + "  Interaction {}" + "  TextInput (a) {}" + "  TextInput (b) {}" 
    74                 + "  Interaction {}" + "  TextInput (c) {}" + "}"; 
     86        String spec = "UserSession {" + 
     87                                  "  Sequence seq1 {" +  
     88                                  "    Interaction t1 {}" +  
     89                                  "    TextInput t2 (a) {}" +  
     90                                  "    TextInput t3 (b) {}" +  
     91                                  "    Interaction t4 {}" +  
     92                                  "    TextInput t5 (c) {}" +  
     93                                  "  }" + 
     94                                  "}"; 
    7595        ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 
    7696        // When 
     
    83103    public void should_return_recommendation_with_medium_severity_level() { 
    84104        // Given 
    85         String spec = 
    86             "Sequence {" + "  TextInput (a) {}" + "  TextInput (b) {}" + "  Interaction {}" 
    87                 + "  TextInput (c) {}" + "}"; 
     105        String spec = "UserSession {" + 
     106                                  "  Sequence seq1 {" +  
     107                                  "    TextInput t1 (a) {}" +  
     108                                  "    TextInput t2 (b) {}" +  
     109                                  "    Interaction t3 {}" +  
     110                                  "    TextInput t4 (c) {}" +  
     111                                  "  }" + 
     112                                  "}"; 
    88113        ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 
    89114        // When 
     
    96121    public void should_return_recommendation_with_high_severity_level() { 
    97122        // Given 
    98         String spec = "TextInput (bla) {}"; 
     123        String spec = "UserSession {" + 
     124                                  "  TextInput t1 (bla) {}" + 
     125                                  "}"; 
    99126        ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 
    100127        // When 
Note: See TracChangeset for help on using the changeset viewer.