org.wiremock.spring.InjectWireMock Maven / Gradle / Ivy
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