@Test public void getConsolidatedStatusTest() { Result result = new Result(); result.setStatus(Status.SKIPPED.getStatusString()); resultMatch.setResult(result); assertThat(resultMatch.getConsolidatedStatus(), is(Status.SKIPPED)); assertThat(resultMatch.getConsolidatedStatusString(), is("skipped")); result = new Result(); result.setStatus(Status.PENDING.getStatusString()); resultMatch.setResult(result); assertThat(resultMatch.getConsolidatedStatus(), is(Status.SKIPPED)); assertThat(resultMatch.getConsolidatedStatusString(), is("skipped")); result = new Result(); result.setStatus(Status.UNDEFINED.getStatusString()); resultMatch.setResult(result); assertThat(resultMatch.getConsolidatedStatus(), is(Status.SKIPPED)); assertThat(resultMatch.getConsolidatedStatusString(), is("skipped")); result = new Result(); result.setStatus(Status.AMBIGUOUS.getStatusString()); resultMatch.setResult(result); assertThat(resultMatch.getConsolidatedStatus(), is(Status.SKIPPED)); assertThat(resultMatch.getConsolidatedStatusString(), is("skipped")); result = new Result(); result.setStatus(Status.PASSED.getStatusString()); resultMatch.setResult(result); assertThat(resultMatch.getConsolidatedStatus(), is(Status.PASSED)); assertThat(resultMatch.getConsolidatedStatusString(), is("passed")); }
public Status getConsolidatedStatus() { switch (getStatus()) { case PASSED: return Status.PASSED; case SKIPPED: case PENDING: case AMBIGUOUS: case UNDEFINED: return Status.SKIPPED; case FAILED: default: return Status.FAILED; } }
ResultMatch { public Status getConsolidatedStatus() { switch (getStatus()) { case PASSED: return Status.PASSED; case SKIPPED: case PENDING: case AMBIGUOUS: case UNDEFINED: return Status.SKIPPED; case FAILED: default: return Status.FAILED; } } }
ResultMatch { public Status getConsolidatedStatus() { switch (getStatus()) { case PASSED: return Status.PASSED; case SKIPPED: case PENDING: case AMBIGUOUS: case UNDEFINED: return Status.SKIPPED; case FAILED: default: return Status.FAILED; } }  }
ResultMatch { public Status getConsolidatedStatus() { switch (getStatus()) { case PASSED: return Status.PASSED; case SKIPPED: case PENDING: case AMBIGUOUS: case UNDEFINED: return Status.SKIPPED; case FAILED: default: return Status.FAILED; } }  Result getResult(); void setResult(final Result result); Match getMatch(); void setMatch(final Match match); List<Embedding> getEmbeddings(); void setEmbeddings(final List<Embedding> embeddings); List<String> getOutput(); void setOutput(final List<String> output); boolean hasOutputs(); List<String> returnEscapedOutputs(); String getGlueMethodName(); List<Argument> getArguments(); Status getStatus(); String getStatusString(); boolean isFailed(); boolean isPassed(); boolean isSkipped(); Status getConsolidatedStatus(); String getConsolidatedStatusString(); }
ResultMatch { public Status getConsolidatedStatus() { switch (getStatus()) { case PASSED: return Status.PASSED; case SKIPPED: case PENDING: case AMBIGUOUS: case UNDEFINED: return Status.SKIPPED; case FAILED: default: return Status.FAILED; } }  Result getResult(); void setResult(final Result result); Match getMatch(); void setMatch(final Match match); List<Embedding> getEmbeddings(); void setEmbeddings(final List<Embedding> embeddings); List<String> getOutput(); void setOutput(final List<String> output); boolean hasOutputs(); List<String> returnEscapedOutputs(); String getGlueMethodName(); List<Argument> getArguments(); Status getStatus(); String getStatusString(); boolean isFailed(); boolean isPassed(); boolean isSkipped(); Status getConsolidatedStatus(); String getConsolidatedStatusString();  }