@@ -0,0 +1,2759 @@
+package edu.colorado.csdms.wmt;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport edu.colorado.csdms.wmt.client.data.Value;%0A%0A/**%0A * Tests for %7B@link Value%7D.%0A * %0A * @author Mark Piper (mark.piper@colorado.edu)%0A */%0Apublic class ValueTest %7B%0A%0A  private Value value;%0A  private String type;%0A  private String units;%0A  private String defaultValue;%0A  private String minValue;%0A  private String maxValue;%0A//  private String%5B%5D choices;%0A  %0A  @Before%0A  public void setUp() throws Exception %7B%0A    type = %22test%22;%0A    units = %22test%22;%0A    defaultValue = %22test%22;%0A    minValue = %22test%22;%0A    maxValue = %22test%22;%0A//    choices = new String%5B%5D %7B%22test%22%7D;%0A    value = new Value();%0A    value.setType(type);%0A    value.setUnits(units);%0A    value.setDefaultValue(defaultValue);%0A    value.setMinValue(minValue);%0A    value.setMaxValue(maxValue);%0A//    value.setChoices(choices);%0A  %7D%0A%0A  @After%0A  public void tearDown() throws Exception %7B%0A  %7D%0A%0A  @Test%0A  public void testValueZeroArgCtr() %7B%0A    Value value0 = new Value();%0A    assertNotNull(value0);%0A    assertNull(value0.getType());%0A    assertNull(value0.getUnits());%0A    assertNull(value0.getDefaultValue());%0A    assertNull(value0.getMinValue());%0A    assertNull(value0.getMaxValue());%0A    assertNull(value0.getChoices());    %0A  %7D%0A%0A  @Test%0A  public void testValueJSOCtr() %7B%0A    // TODO Complete with GWTTestCase%0A  %7D%0A%0A  @Test%0A  public void testGetType() %7B%0A    assertEquals(type, value.getType());%0A  %7D%0A%0A  @Test%0A  public void testSetType() %7B%0A    String newType = %22foo%22;%0A    value.setType(newType);%0A    assertEquals(newType, value.getType());%0A  %7D%0A%0A  @Test%0A  public void testGetUnits() %7B%0A    assertEquals(units, value.getUnits());%0A  %7D%0A%0A  @Test%0A  public void testSetUnits() %7B%0A    String newUnits = %22foo%22;%0A    value.setUnits(newUnits);%0A    assertEquals(newUnits, value.getUnits());%0A  %7D%0A%0A  @Test%0A  public void testGetDefaultValue() %7B%0A    assertEquals(defaultValue, value.getDefaultValue());%0A  %7D%0A%0A  @Test%0A  public void testSetDefaultValue() %7B%0A    String newDefault = %22foo%22;%0A    value.setDefaultValue(newDefault);%0A    assertEquals(newDefault, value.getDefaultValue());%0A  %7D%0A%0A  @Test%0A  public void testGetMinValue() %7B%0A    assertEquals(minValue, value.getMinValue());%0A  %7D%0A%0A  @Test%0A  public void testSetMinValue() %7B%0A    String newMin = %22foo%22;%0A    value.setMinValue(newMin);%0A    assertEquals(newMin, value.getMinValue());%0A  %7D%0A%0A  @Test%0A  public void testGetMaxValue() %7B%0A    assertEquals(maxValue, value.getMaxValue());%0A  %7D%0A%0A  @Test%0A  public void testSetMaxValue() %7B%0A    String newMax = %22foo%22;%0A    value.setMaxValue(newMax);%0A    assertEquals(newMax, value.getMaxValue());%0A  %7D%0A%0A  @Test%0A  public void testGetChoices() %7B%0A    // TODO%0A  %7D%0A%0A  @Test%0A  public void testSetChoices() %7B%0A    // TODO%0A  %7D%0A%0A%7D%0A

Add unit tests for Value class