Home
last modified time | relevance | path

Searched refs:returnValueFor (Results 1 – 8 of 8) sorted by relevance

/external/mockito/src/test/java/org/mockito/internal/stubbing/defaultanswers/
DReturnsEmptyValuesTest.java24 assertTrue(((Collection<?>) values.returnValueFor(Collection.class)).isEmpty()); in should_return_empty_collections_or_null_for_non_collections()
26 assertTrue(((Set<?>) values.returnValueFor(Set.class)).isEmpty()); in should_return_empty_collections_or_null_for_non_collections()
27 assertTrue(((SortedSet<?>) values.returnValueFor(SortedSet.class)).isEmpty()); in should_return_empty_collections_or_null_for_non_collections()
28 assertTrue(((HashSet<?>) values.returnValueFor(HashSet.class)).isEmpty()); in should_return_empty_collections_or_null_for_non_collections()
29 assertTrue(((TreeSet<?>) values.returnValueFor(TreeSet.class)).isEmpty()); in should_return_empty_collections_or_null_for_non_collections()
30 assertTrue(((LinkedHashSet<?>) values.returnValueFor(LinkedHashSet.class)).isEmpty()); in should_return_empty_collections_or_null_for_non_collections()
32 assertTrue(((List<?>) values.returnValueFor(List.class)).isEmpty()); in should_return_empty_collections_or_null_for_non_collections()
33 assertTrue(((ArrayList<?>) values.returnValueFor(ArrayList.class)).isEmpty()); in should_return_empty_collections_or_null_for_non_collections()
34 assertTrue(((LinkedList<?>) values.returnValueFor(LinkedList.class)).isEmpty()); in should_return_empty_collections_or_null_for_non_collections()
36 assertTrue(((Map<?, ?>) values.returnValueFor(Map.class)).isEmpty()); in should_return_empty_collections_or_null_for_non_collections()
[all …]
DReturnsMocksTest.java29 Object interfaceMock = values.returnValueFor(FooInterface.class); in should_return_mock_value_for_interface()
35 Object classMock = values.returnValueFor(BarClass.class); in should_return_mock_value_for_class()
42 assertNull(values.returnValueFor(Baz.class)); in should_return_null_for_final_class_if_unsupported()
DReturnsMoreEmptyValuesTest.java19 String[] ret = (String[]) rv.returnValueFor((new String[0]).getClass()); in shouldReturnEmptyArray()
26 assertEquals("", rv.returnValueFor(String.class)); in shouldReturnEmptyString()
/external/mockito/src/main/java/org/mockito/internal/stubbing/defaultanswers/
DReturnsMocks.java26 return returnValueFor(invocation.getMethod().getReturnType()); in answer()
29 Object returnValueFor(Class<?> clazz) { in returnValueFor() method in ReturnsMocks
DReturnsMoreEmptyValues.java62 return returnValueFor(returnType); in answer()
65 Object returnValueFor(Class<?> type) { in returnValueFor() method in ReturnsMoreEmptyValues
DReturnsEmptyValues.java74 return returnValueFor(returnType); in answer()
77 Object returnValueFor(Class<?> type) { in returnValueFor() method in ReturnsEmptyValues
DTriesToReturnSelf.java26 return defaultReturn.returnValueFor(methodReturnType); in answer()
DReturnsDeepStubs.java53 return delegate().returnValueFor(rawType); in answer()