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.
Example 1
Project: colibri-ui   File:   Source Code and License 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());