com.github.firststraw.guice.IncorrectBindingTargetException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of guice-test-helper Show documentation
Show all versions of guice-test-helper Show documentation
Library containing convenience classes to simplify unit testing of Guice injectors and modules.
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