de.ppi.selenium.logevent.api.EmptyLogger 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;
import org.openqa.selenium.WebDriver;
/**
* {@link EventLogger} with do nothing.
*
*/
public class EmptyLogger implements EventLogger {
/**
* {@inheritDoc}
*/
@Override
public void logAssertionError(AssertionError assertionError) {
// DO NOTHING
}
/**
* {@inheritDoc}
*/
@Override
public EventLogger withScreenshot(Priority prio, WebDriver webDriver) {
return this;
}
/**
* {@inheritDoc}
*/
@Override
public boolean willLogged() {
return false;
}
/**
* {@inheritDoc}
*/
@Override
public boolean willScreenshotLogged(Priority priority) {
return false;
}
/**
* {@inheritDoc}
*/
@Override
public void log(String action, String message) {
// Do nothing
}
/**
* {@inheritDoc}
*/
@Override
public void log(String action, String message, Object argument1) {
// Do nothing
}
/**
* {@inheritDoc}
*/
@Override
public void log(String action, String message, Object argument1,
Object argument2) {
// Do nothing
}
/**
* {@inheritDoc}
*/
@Override
public void log(String action, String message, Object argument1,
Object argument2, Object argument3) {
// Do nothing
}
/**
* {@inheritDoc}
*/
@Override
public void log(String action, String message, Object argument1,
Object argument2, Object argument3, Object argument4) {
// Do nothing
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy