com.github.firststraw.guice.IncorrectScopingException 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} does not have the expected scoping.
*/
public class IncorrectScopingException extends RuntimeException {
private static final long serialVersionUID = 1L;
/**
* @param expected the expected {@link Scoping}
* @param actual the actual {@link Scoping}
*/
IncorrectScopingException(final Scoping expected, final Scoping actual) {
super("Expected " + expected.getDescription() + ", but found " + actual.getDescription());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy