de.ppi.selenium.logevent.api.Priority Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webtest Show documentation
Show all versions of webtest Show documentation
Some additional helper for webtesting with selenium
package de.ppi.selenium.logevent.api;
/**
* Possible Priorities.
*
*/
public enum Priority {
/** Lowest Prio. */
DEBUG(10),
/** Documenation. */
DOCUMENTATION(20),
/** Assertion happens. */
FAILURE(30),
/** Exception happens. */
EXCEPTION(40);
/**
* Internal representation.
*/
private final int prio;
/**
*
* Initiates an object of type Priority.
*
* @param prio the internal number.
*/
private Priority(int prio) {
this.prio = prio;
}
/**
* Checks if this priority is more important or equal than the other.
*
* @param other a other priority.
* @return true if this priority is more important or equal than the other.
*/
public boolean isMoreImportantThan(Priority other) {
return this.prio >= other.prio;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy