source: trunk/quest-core-usability-test/src/test/java/de/ugoe/cs/quest/usability/TextInputStatisticsRuleTest.java @ 497

Last change on this file since 497 was 497, checked in by pharms, 12 years ago
  • added further text entry based evaluation rule
File size: 20.4 KB
Line 
1//-------------------------------------------------------------------------------------------------
2// Module    : $RCSfile: TextInputStatisticsRuleTest.java,v $
3// Version   : $Revision: 0.0 $  $Author: pharms $  $Date: 18.07.2012 $
4// Project   : UsabilityEvaluationManager
5// Creation  : 2012 by pharms
6// Copyright : Patrick Harms, 2012
7//-------------------------------------------------------------------------------------------------
8package de.ugoe.cs.quest.usability;
9
10import static de.ugoe.cs.quest.usability.UsabilityDefectDescription.TEXT_FIELD_INPUT_RATIO;
11import static de.ugoe.cs.quest.usability.UsabilityDefectDescription.TEXT_FIELD_INPUT_REPETITIONS;
12import static de.ugoe.cs.quest.usability.UsabilityDefectDescription.TEXT_FIELD_NO_LETTER_OR_DIGIT_RATIO;
13import static de.ugoe.cs.quest.usability.UsabilityDefectSeverity.HIGH;
14import static de.ugoe.cs.quest.usability.UsabilityDefectSeverity.INFO;
15import static de.ugoe.cs.quest.usability.UsabilityDefectSeverity.LOW;
16import static de.ugoe.cs.quest.usability.UsabilityDefectSeverity.MEDIUM;
17
18import org.junit.Test;
19
20//-------------------------------------------------------------------------------------------------
21/**
22 * TODO comment
23 *
24 * @version $Revision: $ $Date: 18.07.2012$
25 * @author 2012, last modified by $Author: pharms$
26 */
27//-------------------------------------------------------------------------------------------------
28public class TextInputStatisticsRuleTest extends AbstractUsabilityEvaluationTC
29{
30
31  //-----------------------------------------------------------------------------------------------
32  /**
33   * TODO: comment
34   *
35   */
36  //-----------------------------------------------------------------------------------------------
37  @Test
38  public void testWithDifferentTextInputInteractionsOnly()
39  {
40    UsabilityEvaluationManager manager = new UsabilityEvaluationManager();
41   
42    // ===== check =====
43    String spec = "TextInput (bla) {}";
44    UsabilityDefect[] expectedDefects = new UsabilityDefect[]
45    {
46      new UsabilityDefect(HIGH, TEXT_FIELD_INPUT_RATIO)
47    };
48   
49    assertUsabilityEvaluationResult
50      (expectedDefects, manager.evaluateUsability(createTaskTree(spec)));
51   
52    // ===== check =====
53    spec =
54      "Sequence {" +
55      "  TextInput (bla) {}" +
56      "}";
57   
58    expectedDefects = new UsabilityDefect[]
59    {
60      new UsabilityDefect(HIGH, UsabilityDefectDescription.TEXT_FIELD_INPUT_RATIO)
61    };
62   
63    assertUsabilityEvaluationResult
64      (expectedDefects, manager.evaluateUsability(createTaskTree(spec)));
65   
66    // ===== check =====
67    spec =
68      "Sequence {" +
69      "  TextInput (a) {}" +
70      "  TextInput (b) {}" +
71      "  TextInput (c) {}" +
72      "  TextInput (d) {}" +
73      "}";
74   
75    expectedDefects = new UsabilityDefect[]
76    {
77      new UsabilityDefect(HIGH, TEXT_FIELD_INPUT_RATIO)
78    };
79   
80    assertUsabilityEvaluationResult
81      (expectedDefects, manager.evaluateUsability(createTaskTree(spec)));
82   
83    // ===== check =====
84    spec =
85      "Selection {" +
86      "  TextInput (a) {}" +
87      "  TextInput (b) {}" +
88      "  TextInput (c) {}" +
89      "  TextInput (d) {}" +
90      "}";
91     
92    expectedDefects = new UsabilityDefect[]
93    {
94      new UsabilityDefect(HIGH, TEXT_FIELD_INPUT_RATIO)
95    };
96     
97    assertUsabilityEvaluationResult
98      (expectedDefects, manager.evaluateUsability(createTaskTree(spec)));
99     
100    // ===== check =====
101    spec =
102      "Iteration {" +
103      "  TextInput (bla) {}" +
104      "}";
105       
106    expectedDefects = new UsabilityDefect[]
107    {
108      new UsabilityDefect(HIGH, TEXT_FIELD_INPUT_RATIO)
109    };
110     
111    assertUsabilityEvaluationResult
112      (expectedDefects, manager.evaluateUsability(createTaskTree(spec)));
113       
114    // ===== check =====
115    spec =
116      "Sequence {" +
117      "  TextInput (a) {}" +
118      "  Sequence {" +
119      "    TextInput (b) {}" +
120      "    TextInput (c) {}" +
121      "    TextInput (d) {}" +
122      "    TextInput (e) {}" +
123      "  }" +
124      "  Iteration {" +
125      "    TextInput (f) {}" +
126      "  }" +
127      "  TextInput (g) {}" +
128      "  Selection {" +
129      "    TextInput (h) {}" +
130      "    TextInput (i) {}" +
131      "    TextInput (j) {}" +
132      "    TextInput (k) {}" +
133      "  }" +
134      "  Sequence {" +
135      "    TextInput (l) {}" +
136      "    Sequence {" +
137      "      TextInput (m) {}" +
138      "      TextInput (n) {}" +
139      "      TextInput (o) {}" +
140      "      TextInput (p) {}" +
141      "    }" +
142      "    Iteration {" +
143      "      TextInput (q) {}" +
144      "    }" +
145      "    TextInput (r) {}" +
146      "    Selection {" +
147      "      TextInput (s) {}" +
148      "      TextInput (t) {}" +
149      "      TextInput (u) {}" +
150      "      TextInput (v) {}" +
151      "    }" +
152      "  }" +
153      "  Selection {" +
154      "    TextInput (w) {}" +
155      "    Sequence {" +
156      "      TextInput (x) {}" +
157      "      TextInput (y) {}" +
158      "      TextInput (z) {}" +
159      "      TextInput (aa) {}" +
160      "    }" +
161      "    Iteration {" +
162      "      TextInput (ab) {}" +
163      "    }" +
164      "    TextInput (ac) {}" +
165      "    Selection {" +
166      "      TextInput (ad) {}" +
167      "      TextInput (ae) {}" +
168      "      TextInput (af) {}" +
169      "      TextInput (ag) {}" +
170      "    }" +
171      "  }" +
172      "  TextInput (ah) {}" +
173      "}";
174     
175    expectedDefects = new UsabilityDefect[]
176    {
177      new UsabilityDefect(HIGH, TEXT_FIELD_INPUT_RATIO)
178    };
179   
180    assertUsabilityEvaluationResult
181      (expectedDefects, manager.evaluateUsability(createTaskTree(spec)));   
182  }
183
184  //-----------------------------------------------------------------------------------------------
185  /**
186   * TODO: comment
187   *
188   */
189  //-----------------------------------------------------------------------------------------------
190  @Test
191  public void testCombinationsOfTextInputInteractionsAndOtherInteractions()
192  {
193    UsabilityEvaluationManager manager = new UsabilityEvaluationManager();
194   
195    // ===== check =====
196    String spec =
197      "Sequence {" +
198      "  Interaction {}" +
199      "  TextInput (a) {}" +
200      "  TextInput (b) {}" +
201      "  Interaction {}" +
202      "  TextInput (c) {}" +
203      "}";
204     
205    UsabilityDefect[] expectedDefects = new UsabilityDefect[]
206    {
207      new UsabilityDefect(LOW, TEXT_FIELD_INPUT_RATIO)
208    };
209   
210    assertUsabilityEvaluationResult
211      (expectedDefects, manager.evaluateUsability(createTaskTree(spec)));
212   
213    // ===== check =====
214    spec =
215      "Sequence {" +
216      "  Interaction {}" +
217      "  TextInput (a) {}" +
218      "  Interaction {}" +
219      "  Interaction {}" +
220      "  TextInput (c) {}" +
221      "}";
222       
223    expectedDefects = new UsabilityDefect[]
224    {
225      new UsabilityDefect(INFO, TEXT_FIELD_INPUT_RATIO)
226    };
227   
228    assertUsabilityEvaluationResult
229      (expectedDefects, manager.evaluateUsability(createTaskTree(spec)));
230     
231    // ===== check =====
232    spec =
233      "Sequence {" +
234      "  Interaction {}" +
235      "  TextInput (a) {}" +
236      "  Interaction {}" +
237      "  Interaction {}" +
238      "  Interaction {}" +
239      "}";
240         
241    expectedDefects = new UsabilityDefect[0];
242       
243    assertUsabilityEvaluationResult
244      (expectedDefects, manager.evaluateUsability(createTaskTree(spec)));
245       
246    // ===== check =====
247    spec =
248      "Selection {" +
249      "  Interaction {}" +
250      "  TextInput (a) {}" +
251      "  TextInput (b) {}" +
252      "  Interaction {}" +
253      "  TextInput (c) {}" +
254      "}";
255     
256    expectedDefects = new UsabilityDefect[]
257    {
258      new UsabilityDefect(LOW, TEXT_FIELD_INPUT_RATIO)
259    };
260     
261    assertUsabilityEvaluationResult
262      (expectedDefects, manager.evaluateUsability(createTaskTree(spec)));
263     
264    // ===== check =====
265    spec =
266      "Sequence {" +
267      "  TextInput (a) {}" +
268      "  Sequence {" +
269      "    Interaction {}" +
270      "    TextInput (b) {}" +
271      "    TextInput (c) {}" +
272      "    Interaction {}" +
273      "    TextInput (d) {}" +
274      "  }" +
275      "  Iteration {" +
276      "    TextInput (e) {}" +
277      "  }" +
278      "  Interaction {}" +
279      "  Selection {" +
280      "    Interaction {}" +
281      "    TextInput (f) {}" +
282      "    TextInput (g) {}" +
283      "    Interaction {}" +
284      "    TextInput (h) {}" +
285      "    TextInput (i) {}" +
286      "  }" +
287      "  Sequence {" +
288      "    TextInput (j) {}" +
289      "    Sequence {" +
290      "      TextInput (k) {}" +
291      "      Interaction {}" +
292      "      TextInput (l) {}" +
293      "      TextInput (m) {}" +
294      "      Interaction {}" +
295      "      TextInput (n) {}" +
296      "      TextInput (o) {}" +
297      "    }" +
298      "    Iteration {" +
299      "      Interaction {}" +
300      "    }" +
301      "    Interaction {}" +
302      "    Selection {" +
303      "      TextInput (p) {}" +
304      "      TextInput (q) {}" +
305      "      TextInput (r) {}" +
306      "      Interaction {}" +
307      "      TextInput (s) {}" +
308      "      TextInput (t) {}" +
309      "      Interaction {}" +
310      "      TextInput (u) {}" +
311      "      TextInput (v) {}" +
312      "    }" +
313      "  }" +
314      "  Selection {" +
315      "    Interaction {}" +
316      "    Sequence {" +
317      "      TextInput (w) {}" +
318      "      Interaction {}" +
319      "      TextInput (x) {}" +
320      "      TextInput (y) {}" +
321      "      Interaction {}" +
322      "    }" +
323      "    Iteration {" +
324      "      TextInput (z) {}" +
325      "    }" +
326      "    TextInput (aa) {}" +
327      "    Selection {" +
328      "      TextInput (ab) {}" +
329      "      Interaction {}" +
330      "      TextInput (ac) {}" +
331      "      TextInput (ad) {}" +
332      "      Interaction {}" +
333      "      TextInput (ae) {}" +
334      "    }" +
335      "  }" +
336      "  Interaction {}" +
337      "}";
338     
339    expectedDefects = new UsabilityDefect[]
340    {
341      new UsabilityDefect(LOW, TEXT_FIELD_INPUT_RATIO)
342    };
343   
344    assertUsabilityEvaluationResult
345      (expectedDefects, manager.evaluateUsability(createTaskTree(spec)));
346   
347    // ===== check =====
348    spec =
349      "Sequence {" +
350      "  TextInput (a) {}" +
351      "  Sequence {" +
352      "    Interaction {}" +
353      "    TextInput (b) {}" +
354      "    Interaction {}" +
355      "    Interaction {}" +
356      "    TextInput (c) {}" +
357      "  }" +
358      "  Iteration {" +
359      "    TextInput (d) {}" +
360      "  }" +
361      "  Interaction {}" +
362      "  Selection {" +
363      "    Interaction {}" +
364      "    TextInput (e) {}" +
365      "    Interaction {}" +
366      "    Interaction {}" +
367      "    TextInput (g) {}" +
368      "    Interaction {}" +
369      "  }" +
370      "  Sequence {" +
371      "    TextInput (i) {}" +
372      "    Sequence {" +
373      "      TextInput (j) {}" +
374      "      Interaction {}" +
375      "      TextInput (k) {}" +
376      "      Interaction {}" +
377      "      Interaction {}" +
378      "      TextInput (m) {}" +
379      "      Interaction {}" +
380      "    }" +
381      "    Iteration {" +
382      "      Interaction {}" +
383      "    }" +
384      "    Interaction {}" +
385      "    Selection {" +
386      "      TextInput (o) {}" +
387      "      Interaction {}" +
388      "      Interaction {}" +
389      "      Interaction {}" +
390      "      Interaction {}" +
391      "      TextInput (s) {}" +
392      "      Interaction {}" +
393      "      TextInput (t) {}" +
394      "      TextInput (u) {}" +
395      "    }" +
396      "  }" +
397      "  Selection {" +
398      "    Interaction {}" +
399      "    Sequence {" +
400      "      TextInput (v) {}" +
401      "      Interaction {}" +
402      "      Interaction {}" +
403      "      TextInput (x) {}" +
404      "      Interaction {}" +
405      "    }" +
406      "    Iteration {" +
407      "      TextInput (y) {}" +
408      "    }" +
409      "    TextInput (z) {}" +
410      "    Selection {" +
411      "      TextInput (aa) {}" +
412      "      Interaction {}" +
413      "      TextInput (ab) {}" +
414      "      Interaction {}" +
415      "      Interaction {}" +
416      "      TextInput (ad) {}" +
417      "    }" +
418      "  }" +
419      "  Interaction {}" +
420      "}";
421
422    expectedDefects = new UsabilityDefect[]
423    {
424      new UsabilityDefect(INFO, TEXT_FIELD_INPUT_RATIO)
425    };
426
427    assertUsabilityEvaluationResult
428      (expectedDefects, manager.evaluateUsability(createTaskTree(spec)));   
429  }
430
431  //-----------------------------------------------------------------------------------------------
432  /**
433   * TODO: comment
434   *
435   */
436  //-----------------------------------------------------------------------------------------------
437  @Test
438  public void testTextEntryRepetitions()
439  {
440    UsabilityEvaluationManager manager = new UsabilityEvaluationManager();
441   
442    // ===== check =====
443    String spec =
444      "Sequence {" +
445      "  TextInput (a b c) {}" +
446      "  Sequence {" +
447      "    TextInput (a) {}" +
448      "    TextInput (b) {}" +
449      "    TextInput (c) {}" +
450      "    TextInput (a) {}" +
451      "  }" +
452      "  Iteration {" +
453      "    TextInput (a) {}" +
454      "  }" +
455      "  TextInput (a) {}" +
456      "  Selection {" +
457      "    TextInput (b c) {}" +
458      "    TextInput (a) {}" +
459      "    TextInput (a c) {}" +
460      "    TextInput (b a) {}" +
461      "  }" +
462      "  Sequence {" +
463      "    TextInput (b c) {}" +
464      "    Sequence {" +
465      "      TextInput (d a c) {}" +
466      "      TextInput (b b b a) {}" +
467      "      TextInput (a a c c) {}" +
468      "      TextInput (b b a) {}" +
469      "    }" +
470      "  }" +
471      "  TextInput (d) {}" +
472      "}";
473     
474    UsabilityDefect[] expectedDefects = new UsabilityDefect[]
475    {
476      new UsabilityDefect(HIGH, TEXT_FIELD_INPUT_RATIO),
477      new UsabilityDefect(HIGH, TEXT_FIELD_INPUT_REPETITIONS)
478    };
479   
480    assertUsabilityEvaluationResult
481      (expectedDefects, manager.evaluateUsability(createTaskTree(spec)));   
482
483    // ===== check =====
484    spec =
485      "Sequence {" +
486      "  TextInput (a b c d e f g h i j k l m) {}" +
487      "  Sequence {" +
488      "    TextInput (a) {}" +
489      "    TextInput (b) {}" +
490      "    TextInput (c) {}" +
491      "    TextInput (d) {}" +
492      "  }" +
493      "  Iteration {" +
494      "    TextInput (e) {}" +
495      "  }" +
496      "  TextInput (f) {}" +
497      "  Selection {" +
498      "    TextInput (g) {}" +
499      "    TextInput (h) {}" +
500      "    TextInput (i) {}" +
501      "    TextInput (j) {}" +
502      "  }" +
503      "  Sequence {" +
504      "    TextInput (k) {}" +
505      "    Sequence {" +
506      "      TextInput (l) {}" +
507      "      TextInput (m) {}" +
508      "      TextInput (n) {}" +
509      "      TextInput (o) {}" +
510      "    }" +
511      "  }" +
512      "  TextInput (p) {}" +
513      "}";
514
515    expectedDefects = new UsabilityDefect[]
516    {
517      new UsabilityDefect(HIGH, TEXT_FIELD_INPUT_RATIO),
518      new UsabilityDefect(HIGH, TEXT_FIELD_INPUT_REPETITIONS)
519    };
520
521    assertUsabilityEvaluationResult
522      (expectedDefects, manager.evaluateUsability(createTaskTree(spec)));
523
524    // ===== check =====
525    spec =
526      "Sequence {" +
527      "  TextInput (a b c d e f g h i j k l m) {}" +
528      "  Sequence {" +
529      "    TextInput (a) {}" +
530      "    TextInput (b) {}" +
531      "    TextInput (c) {}" +
532      "    TextInput (d) {}" +
533      "  }" +
534      "  Iteration {" +
535      "    TextInput (e) {}" +
536      "  }" +
537      "  TextInput (a) {}" +
538      "  Selection {" +
539      "    TextInput (b) {}" +
540      "    TextInput (c) {}" +
541      "    TextInput (d) {}" +
542      "    TextInput (e) {}" +
543      "  }" +
544      "  Sequence {" +
545      "    TextInput (a) {}" +
546      "    Sequence {" +
547      "      TextInput (b) {}" +
548      "      TextInput (c) {}" +
549      "      TextInput (d) {}" +
550      "      TextInput (e) {}" +
551      "    }" +
552      "  }" +
553      "  TextInput (f) {}" +
554      "}";
555
556    expectedDefects = new UsabilityDefect[]
557    {
558      new UsabilityDefect(HIGH, TEXT_FIELD_INPUT_RATIO),
559      new UsabilityDefect(MEDIUM, TEXT_FIELD_INPUT_REPETITIONS)
560    };
561
562    assertUsabilityEvaluationResult
563      (expectedDefects, manager.evaluateUsability(createTaskTree(spec)));
564 
565    // ===== check =====
566    spec =
567      "Sequence {" +
568      "  TextInput (a b c d e f g h i j k l m) {}" +
569      "  Sequence {" +
570      "    TextInput (a) {}" +
571      "    TextInput (b) {}" +
572      "    TextInput (c) {}" +
573      "    TextInput (a) {}" +
574      "  }" +
575      "  Iteration {" +
576      "    TextInput (b) {}" +
577      "  }" +
578      "  TextInput (c) {}" +
579      "  Selection {" +
580      "    TextInput (a) {}" +
581      "    TextInput (b) {}" +
582      "    TextInput (c) {}" +
583      "    TextInput (a) {}" +
584      "  }" +
585      "  Sequence {" +
586      "    TextInput (b) {}" +
587      "    Sequence {" +
588      "      TextInput (c) {}" +
589      "      TextInput (a) {}" +
590      "      TextInput (b) {}" +
591      "      TextInput (c) {}" +
592      "    }" +
593      "  }" +
594      "  TextInput (a) {}" +
595      "}";
596
597    expectedDefects = new UsabilityDefect[]
598    {
599      new UsabilityDefect(HIGH, TEXT_FIELD_INPUT_RATIO),
600      new UsabilityDefect(MEDIUM, TEXT_FIELD_INPUT_REPETITIONS)
601    };
602
603    assertUsabilityEvaluationResult
604      (expectedDefects, manager.evaluateUsability(createTaskTree(spec)));
605   
606    // ===== check =====
607    spec =
608      "Sequence {" +
609      "  TextInput (a b c) {}" +
610      "  Sequence {" +
611      "    TextInput (a) {}" +
612      "    TextInput (b) {}" +
613      "    TextInput (c) {}" +
614      "  }" +
615      "}";
616
617    expectedDefects = new UsabilityDefect[]
618    {
619      new UsabilityDefect(HIGH, TEXT_FIELD_INPUT_RATIO),
620      new UsabilityDefect(LOW, TEXT_FIELD_INPUT_REPETITIONS)
621    };
622
623    assertUsabilityEvaluationResult
624      (expectedDefects, manager.evaluateUsability(createTaskTree(spec)));
625     
626    // ===== check =====
627    spec =
628      "Sequence {" +
629      "  TextInput (a b c) {}" +
630      "  Sequence {" +
631      "    TextInput (a) {}" +
632      "    TextInput (a) {}" +
633      "    TextInput (b) {}" +
634      "  }" +
635      "}";
636
637    expectedDefects = new UsabilityDefect[]
638    {
639      new UsabilityDefect(HIGH, TEXT_FIELD_INPUT_RATIO),
640      new UsabilityDefect(LOW, TEXT_FIELD_INPUT_REPETITIONS)
641    };
642
643    assertUsabilityEvaluationResult
644      (expectedDefects, manager.evaluateUsability(createTaskTree(spec)));
645       
646    // ===== check =====
647    spec =
648      "Sequence {" +
649      "  TextInput (a b c) {}" +
650      "  Sequence {" +
651      "    TextInput (a) {}" +
652      "    TextInput (d) {}" +
653      "    TextInput (e) {}" +
654      "  }" +
655      "}";
656
657    expectedDefects = new UsabilityDefect[]
658    {
659      new UsabilityDefect(HIGH, TEXT_FIELD_INPUT_RATIO),
660      new UsabilityDefect(INFO, TEXT_FIELD_INPUT_REPETITIONS)
661    };
662
663    assertUsabilityEvaluationResult
664      (expectedDefects, manager.evaluateUsability(createTaskTree(spec)));
665         
666  }
667
668  //-----------------------------------------------------------------------------------------------
669  /**
670   * TODO: comment
671   *
672   */
673  //-----------------------------------------------------------------------------------------------
674  @Test
675  public void testNoLetterOrDigitInput()
676  {
677    UsabilityEvaluationManager manager = new UsabilityEvaluationManager();
678   
679    // ===== check =====
680    String spec =
681      "Sequence {" +
682      "  TextInput (_a_b_c_) {}" +
683      "}";
684     
685    UsabilityDefect[] expectedDefects = new UsabilityDefect[]
686    {
687      new UsabilityDefect(HIGH, TEXT_FIELD_INPUT_RATIO),
688      new UsabilityDefect(HIGH, TEXT_FIELD_NO_LETTER_OR_DIGIT_RATIO)
689    };
690   
691    assertUsabilityEvaluationResult
692      (expectedDefects, manager.evaluateUsability(createTaskTree(spec)));   
693
694    // ===== check =====
695    spec =
696      "Sequence {" +
697      "  TextInput (12345_6789012345) {}" +
698      "}";
699     
700    expectedDefects = new UsabilityDefect[]
701    {
702      new UsabilityDefect(HIGH, TEXT_FIELD_INPUT_RATIO),
703      new UsabilityDefect(MEDIUM, TEXT_FIELD_NO_LETTER_OR_DIGIT_RATIO)
704    };
705   
706    assertUsabilityEvaluationResult
707      (expectedDefects, manager.evaluateUsability(createTaskTree(spec)));   
708
709    // ===== check =====
710    spec =
711      "Sequence {" +
712      "  TextInput (123456789012345678901234567890_123456789012345) {}" +
713      "}";
714     
715    expectedDefects = new UsabilityDefect[]
716    {
717      new UsabilityDefect(HIGH, TEXT_FIELD_INPUT_RATIO),
718      new UsabilityDefect(LOW, TEXT_FIELD_NO_LETTER_OR_DIGIT_RATIO)
719    };
720   
721    assertUsabilityEvaluationResult
722      (expectedDefects, manager.evaluateUsability(createTaskTree(spec)));   
723
724    // ===== check =====
725    spec =
726      "Sequence {" +
727      "  TextInput (1234567890123456789012345678901234567890123456789_01234567890" +
728      "12345678901234567890123456789012345) {}" +
729      "}";
730     
731    expectedDefects = new UsabilityDefect[]
732    {
733      new UsabilityDefect(HIGH, TEXT_FIELD_INPUT_RATIO),
734      new UsabilityDefect(INFO, TEXT_FIELD_NO_LETTER_OR_DIGIT_RATIO)
735    };
736   
737    assertUsabilityEvaluationResult
738      (expectedDefects, manager.evaluateUsability(createTaskTree(spec)));   
739
740  }
741}
Note: See TracBrowser for help on using the repository browser.