Skip to main content
summaryrefslogtreecommitdiffstats
blob: 3a6efe7b2037b429f84f42e194163899c7bdeb1e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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;
  }
}

Back to the top