All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.ppi.selenium.logevent.api.EmptyLogger Maven / Gradle / Ivy

There is a newer version: 0.12
Show newest version
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