![JAR search and dependency download from the Maven repository](/logo.png)
org.easyb.plugin.ui.SpecificationRunningParser 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.ui;
import java.util.regex.Pattern;
import java.util.regex.Matcher;
public class SpecificationRunningParser {
private Pattern specPattern = Pattern.compile("Running (.*?) (specification|story) \\(.*\\)\n*$");
public String parseSpecNameFrom(String output) {
Matcher matcher = specPattern.matcher(output);
if (matcher.matches()) {
return matcher.group(1);
} else {
throw new IllegalStateException("Cannot parse specification name from output " + output);
}
}
public boolean isSpecificationRunningMessage(String output) {
Matcher matcher = specPattern.matcher(output);
return matcher.matches();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy