Search in sources :

Example 1 with GWTTestSuite

use of com.google.gwt.junit.tools.GWTTestSuite in project guava by google.

the class GwtTestSuite method suite.

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;
}
Also used : GWTTestCase(com.google.gwt.junit.client.GWTTestCase) GWTTestSuite(com.google.gwt.junit.tools.GWTTestSuite) ClassInfo(com.google.common.reflect.ClassPath.ClassInfo)

Example 2 with GWTTestSuite

use of com.google.gwt.junit.tools.GWTTestSuite in project rstudio by rstudio.

the class RStudioUnitTestSuite method suite.

public static Test suite() {
    GWTTestSuite suite = new GWTTestSuite("RStudio Unit Test Suite");
    suite.addTestSuite(RTokenizerTests.class);
    suite.addTestSuite(VirtualConsoleTests.class);
    suite.addTestSuite(StringUtilTests.class);
    suite.addTestSuite(DomUtilsTests.class);
    return suite;
}
Also used : GWTTestSuite(com.google.gwt.junit.tools.GWTTestSuite)

Example 3 with GWTTestSuite

use of com.google.gwt.junit.tools.GWTTestSuite in project auto by google.

the class GwtSerializerSuite method suite.

public static Test suite() {
    GWTTestSuite suite = new GWTTestSuite();
    suite.addTestSuite(GwtSerializerTest.class);
    return suite;
}
Also used : GWTTestSuite(com.google.gwt.junit.tools.GWTTestSuite)

Aggregations

GWTTestSuite (com.google.gwt.junit.tools.GWTTestSuite)3 ClassInfo (com.google.common.reflect.ClassPath.ClassInfo)1 GWTTestCase (com.google.gwt.junit.client.GWTTestCase)1