public abstract class CompileStrategy extends Object
Constructor and Description |
---|
CompileStrategy(JUnitShell junitShell)
Construct a CompileStrategy.
|
Modifier and Type | Method and Description |
---|---|
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 com.google.gwt.dev.cfg.ModuleDef |
maybeCompileModule(String moduleName,
String syntheticModuleName,
JUnitShell.Strategy strategy,
BatchingStrategy batchingStrategy,
com.google.gwt.core.ext.TreeLogger treeLogger)
Compile a single module using a synthetic module that adds JUnit support.
|
protected com.google.gwt.dev.cfg.ModuleDef |
maybeCompileModuleImpl(String moduleName,
String syntheticModuleName,
JUnitShell.Strategy strategy,
BatchingStrategy batchingStrategy,
com.google.gwt.core.ext.TreeLogger treeLogger)
Compile a single module using a synthetic module that adds JUnit support.
|
public CompileStrategy(JUnitShell junitShell)
junitShell
- public void maybeAddTestBlockForCurrentTest(GWTTestCase testCase, BatchingStrategy batchingStrategy)
testCase
- the test case being runbatchingStrategy
- the batching strategypublic void maybeCompileAhead() throws com.google.gwt.core.ext.UnableToCompleteException
JUnitShell
is waiting for the current test to complete.com.google.gwt.core.ext.UnableToCompleteException
- if the compilation failspublic abstract com.google.gwt.dev.cfg.ModuleDef maybeCompileModule(String moduleName, String syntheticModuleName, JUnitShell.Strategy strategy, BatchingStrategy batchingStrategy, com.google.gwt.core.ext.TreeLogger treeLogger) throws com.google.gwt.core.ext.UnableToCompleteException
moduleName
- the module namesyntheticModuleName
- the synthetic module namestrategy
- the strategybatchingStrategy
- the batching strategytreeLogger
- the loggerModuleDef
describing the synthetic modulecom.google.gwt.core.ext.UnableToCompleteException
protected com.google.gwt.dev.cfg.ModuleDef maybeCompileModuleImpl(String moduleName, String syntheticModuleName, JUnitShell.Strategy strategy, BatchingStrategy batchingStrategy, com.google.gwt.core.ext.TreeLogger treeLogger) throws com.google.gwt.core.ext.UnableToCompleteException
moduleName
- the module namesyntheticModuleName
- the synthetic module namestrategy
- the strategybatchingStrategy
- the batching strategytreeLogger
- the loggerModuleDef
describing the synthetic modulecom.google.gwt.core.ext.UnableToCompleteException
Copyright © 2016. All rights reserved.