Package com.atlassian.jira.util
Class AnswerWith
java.lang.Object
com.atlassian.jira.util.AnswerWith
Mockito answers
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.mockito.stubbing.Answer<?> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <X> org.mockito.stubbing.Answer<X> static <F,T> org.mockito.stubbing.Answer <T> firstParameterMapped(com.google.common.base.Function<F, T> transformation) static <X> org.mockito.stubbing.Answer<X> static <X> org.mockito.stubbing.Answer<X>
-
Field Details
-
EMPTY_OPTIONAL_IF_APPLICABLE
public static final org.mockito.stubbing.Answer<?> EMPTY_OPTIONAL_IF_APPLICABLE
-
-
Constructor Details
-
AnswerWith
public AnswerWith()
-
-
Method Details
-
firstParameter
public static <X> org.mockito.stubbing.Answer<X> firstParameter() -
firstParameterMapped
public static <F,T> org.mockito.stubbing.Answer<T> firstParameterMapped(com.google.common.base.Function<F, T> transformation) -
mockInstance
public static <X> org.mockito.stubbing.Answer<X> mockInstance() -
throwAssertionError
public static <X> org.mockito.stubbing.Answer<X> throwAssertionError()
-