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

com.github.firststraw.guice.BindingVerifier 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;

/**
 * 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