Package com.google.gwt.junit.JUnitShell

Examples of com.google.gwt.junit.JUnitShell.Strategy


  /**
   * GWT-unfriendly, forcing us to use a translatable class.
   */
  @Override
  public Strategy getStrategy() {
    final Strategy impl = super.getStrategy();
    return new Strategy() {
      @Override
      public String getSyntheticModuleExtension() {
        return impl.getSyntheticModuleExtension();
      }

      @Override
      public void processModule(ModuleDef module) {
        impl.processModule(module);
        try {
          JUnitBridge.compileForWebMode(module);
        } catch (UnableToCompleteException e) {
          throw new RuntimeException("Failed to manually compile test module",
              e);
View Full Code Here


    }
  }

  public void testGetStrategy() {
    GWTTestCase testCase = new MockGWTTestCase();
    Strategy strategy = testCase.getStrategy();
    assertEquals("JUnit", strategy.getSyntheticModuleExtension());
    assertEquals("com.google.gwt.mock.Mock.JUnit",
        testCase.getSyntheticModuleName());
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.junit.JUnitShell.Strategy

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.