public class org.junit.platform.console.ConsoleLauncherExecutionResult extends java.lang.Object
{
private static final int SUCCESS;
private static final int TEST_FAILED;
private static final int NO_TESTS_FOUND;
private static final int FAILED;
private final int exitCode;
private final org.junit.platform.launcher.listeners.TestExecutionSummary testExecutionSummary;
public static int computeExitCode(org.junit.platform.launcher.listeners.TestExecutionSummary, org.junit.platform.console.options.CommandLineOptions)
{
org.junit.platform.console.options.CommandLineOptions v;
long v, v;
byte v, v, v;
org.junit.platform.launcher.listeners.TestExecutionSummary v;
boolean v;
v := @parameter: org.junit.platform.launcher.listeners.TestExecutionSummary;
v := @parameter: org.junit.platform.console.options.CommandLineOptions;
v = virtualinvoke v.<org.junit.platform.console.options.CommandLineOptions: boolean isFailIfNoTests()>();
if v == 0 goto label;
v = interfaceinvoke v.<org.junit.platform.launcher.listeners.TestExecutionSummary: long getTestsFoundCount()>();
v = v cmp 0L;
if v != 0 goto label;
return 2;
label:
v = interfaceinvoke v.<org.junit.platform.launcher.listeners.TestExecutionSummary: long getTotalFailureCount()>();
v = v cmp 0L;
if v != 0 goto label;
v = 0;
goto label;
label:
v = 1;
label:
return v;
}
static org.junit.platform.console.ConsoleLauncherExecutionResult success()
{
org.junit.platform.console.ConsoleLauncherExecutionResult v;
v = new org.junit.platform.console.ConsoleLauncherExecutionResult;
specialinvoke v.<org.junit.platform.console.ConsoleLauncherExecutionResult: void <init>(int,org.junit.platform.launcher.listeners.TestExecutionSummary)>(0, null);
return v;
}
static org.junit.platform.console.ConsoleLauncherExecutionResult failed()
{
int v;
org.junit.platform.console.ConsoleLauncherExecutionResult v;
v = new org.junit.platform.console.ConsoleLauncherExecutionResult;
v = (int) -1;
specialinvoke v.<org.junit.platform.console.ConsoleLauncherExecutionResult: void <init>(int,org.junit.platform.launcher.listeners.TestExecutionSummary)>(v, null);
return v;
}
static org.junit.platform.console.ConsoleLauncherExecutionResult forSummary(org.junit.platform.launcher.listeners.TestExecutionSummary, org.junit.platform.console.options.CommandLineOptions)
{
org.junit.platform.console.options.CommandLineOptions v;
org.junit.platform.launcher.listeners.TestExecutionSummary v;
org.junit.platform.console.ConsoleLauncherExecutionResult v;
int v;
v := @parameter: org.junit.platform.launcher.listeners.TestExecutionSummary;
v := @parameter: org.junit.platform.console.options.CommandLineOptions;
v = staticinvoke <org.junit.platform.console.ConsoleLauncherExecutionResult: int computeExitCode(org.junit.platform.launcher.listeners.TestExecutionSummary,org.junit.platform.console.options.CommandLineOptions)>(v, v);
v = new org.junit.platform.console.ConsoleLauncherExecutionResult;
specialinvoke v.<org.junit.platform.console.ConsoleLauncherExecutionResult: void <init>(int,org.junit.platform.launcher.listeners.TestExecutionSummary)>(v, v);
return v;
}
private void <init>(int, org.junit.platform.launcher.listeners.TestExecutionSummary)
{
int v;
org.junit.platform.launcher.listeners.TestExecutionSummary v;
org.junit.platform.console.ConsoleLauncherExecutionResult v;
v := @this: org.junit.platform.console.ConsoleLauncherExecutionResult;
v := @parameter: int;
v := @parameter: org.junit.platform.launcher.listeners.TestExecutionSummary;
specialinvoke v.<java.lang.Object: void <init>()>();
v.<org.junit.platform.console.ConsoleLauncherExecutionResult: org.junit.platform.launcher.listeners.TestExecutionSummary testExecutionSummary> = v;
v.<org.junit.platform.console.ConsoleLauncherExecutionResult: int exitCode> = v;
return;
}
public int getExitCode()
{
int v;
org.junit.platform.console.ConsoleLauncherExecutionResult v;
v := @this: org.junit.platform.console.ConsoleLauncherExecutionResult;
v = v.<org.junit.platform.console.ConsoleLauncherExecutionResult: int exitCode>;
return v;
}
public java.util.Optional getTestExecutionSummary()
{
java.util.Optional v;
org.junit.platform.launcher.listeners.TestExecutionSummary v;
org.junit.platform.console.ConsoleLauncherExecutionResult v;
v := @this: org.junit.platform.console.ConsoleLauncherExecutionResult;
v = v.<org.junit.platform.console.ConsoleLauncherExecutionResult: org.junit.platform.launcher.listeners.TestExecutionSummary testExecutionSummary>;
v = staticinvoke <java.util.Optional: java.util.Optional ofNullable(java.lang.Object)>(v);
return v;
}
}