@@ -0,0 +1,1813 @@
+/**%0A * %3CLicense%3E%0A */%0Apackage edu.colorado.csdms.wmt.client;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport com.google.gwt.core.client.JsArrayInteger;%0Aimport com.google.gwt.junit.client.GWTTestCase;%0A%0Aimport edu.colorado.csdms.wmt.client.data.LabelModelQueryJSO;%0A%0A/**%0A * Tests for %7B@link LabelModelQueryJSO%7D. JUnit integration is provided by%0A * extending %7B@link GWTTestCase%7D.%0A * %0A * @see http://www.gwtproject.org/doc/latest/DevGuideTesting.html%0A * @see http://www.gwtproject.org/doc/latest/tutorial/JUnit.html%0A * @see http%0A *      ://blog.danielwellman.com/2008/08/testing-json-parsing-using-javascript%0A *      -overlay-types-in-gwt-15.html%0A * @author Mark Piper (mark.piper@colorado.edu)%0A */%0Apublic class LabelModelQueryJSOTest extends GWTTestCase %7B%0A%0A  private LabelModelQueryJSO jso;%0A  private JsArrayInteger ids;%0A  %0A  /**%0A   * The module that sources this class. Must be present.%0A   */%0A  @Override%0A  public String getModuleName() %7B%0A     return %22edu.colorado.csdms.wmt.WMT%22;%0A  %7D%0A  %0A  /**%0A   * A JSNI method that defines a fixture for the tests. Returns a%0A   * %7B@link LabelModelQueryJSO%7D object for testing.%0A   * %0A   * @param ids%0A   */%0A  private native LabelModelQueryJSO testLabelModelQueryJSO(JsArrayInteger ids) /*-%7B%0A%09%09return %7B%0A%09%09%09%22ids%22 : ids%0A%09%09%7D%0A  %7D-*/;  %0A  %0A  @Before%0A  @Override%0A  protected void gwtSetUp() throws Exception %7B%0A    ids = (JsArrayInteger) JsArrayInteger.createArray();%0A    ids.push(4);%0A    ids.push(3);%0A    ids.push(12);%0A    jso = testLabelModelQueryJSO(ids);%0A  %7D%0A%0A  @After%0A  @Override%0A  protected void gwtTearDown() throws Exception %7B%0A  %7D%0A%0A  @Test%0A  public void testLength() %7B%0A    int arrayLength = 3;%0A    assertEquals(arrayLength, jso.getModelIds().length());%0A  %7D%0A  %0A  @Test%0A  public void testGetModelIds() %7B%0A    assertEquals(ids, jso.getModelIds());%0A  %7D%0A%7D%0A

Add LabelModelQueryJSOTest