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

com.github.firststraw.guice.IncorrectScopingException 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} 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