net.masterthought.cucumber.util.Counter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cucumber-reporting Show documentation
Show all versions of cucumber-reporting Show documentation
Provides pretty html reports for Cucumber. It works by generating html from the cucumber json file.
package net.masterthought.cucumber.util;
import org.apache.commons.lang3.mutable.MutableInt;
/**
* Simple counter to give elements on a page a unique ID. Using object hashes
* doesn't guarantee uniqueness.
*/
public class Counter extends MutableInt {
/**
* @return The next integer
*/
public int next() {
increment();
return intValue();
}
}