![JAR search and dependency download from the Maven repository](/logo.png)
org.easyb.plugin.Outcome Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of intellij-plugin Show documentation
Show all versions of intellij-plugin Show documentation
A plugin that enables easyb spec execution in IntelliJ
The newest version!
package org.easyb.plugin;
import org.easyb.result.Result;
public enum Outcome {
RUNNING, SUCCESS, FAILURE, PENDING;
public static Outcome outcomeForResult(Result result) {
if (result.succeeded()) {
return SUCCESS;
} else if (result.pending()) {
return PENDING;
} else if (result.failed()) {
return FAILURE;
} else {
throw new RuntimeException("Unknown result status encountered: " + result.status());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy