CASE WHEN x < 1 THEN 'one' WHEN x >= 2 THEN 'two' ELSE 'three' END
Instances of Case are created through the
@param < T> The generic field type parameter
@param condition A condition to check in the case statement
@param result The result if the condition holds true
@return An intermediary step for case statement construction
{@link Mockito#doThrow(Throwable)}
{@link Mockito#doAnswer(Answer)}
{@link Mockito#doNothing()}
{@link Mockito#doReturn(Object)}
See examples in javadoc for {@link Mockito} @param mock @return select method for stubbing
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|