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

Last change on this file since 497 was 497, checked in by pharms, 12 years ago
  • added further text entry based evaluation rule
File size: 2.3 KB
Line 
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//-------------------------------------------------------------------------------------------------
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/**
20 * TODO comment
21 *
22 * @version $Revision: $ $Date: 20.07.2012$
23 * @author 2012, last modified by $Author: pharms$
24 */
25//-------------------------------------------------------------------------------------------------
26public 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}
Note: See TracBrowser for help on using the repository browser.