public class TestMojo extends AbstractGwtShellMojo
http://code.google.com/intl/fr/webtoolkit/doc/latest/DevGuideTesting.htmlAbstractGwtShellMojo.JavaCommand| Modifier and Type | Field and Description |
|---|---|
protected String |
excludes
Comma separated list of ant-style exclusion patterns for GWT integration tests
|
protected String |
includes
Comma separated list of ant-style inclusion patterns for GWT integration tests.
|
GWT_MODULE_EXTENSIONartifactFactory, artifactMetadataSource, classpathBuilder, GWT_GROUP_ID, gwtSdkFirstInClasspath, localRepository, remoteRepositories, resolver, warSourceDirectory| Constructor and Description |
|---|
TestMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCompileSourceRoot(File path) |
protected URL[] |
addProjectClasspathElements(URL[] originalUrls)
Add project classpath element to a classpath URL set
|
void |
doExecute() |
protected ClassLoader |
getClassLoader()
Need this to run both pre- and post- PLX-220 fix.
|
protected String |
getGwtArgs() |
protected ClassLoader |
getProjectClassLoader() |
protected void |
postProcessClassPath(Collection<File> classpath)
hook to post-process the dependency-based classpath
|
void |
setTestTimeOut(int testTimeOut) |
addArgumentDeploy, addArgumentGen, addCompileSourceArtifacts, addPersistentUnitCache, execute, getExtraJvmArgs, getJvm, getLogLevel, getStyle, setTimeOutgetGwtModules, getModules, readModuleaddClasspathElements, getArtifact, getArtifact, getClasspath, getGenerateDirectory, getGwtCodeServerJar, getGwtDevJar, getGwtUserJar, getLocalRepository, getOutputDirectory, getProject, getProjectArtifacts, getProjectRuntimeArtifacts, getRemoteRepositories, isGenerator, resolveprotected String includes
**\/*GwtTest.java to match all test class following this naming
convention. Surefire plugin may then ne configured to exclude such tests.
It is recommended to use a TestSuite to run GwtTests, as they require some huge setup and are very slow. Running inside a suite allow to execute the setup only once. The default value is defined with this best practice in mind.
protected String excludes
public void doExecute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
doExecute in class AbstractGwtShellMojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected String getGwtArgs()
protected void postProcessClassPath(Collection<File> classpath) throws org.apache.maven.plugin.MojoExecutionException
AbstractGwtShellMojopostProcessClassPath in class AbstractGwtShellMojoorg.apache.maven.plugin.MojoExecutionExceptionprotected ClassLoader getProjectClassLoader() throws org.apache.maven.artifact.DependencyResolutionRequiredException, MalformedURLException
org.apache.maven.artifact.DependencyResolutionRequiredException - failed to resolve project dependenciesMalformedURLException - configuration issue ?protected void addCompileSourceRoot(File path)
addCompileSourceRoot in class AbstractGwtModuleMojopath - file to add to the project compile directoriesprotected URL[] addProjectClasspathElements(URL[] originalUrls) throws org.apache.maven.plugin.MojoExecutionException
originalUrls - the initial URL setorg.apache.maven.plugin.MojoExecutionException - some error occuredprotected ClassLoader getClassLoader() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - failed to configure ClassLoaderpublic void setTestTimeOut(int testTimeOut)
testTimeOut - the testTimeOut to setCopyright © 2007-2014 Codehaus. All Rights Reserved.