cern.online.analysis.core.AssertionStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of streamingpool-ext-analysis Show documentation
Show all versions of streamingpool-ext-analysis Show documentation
This project is an analysis pakage for streamingpool.
/**
* Copyright (c) 2016 European Organisation for Nuclear Research (CERN), All Rights Reserved.
*/
package cern.online.analysis.core;
public enum AssertionStatus {
SUCCESSFUL,
FAILURE,
ERROR,
NONAPPLICABLE;
public static final AssertionStatus fromBooleanSuccessful(boolean isOk) {
if (isOk) {
return SUCCESSFUL;
} else {
return FAILURE;
}
}
}