com.github.firststraw.guice.BindingVerifier 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;
/**
* Verifies a {@link Binding}'s configuration.
*
* @param the bound type
*/
@FunctionalInterface
public interface BindingVerifier {
/**
* Returns the {@link Binding} being verified.
*
* @return the {@link Binding} being verified
*/
Binding getBinding();
/**
* Returns a {@link BindingScopingVerifier} for the {@link Binding}.
*
* @return a {@link BindingScopingVerifier} for the {@link Binding}
*/
default BindingScopingVerifier withScoping() {
return new BindingScopingVerifier(getBinding());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy