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

com.applitools.eyes.InvalidPositionProvider Maven / Gradle / Ivy

There is a newer version: 3.11
Show newest version
package com.applitools.eyes;

/**
 * An implementation of {@link PositionProvider} which throws an exception
 * for every method. Can be used as a placeholder until an actual
 * implementation is set.
 */
public class InvalidPositionProvider implements PositionProvider {
    public Location getCurrentPosition() {
        throw new IllegalStateException(
                "This class does not implement methods!");
    }

    public void setPosition(Location location) {
        throw new IllegalStateException(
                "This class does not implement methods!");
    }

    public RectangleSize getEntireSize() {
        throw new IllegalStateException(
                "This class does not implement methods!");
    }

    public PositionMemento getState() {
        throw new IllegalStateException(
                "This class does not implement methods!");
    }

    public void restoreState(PositionMemento state) {
        throw new IllegalStateException(
                "This class does not implement methods!");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy