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

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