net.flexmojos.oss.test.launcher
Class AsVmLauncher

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by net.flexmojos.oss.test.AbstractControlledThread
          extended by net.flexmojos.oss.test.launcher.AsVmLauncher
All Implemented Interfaces:
Runnable, ControlledThread, org.codehaus.plexus.logging.LogEnabled

@Component(role=AsVmLauncher.class,
           instantiationStrategy="per-lookup")
public class AsVmLauncher
extends AbstractControlledThread
implements ControlledThread

ActionScript runtime launcher. This class is used to launch the application that runs unit tests.


Field Summary
 
Fields inherited from class net.flexmojos.oss.test.AbstractControlledThread
error, status
 
Constructor Summary
AsVmLauncher()
           
 
Method Summary
 String getConsoleOutput()
           
protected  void reset()
           
 void run()
           
 void start(TestRequest request)
          Run the SWF that contains the FlexUnit tests.
 void stop()
           
protected  boolean useXvfb()
           
 
Methods inherited from class net.flexmojos.oss.test.AbstractControlledThread
getError, getStatus, launch, lock, unlock
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.flexmojos.oss.test.ControlledThread
getError, getStatus, lock, unlock
 

Constructor Detail

AsVmLauncher

public AsVmLauncher()
Method Detail

getConsoleOutput

public String getConsoleOutput()

reset

protected void reset()
Overrides:
reset in class AbstractControlledThread

run

public void run()
Specified by:
run in interface Runnable

start

public void start(TestRequest request)
           throws LaunchFlashPlayerException,
                  InvalidSwfException
Run the SWF that contains the FlexUnit tests.

Parameters:
request - the TestRequest instance.
Throws:
LaunchFlashPlayerException - Thrown if the flash player fails to launch.
InvalidSwfException - Thrown if the requested test swf cannot be found or is not set.

stop

public void stop()
Specified by:
stop in interface ControlledThread

useXvfb

protected boolean useXvfb()


Copyright © 2008–2014 flexmojos. All rights reserved.