public class

AnswerWith

extends Object
java.lang.Object
   ↳ com.atlassian.jira.util.AnswerWith

Class Overview

Mockito answers

Summary

Fields
public static final Answer<?> EMPTY_OPTIONAL_IF_APPLICABLE
Public Constructors
AnswerWith()
Public Methods
static <X> Answer<X> firstParameter()
static <F, T> Answer<T> firstParameterMapped(Function<F, T> transformation)
static <X> Answer<X> mockInstance()
static <X> Answer<X> throwAssertionError()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final Answer<?> EMPTY_OPTIONAL_IF_APPLICABLE

Public Constructors

public AnswerWith ()

Public Methods

public static Answer<X> firstParameter ()

public static Answer<T> firstParameterMapped (Function<F, T> transformation)

public static Answer<X> mockInstance ()

public static Answer<X> throwAssertionError ()