blob: 3a6efe7b2037b429f84f42e194163899c7bdeb1e [file] [log] [blame]
package org.eclipse.wst.ws.tests.unittest;
import org.eclipse.core.runtime.IPlatformRunnable;
/**
* Minimal app to run as Eclipse "application"
*/
public class LaunchTest implements IPlatformRunnable
{
/**
* @see org.eclipse.core.runtime.IPlatformRunnable#run(Object)
*/
public Object run(Object args) throws Exception
{
Object result = new AllWSJUnitTests().runMain(args);
if (result != null)
{
if (result instanceof Throwable)
{
((Throwable) result).printStackTrace();
}
else
{
System.out.println("tests didn't return 'ok'");
}
return result;
}
else
return IPlatformRunnable.EXIT_OK;
}
}