public abstract class

CompileStrategy

extends Object
java.lang.Object
   ↳ com.google.gwt.junit.CompileStrategy

Class Overview

An interface that specifies how modules should be compiled.

Summary

Public Constructors
CompileStrategy(JUnitShell junitShell)
Construct a CompileStrategy.
Public Methods
void maybeAddTestBlockForCurrentTest(GWTTestCase testCase, BatchingStrategy batchingStrategy)
Maybe add a test block for the currently executed test case.
void maybeCompileAhead()
Let the compile strategy compile another module.
abstract ModuleDef maybeCompileModule(String moduleName, String syntheticModuleName, JUnitShell.Strategy strategy, BatchingStrategy batchingStrategy, TreeLogger treeLogger)
Compile a single module using a synthetic module that adds JUnit support.
Protected Methods
ModuleDef maybeCompileModuleImpl(String moduleName, String syntheticModuleName, JUnitShell.Strategy strategy, BatchingStrategy batchingStrategy, TreeLogger treeLogger)
Compile a single module using a synthetic module that adds JUnit support.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CompileStrategy (JUnitShell junitShell)

Construct a CompileStrategy.

Public Methods

public void maybeAddTestBlockForCurrentTest (GWTTestCase testCase, BatchingStrategy batchingStrategy)

Maybe add a test block for the currently executed test case.

Parameters
testCase the test case being run
batchingStrategy the batching strategy

public void maybeCompileAhead ()

Let the compile strategy compile another module. This is called while JUnitShell is waiting for the current test to complete.

Throws
UnableToCompleteException if the compilation fails

public abstract ModuleDef maybeCompileModule (String moduleName, String syntheticModuleName, JUnitShell.Strategy strategy, BatchingStrategy batchingStrategy, TreeLogger treeLogger)

Compile a single module using a synthetic module that adds JUnit support.

Parameters
moduleName the module name
syntheticModuleName the synthetic module name
strategy the strategy
batchingStrategy the batching strategy
treeLogger the logger
Returns
  • the ModuleDef describing the synthetic module
Throws
UnableToCompleteException

Protected Methods

protected ModuleDef maybeCompileModuleImpl (String moduleName, String syntheticModuleName, JUnitShell.Strategy strategy, BatchingStrategy batchingStrategy, TreeLogger treeLogger)

Compile a single module using a synthetic module that adds JUnit support.

Parameters
moduleName the module name
syntheticModuleName the synthetic module name
strategy the strategy
batchingStrategy the batching strategy
treeLogger the logger
Returns
  • the ModuleDef describing the synthetic module
Throws
UnableToCompleteException