/*
 * Copyright (c) 2011 David Saff
 * Copyright (c) 2011 Christian Gruber
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.truth;

import static org.truth.Truth.ASSERT;

import com.google.gwt.junit.client.GWTTestCase;

/**
 * Test of the GWT system.
 *
 * @author Christian Gruber (cgruber@israfil.net)
 */
public class TruthGwtTest extends GWTTestCase {

  @Override public String getModuleName() {
    return "org.truth.TruthTest";
  }

  public void testFoo() {
    ASSERT.that(457923).is(1);
  }

}

@@ -664,30 +664,99 @@
 tic 
-org.truth.Truth.ASSERT
+java.util.Arrays.asList;%0Aimport static org.truth.Truth.ASSERT;%0A%0Aimport java.util.Collection
 ;%0A%0Ai
@@ -1045,11 +1045,15 @@
 test
-Foo
+Integer
 () %7B
@@ -1080,17 +1080,820 @@
 923).is(
-1
+457923);%0A    try %7B%0A      ASSERT.that(457923).is(1);%0A      ASSERT.fail(%22Should have thrown an exception%22);%0A    %7D catch (Throwable t) %7B%0A      // succeeds%0A    %7D%0A  %7D%0A%0A  public void testString() %7B%0A    ASSERT.that(%22blah%22).contains(%22ah%22);%0A    ASSERT.that(%22blah%22).startsWith(%22bl%22);%0A    ASSERT.that(%22blah%22).endsWith(%22ah%22);%0A    try %7B%0A      ASSERT.that(%22blah%22).contains(%22foo%22);%0A      ASSERT.fail(%22Should have thrown an exception%22);%0A    %7D catch (Throwable t) %7B%0A      // succeeds%0A    %7D%0A  %7D%0A%0A  public void testIterable() %7B%0A    ASSERT.that((Iterable%3CInteger%3E)asList(1, 2, 3)).iteratesOverSequence(1, 2, 3);%0A  %7D%0A%0A  public void testCollection() %7B%0A    ASSERT.that((Collection%3CInteger%3E)asList(1, 2, 3)).contains(1, 2, 3).inOrder();%0A  %7D%0A%0A  public void testList() %7B%0A    ASSERT.that(asList(1, 2, 3)).contains(1, 2, 3).inOrder(
 );%0A  %7D%0A%0A

Add more tests for more subjects.