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

com.github.firststraw.guice.IncorrectBindingTargetException Maven / Gradle / Ivy

Go to download

Library containing convenience classes to simplify unit testing of Guice injectors and modules.

There is a newer version: 0.2.0
Show newest version
package com.github.firststraw.guice;

import com.google.inject.Binding;

/**
 * Thrown when a {@link Binding} is not bound to the expected target.
 */
public class IncorrectBindingTargetException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    /**
     * @param expectedTarget the expected target
     * @param actualTarget the actual target
     */
    IncorrectBindingTargetException(final Object expectedTarget, final Object actualTarget) {
        super("Expected " + expectedTarget + ", but found " + actualTarget);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy