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

    r1171 r1201  
    4343    public void should_return_no_recommendation() { 
    4444        // Given 
    45         String spec = "Sequence {" +  
    46                       "  TextInput () {}" +  
     45        String spec = "UserSession {" + 
     46                              "  Sequence seq1 {" +  
     47                      "    TextInput t1 {}" +  
     48                      "  }" + 
    4749                      "}"; 
    4850        ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 
     
    5658    public void should_return_recommendation_with_info_severity_level() { 
    5759        // Given 
    58         String spec = 
    59             "Sequence {" +  
    60             "  TextInput (1234567890123456789012345678901234567890123456789_01234567890" +  
    61                          "12345678901234567890123456789012345) {}" +  
    62             "}"; 
     60        String spec = "UserSession {" + 
     61                      "  Sequence seq1 {" +  
     62                      "    TextInput t1 (1234567890123456789012345678901234567890123456789_01234567890" +  
     63                      "                  12345678901234567890123456789012345) {ggdgdg11}" +  
     64                      "  }" + 
     65                      "}"; 
    6366        ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 
    6467        // When 
     
    7174    public void should_return_recommendation_with_low_severity_level() { 
    7275        // Given 
    73         String spec = 
    74             "Sequence {" +  
    75             "  TextInput (123456789012345678901234567890_123456789012345) {}" +  
    76             "}"; 
     76        String spec = "UserSession {" + 
     77                      "  Sequence seq1 {" +  
     78                      "    TextInput t1 (123456789012345678901234567890_123456789012345) {}" +  
     79                      "  }" + 
     80                      "}"; 
    7781        ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 
    7882        // When 
     
    8589    public void should_return_recommendation_with_medium_severity_level() { 
    8690        // Given 
    87         String spec = "Sequence {" +  
    88                       "  TextInput (12345_6789012345) {}" +  
     91        String spec = "UserSession {" + 
     92                              "  Sequence seq1 {" +  
     93                      "    TextInput t1 (12345_6789012345) {}" +  
     94                      "  }" + 
    8995                      "}"; 
    9096        ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 
     
    98104    public void should_return_recommendation_with_high_severity_level() { 
    99105        // Given 
    100         String spec = "Sequence {" + 
    101                       "  TextInput (_a_b_c_) {}" + 
     106        String spec = "UserSession {" + 
     107                              "  Sequence seq1 {" + 
     108                      "    TextInput t1 (_a_b_c_) {}" + 
     109                      "  }" + 
    102110                      "}"; 
    103111        ITaskModel taskTree = GenerateTaskModelUtil.getTaskModelFromSpec(spec); 
Note: See TracChangeset for help on using the changeset viewer.