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

org.wiremock.spring.InjectWireMock Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
package org.wiremock.spring;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Injects WireMock instance previously configured on the class or field level with {@link
 * ConfigureWireMock}.
 *
 * @author Maciej Walkowiak
 */
@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface InjectWireMock {

  /**
   * The name of WireMock instance to inject.
   *
   * @return the name of WireMock instance to inject.
   */
  String value();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy