1 | // Copyright 2012 Georg-August-Universität Göttingen, Germany |
---|
2 | // |
---|
3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
---|
4 | // you may not use this file except in compliance with the License. |
---|
5 | // You may obtain a copy of the License at |
---|
6 | // |
---|
7 | // http://www.apache.org/licenses/LICENSE-2.0 |
---|
8 | // |
---|
9 | // Unless required by applicable law or agreed to in writing, software |
---|
10 | // distributed under the License is distributed on an "AS IS" BASIS, |
---|
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
12 | // See the License for the specific language governing permissions and |
---|
13 | // limitations under the License. |
---|
14 | |
---|
15 | package de.ugoe.cs.autoquest.usability; |
---|
16 | |
---|
17 | import static org.junit.Assert.assertNotNull; |
---|
18 | import static org.junit.Assert.assertNotSame; |
---|
19 | |
---|
20 | import java.util.HashMap; |
---|
21 | import java.util.Map; |
---|
22 | |
---|
23 | import org.junit.Test; |
---|
24 | |
---|
25 | import de.ugoe.cs.autoquest.usability.UsabilityDefectDescription; |
---|
26 | |
---|
27 | /** |
---|
28 | * TODO comment |
---|
29 | * |
---|
30 | * @version $Revision: $ $Date: 20.07.2012$ |
---|
31 | * @author 2012, last modified by $Author: pharms$ |
---|
32 | */ |
---|
33 | public class UsabilityDefectDescriptionTest { |
---|
34 | |
---|
35 | /** |
---|
36 | * TODO: comment |
---|
37 | * |
---|
38 | */ |
---|
39 | @Test |
---|
40 | public void testInitialization() { |
---|
41 | for (UsabilityDefectDescription description : UsabilityDefectDescription.values()) { |
---|
42 | assertNotNull(description.toString()); |
---|
43 | assertNotSame("", description.toString()); |
---|
44 | System.err.println(description); |
---|
45 | } |
---|
46 | } |
---|
47 | |
---|
48 | /** |
---|
49 | * TODO: comment |
---|
50 | * |
---|
51 | */ |
---|
52 | @Test |
---|
53 | public void testParameterization() { |
---|
54 | for (UsabilityDefectDescription description : UsabilityDefectDescription.values()) { |
---|
55 | Map<String, String> parameters = new HashMap<String, String>(); |
---|
56 | |
---|
57 | for (String parameter : description.getDescriptionParameters()) { |
---|
58 | parameters.put(parameter, "<parameter " + parameter + ">"); |
---|
59 | } |
---|
60 | |
---|
61 | assertNotNull(description.toString(parameters)); |
---|
62 | assertNotSame("", description.toString(parameters)); |
---|
63 | System.err.println(description.toString(parameters)); |
---|
64 | } |
---|
65 | } |
---|
66 | |
---|
67 | } |
---|