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

info.javaspec.context.AmbiguousFixture Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
package info.javaspec.context;

public final class AmbiguousFixture extends RuntimeException {
  public static AmbiguousFixture forFieldOfType(Class fieldClass, Class contextClass) {
    String message = String.format("Only 1 field of type %s is allowed in context class %s",
      fieldClass.getSimpleName(), contextClass);
    return new AmbiguousFixture(message);
  }

  private AmbiguousFixture(String message) {
    super(message);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy