Package com.google.gwt.junit.tools

Examples of com.google.gwt.junit.tools.GWTTestSuite


* Gen2 test suite.
*/
public class Gen2Suite {
  /** These tests should eventually be refactored into their own sub-suites. */
  public static Test suite() {
    GWTTestSuite suite = new GWTTestSuite(
        "Tests for gen2 widgets and libraries.");

    suite.addTestSuite(GWTEventsTest.class);
    suite.addTestSuite(JSHanderRegistryTest.class);
    suite.addTestSuite(DropDownListBoxTest.class);
    suite.addTestSuite(DecoratorTest.class);
    suite.addTestSuite(LogServerTest.class);
    suite.addTestSuite(LogClientTest.class);
    suite.addTestSuite(FastTreeTest.class);
    return suite;
  }
View Full Code Here


* @author jpk
*/
public class FieldGWTTestSuite extends TestSuite {

  public static Test suite() {
    final TestSuite gwtTestSuite = new GWTTestSuite();
    gwtTestSuite.addTestSuite(FieldGWTTest.class);
    gwtTestSuite.addTestSuite(FieldGroupGWTTest.class);
    // gwtTestSuite.addTestSuite(ModelBindingGWTTest.class);
    // gwtTestSuite.addTestSuite(FieldBindingGWTTest.class);
    return gwtTestSuite;
  }
View Full Code Here

* Runs all _gwt tests. Grouping them into a suite is much faster than running each as a one-test
* "suite," as the per-suite setup is expensive.
*/
public class GwtTestSuite extends TestCase {
  public static Test suite() throws IOException {
    GWTTestSuite suite = new GWTTestSuite();
    for (ClassInfo info
        : ClassPath.from(GwtTestSuite.class.getClassLoader()).getTopLevelClasses()) {
      if (info.getName().endsWith("_gwt")) {
        Class<?> clazz = info.load();
        // TODO(cpovirk): why does asSubclass() throw? Is it something about ClassLoaders?
        @SuppressWarnings("unchecked")
        Class<? extends GWTTestCase> cast = (Class<? extends GWTTestCase>) clazz;
        suite.addTestSuite(cast);
      }
    }
    return suite;
  }
View Full Code Here

*         <br>Time: 12:05:58
*/
public class GWTEventServiceGWTTestSuite extends TestSuite
{
    public static Test suite() {
        GWTTestSuite theGWTEventServiceGWTTestSuite = new GWTTestSuite("GWTEventService - GWT-Tests");

        // --- GWT-Tests ---

        // Event
        theGWTEventServiceGWTTestSuite.addTestSuite(GwtTestRemoteEventService.class);

        // Connection
        theGWTEventServiceGWTTestSuite.addTestSuite(GwtTestGWTStreamingClientConnector.class);
        theGWTEventServiceGWTTestSuite.addTestSuite(GwtTestGWTStreamingClientConnectorGecko.class);

        return theGWTEventServiceGWTTestSuite;
    }
View Full Code Here

/**
* Test suite for SafeCss GWTTestCases.
*/
public class SafeCssJreSuite {
  public static Test suite() {
    GWTTestSuite suite = new GWTTestSuite("Test suite for safe css tests that require the JRE");

    suite.addTestSuite(SafeStylesBuilderTest.class);
    suite.addTestSuite(SafeStylesHostedModeUtilsTest.class);
    suite.addTestSuite(SafeStylesStringTest.class);
    suite.addTestSuite(SafeStylesUtilsTest.class);

    return suite;
  }
View Full Code Here

     */
    BootStrapPlatform.applyPlatformHacks();
  }

  public static Test suite() {
    GWTTestSuite suite = new GWTTestSuite(
        "Test for com.google.gwt.user.client.rpc.core.java.util.logging");

    // GWTTestCases
    suite.addTestSuite(LoggingRPCTest.class);

    return suite;
  }
View Full Code Here

/**
* Test suite for SafeCss GWTTestCases.
*/
public class SafeCssGwtSuite {
  public static Test suite() {
    GWTTestSuite suite = new GWTTestSuite("Test suite for safe css  GWTTestCases");

    suite.addTestSuite(GwtSafeStylesBuilderTest.class);
    suite.addTestSuite(GwtSafeStylesHostedModeUtilsTest.class);
    suite.addTestSuite(GwtSafeStylesStringTest.class);
    suite.addTestSuite(GwtSafeStylesUtilsTest.class);

    return suite;
  }
View Full Code Here

* Various tests split out from UISuite because they're not in gwt.client.ui.
*/
public class MiscSuite {

  public static Test suite() {
    GWTTestSuite suite = new GWTTestSuite("Miscellaneous GWT tests");
    suite.addTestSuite(CalendarUtilTest.class);
    suite.addTestSuite(CommandExecutorTest.class);
    suite.addTestSuite(CookieTest.class);
    suite.addTestSuite(DateChangeEventTest.class);
    suite.addTestSuite(DoubleClickEventSinkTest.class);
    suite.addTestSuite(DragAndDropEventsSinkTest.class);
    suite.addTestSuite(EventTest.class);
    suite.addTestSuite(GestureEventSinkTest.class);
    suite.addTestSuite(ImageBundleGeneratorTest.class);
    suite.addTestSuite(LayoutTest.class);
    suite.addTestSuite(TimerTest.class);
    suite.addTestSuite(TouchEventSinkTest.class);
    suite.addTestSuite(WindowTest.class);
    suite.addTestSuite(XMLTest.class);
    return suite;
  }
View Full Code Here

/**
* Tests of Touch support.
*/
public class TouchSuite {
  public static Test suite() {
    GWTTestSuite suite = new GWTTestSuite("Test suite for Touch support");

    suite.addTestSuite(DefaultMomentumTest.class);
    suite.addTestSuite(PointTest.class);
    suite.addTestSuite(TouchScrollTest.class);

    return suite;
  }
View Full Code Here

     */
    BootStrapPlatform.applyPlatformHacks();
  }

  public static Test suite() {
    GWTTestSuite suite = new GWTTestSuite(
        "Test for com.google.gwt.user.client.rpc");

    // Non GWTTestCases: see RpcJreSuite

    // GWTTestCases
    suite.addTestSuite(ValueTypesTest.class);
    suite.addTestSuite(EnumsTest.class);
    suite.addTestSuite(FinalFieldsFalseTest.class);
    suite.addTestSuite(InheritanceTest.class);
    suite.addTestSuite(CollectionsTest.class);
    suite.addTestSuite(CoreJavaTest.class);
    suite.addTestSuite(CustomFieldSerializerTest.class);
    suite.addTestSuite(ExceptionsTest.class);
    suite.addTestSuite(ObjectGraphTest.class);
    suite.addTestSuite(com.google.gwt.user.client.rpc.RemoteServiceServletTest.class);
    suite.addTestSuite(RpcTokenTest.class);
    suite.addTestSuite(UnicodeEscapingTest.class);
    suite.addTestSuite(RunTimeSerializationErrorsTest.class);
    suite.addTestSuite(RecursiveClassTest.class);
    suite.addTestSuite(TypeCheckedObjectsTest.class);
    suite.addTestSuite(XsrfProtectionTest.class);
    suite.addTestSuite(FailedRequestTest.class);
    suite.addTestSuite(FailingRequestBuilderTest.class);

    // This test turns on the type-elision feature of RPC
    suite.addTestSuite(ValueTypesTestWithTypeObfuscation.class);
    suite.addTestSuite(EnumsTestWithTypeObfuscation.class);
    suite.addTestSuite(InheritanceTestWithTypeObfuscation.class);
    suite.addTestSuite(CollectionsTestWithTypeObfuscation.class);
    suite.addTestSuite(CustomFieldSerializerTestWithTypeObfuscation.class);
    suite.addTestSuite(ObjectGraphTestWithTypeObfuscation.class);
    suite.addTestSuite(
        com.google.gwt.user.client.rpc.RemoteServiceServletTestWithTypeObfuscation.class);
    suite.addTestSuite(UnicodeEscapingTestWithTypeObfuscation.class);
    suite.addTestSuite(RpcTokenTestWithTypeObfuscation.class);
    return suite;
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.junit.tools.GWTTestSuite

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.