Kaydet (Commit) c429df73 authored tarafından Noel Grandin's avatar Noel Grandin

rename test state 'PASSED' to 'COMPLETED'

which is more accurate since 'PASSED' normally means 'successful',
which is not the case here

Change-Id: I8e9368a810e7be823655f69646fd15feb9f8f502
üst 1bb1fc06
......@@ -339,7 +339,7 @@ public class MultiMethodTest
executeMethod(method);
Status mtStatus = tRes.getStatusFor(method);
if (mtStatus != null && (!mtStatus.isPassed() || mtStatus.isFailed()))
if (mtStatus != null && (!mtStatus.isCompleted() || mtStatus.isFailed()))
{
log.println("! Required method " + method + " failed");
throw new StatusException(mtStatus);
......
......@@ -21,9 +21,9 @@ package lib;
public enum RunState {
/**
* The constant represents PASSED runtime state.
* The constant represents COMPLETED runtime state.
*/
PASSED,
COMPLETED,
/**
* The constant represents EXCEPTION runtime state.
......
......@@ -47,8 +47,8 @@ class SimpleStatus {
protected SimpleStatus( RunState runState, boolean bSuccessful ) {
this.bSuccessful = bSuccessful;
this.runState = runState;
if ( runState == RunState.PASSED ) {
runStateString = "PASSED";
if ( runState == RunState.COMPLETED ) {
runStateString = "COMPLETED";
} else if ( runState == RunState.SKIPPED ) {
runStateString = "SKIPPED";
} else if ( runState == RunState.EXCEPTION ) {
......
......@@ -62,7 +62,7 @@ public class Status extends SimpleStatus {
* otherwise).
*/
public static Status passed( boolean bSuccessful ) {
return new Status(RunState.PASSED, bSuccessful );
return new Status(RunState.COMPLETED, bSuccessful );
}
/**
......@@ -112,10 +112,10 @@ public class Status extends SimpleStatus {
}
/**
* Checks whether the status runstate is passed.
* Checks whether the status runstate is completed.
*/
public boolean isPassed() {
return getRunState() == RunState.PASSED;
public boolean isCompleted() {
return getRunState() == RunState.COMPLETED;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment