Java Code Examples for org.apache.commons.lang3.StringUtils.ordinalIndexOf()

The following are Jave code examples for showing how to use ordinalIndexOf() of the org.apache.commons.lang3.StringUtils class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: colibri-ui   File: AllureReporter.java   View Source Code Vote up 6 votes
public void beforeStory(Story story, boolean givenStory) {
    uid = generateSuiteUid(story);
    String path = story.getPath();
    int secondIndex = StringUtils.ordinalIndexOf(path, "/", 2);
    String subPath = path.substring(secondIndex + 1);
    TestSuiteStartedEvent event = new TestSuiteStartedEvent(uid, story.getName());
    event.withLabels(AllureModelUtils.createTestFrameworkLabel("JBehave"));
    event.withTitle(subPath);
    allure.fire(event);
}