org.codehaus.mojo.javascript.test.qunit
Class AbstractRhinoTestMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.javascript.AbstractJavascriptMojo
          extended by org.codehaus.mojo.javascript.test.qunit.AbstractRhinoTestMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
QUnitTestMojo

public abstract class AbstractRhinoTestMojo
extends AbstractJavascriptMojo

Author:
harlan

Field Summary
protected  java.io.File outputDirectory
          The output directory of the assembled js file.
 
Fields inherited from class org.codehaus.mojo.javascript.AbstractJavascriptMojo
javascriptArtifactManager, pluginArtifactMap, project
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractRhinoTestMojo()
           
 
Method Summary
protected  RhinoRuntime createRhinoRuntime(ReportCallbacks reportCb)
          Creates a RhinoRuntime with env.js and inserts a $report object that collects test results as they are run.
 void execute()
           
protected abstract  void runSuite(RhinoRuntime rt, java.io.File suite)
           
 
Methods inherited from class org.codehaus.mojo.javascript.AbstractJavascriptMojo
unpackJavascriptDependency, unpackJavascriptDependency
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

outputDirectory

protected java.io.File outputDirectory
The output directory of the assembled js file.

Constructor Detail

AbstractRhinoTestMojo

public AbstractRhinoTestMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

createRhinoRuntime

protected RhinoRuntime createRhinoRuntime(ReportCallbacks reportCb)
                                   throws java.lang.Exception
Creates a RhinoRuntime with env.js and inserts a $report object that collects test results as they are run.

Returns:
Throws:
java.lang.Exception

runSuite

protected abstract void runSuite(RhinoRuntime rt,
                                 java.io.File suite)
                          throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2010. All Rights Reserved.