Searched refs:returnValueFor (Results 1 – 8 of 8) sorted by relevance
24 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 …]
29 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()
19 String[] ret = (String[]) rv.returnValueFor((new String[0]).getClass()); in shouldReturnEmptyArray()26 assertEquals("", rv.returnValueFor(String.class)); in shouldReturnEmptyString()
26 return returnValueFor(invocation.getMethod().getReturnType()); in answer()29 Object returnValueFor(Class<?> clazz) { in returnValueFor() method in ReturnsMocks
62 return returnValueFor(returnType); in answer()65 Object returnValueFor(Class<?> type) { in returnValueFor() method in ReturnsMoreEmptyValues
74 return returnValueFor(returnType); in answer()77 Object returnValueFor(Class<?> type) { in returnValueFor() method in ReturnsEmptyValues
26 return defaultReturn.returnValueFor(methodReturnType); in answer()
53 return delegate().returnValueFor(rawType); in answer()