org.apache.maven.abbot
Class AbbotWebstartTestRunner

java.lang.Object
  extended byorg.apache.maven.abbot.AbbotWebstartTestRunner

public class AbbotWebstartTestRunner
extends Object

Proxy for testing webstart application with Abbot. It replaces the main class of the application to test and uses the JUnit Ant task test runner to execute the Abbot tests. In order to use this class, it must be referenced as the main class in the JNLP file.

Version:
$Id: AbbotWebstartTestRunner.java 170200 2005-05-15 06:24:19Z brett $

Constructor Summary
AbbotWebstartTestRunner()
           
 
Method Summary
 void execute(String testName, String reportDir)
          Execute the JUnit test runner using the Ant JUnitTask task.
static void main(String[] args)
          Entry point for starting the Ant JUnit test runner which will start all our Abbot script tests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbbotWebstartTestRunner

public AbbotWebstartTestRunner()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Entry point for starting the Ant JUnit test runner which will start all our Abbot script tests.

Parameters:
args - the parameters that we need to use to start the Ant test runner
Throws:
Exception - in case of unanticipated error

execute

public void execute(String testName,
                    String reportDir)
Execute the JUnit test runner using the Ant JUnitTask task. Note: We absolutely need to call System.exit() as all webstart applications are required to do so. This is required for the application to close at the end of the tests (see http://www.vamphq.com/jwsfaq.html#linger).

Parameters:
testName - the name of the generic test that will in turn run all the Abbot XML scripts
Throws:
Exception - in case of unanticipated error


Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.