1 | //------------------------------------------------------------------------------------------------- |
---|
2 | // Module : $RCSfile: UsabilityDefectDescriptionTest.java,v $ |
---|
3 | // Version : $Revision: 0.0 $ $Author: pharms $ $Date: 20.07.2012 $ |
---|
4 | // Project : UsabilityEvaluationManager |
---|
5 | // Creation : 2012 by pharms |
---|
6 | // Copyright : Patrick Harms, 2012 |
---|
7 | //------------------------------------------------------------------------------------------------- |
---|
8 | package de.ugoe.cs.quest.usability; |
---|
9 | |
---|
10 | import static org.junit.Assert.assertNotNull; |
---|
11 | import static org.junit.Assert.assertNotSame; |
---|
12 | |
---|
13 | import java.util.HashMap; |
---|
14 | import java.util.Map; |
---|
15 | |
---|
16 | import org.junit.Test; |
---|
17 | |
---|
18 | //------------------------------------------------------------------------------------------------- |
---|
19 | /** |
---|
20 | * TODO comment |
---|
21 | * |
---|
22 | * @version $Revision: $ $Date: 20.07.2012$ |
---|
23 | * @author 2012, last modified by $Author: pharms$ |
---|
24 | */ |
---|
25 | //------------------------------------------------------------------------------------------------- |
---|
26 | public class UsabilityDefectDescriptionTest |
---|
27 | { |
---|
28 | |
---|
29 | //----------------------------------------------------------------------------------------------- |
---|
30 | /** |
---|
31 | * TODO: comment |
---|
32 | * |
---|
33 | */ |
---|
34 | //----------------------------------------------------------------------------------------------- |
---|
35 | @Test |
---|
36 | public void testInitialization() |
---|
37 | { |
---|
38 | for (UsabilityDefectDescription description : UsabilityDefectDescription.values()) |
---|
39 | { |
---|
40 | assertNotNull(description.toString()); |
---|
41 | assertNotSame("", description.toString()); |
---|
42 | System.err.println(description); |
---|
43 | } |
---|
44 | } |
---|
45 | |
---|
46 | //----------------------------------------------------------------------------------------------- |
---|
47 | /** |
---|
48 | * TODO: comment |
---|
49 | * |
---|
50 | */ |
---|
51 | //----------------------------------------------------------------------------------------------- |
---|
52 | @Test |
---|
53 | public void testParameterization() |
---|
54 | { |
---|
55 | for (UsabilityDefectDescription description : UsabilityDefectDescription.values()) |
---|
56 | { |
---|
57 | Map<String, String> parameters = new HashMap<String, String>(); |
---|
58 | |
---|
59 | for (String parameter : description.getDescriptionParameters()) |
---|
60 | { |
---|
61 | parameters.put(parameter, "<parameter " + parameter + ">"); |
---|
62 | } |
---|
63 | |
---|
64 | assertNotNull(description.toString(parameters)); |
---|
65 | assertNotSame("", description.toString(parameters)); |
---|
66 | System.err.println(description.toString(parameters)); |
---|
67 | } |
---|
68 | } |
---|
69 | |
---|
70 | } |
---|