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

Last change on this file since 655 was 655, checked in by pharms, 12 years ago
  • removed old copyright file header
File size: 1.3 KB
Line 
1package de.ugoe.cs.quest.usability;
2
3import static org.junit.Assert.assertNotNull;
4import static org.junit.Assert.assertNotSame;
5
6import java.util.HashMap;
7import java.util.Map;
8
9import org.junit.Test;
10
11/**
12 * TODO comment
13 *
14 * @version $Revision: $ $Date: 20.07.2012$
15 * @author 2012, last modified by $Author: pharms$
16 */
17public class UsabilityDefectDescriptionTest {
18
19    /**
20     * TODO: comment
21     *
22     */
23    @Test
24    public void testInitialization() {
25        for (UsabilityDefectDescription description : UsabilityDefectDescription.values()) {
26            assertNotNull(description.toString());
27            assertNotSame("", description.toString());
28            System.err.println(description);
29        }
30    }
31
32    /**
33     * TODO: comment
34     *
35     */
36    @Test
37    public void testParameterization() {
38        for (UsabilityDefectDescription description : UsabilityDefectDescription.values()) {
39            Map<String, String> parameters = new HashMap<String, String>();
40
41            for (String parameter : description.getDescriptionParameters()) {
42                parameters.put(parameter, "<parameter " + parameter + ">");
43            }
44
45            assertNotNull(description.toString(parameters));
46            assertNotSame("", description.toString(parameters));
47            System.err.println(description.toString(parameters));
48        }
49    }
50
51}
Note: See TracBrowser for help on using the repository browser.