[474] | 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 |
---|
[561] | 6 | |
---|
| 7 | |
---|
[474] | 8 | package de.ugoe.cs.quest.usability; |
---|
| 9 | |
---|
[497] | 10 | import static org.junit.Assert.assertNotNull; |
---|
| 11 | import static org.junit.Assert.assertNotSame; |
---|
[474] | 12 | |
---|
[475] | 13 | import java.util.HashMap; |
---|
| 14 | import java.util.Map; |
---|
| 15 | |
---|
[474] | 16 | import 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 | */ |
---|
[561] | 24 | public class UsabilityDefectDescriptionTest { |
---|
[474] | 25 | |
---|
[561] | 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 | } |
---|
[475] | 37 | } |
---|
[474] | 38 | |
---|
[561] | 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 | } |
---|
[475] | 56 | } |
---|
| 57 | |
---|
[474] | 58 | } |
---|