Home
last modified time | relevance | path

Searched refs:GenericsNest (Results 1 – 2 of 2) sorted by relevance

/external/mockito/src/test/java/org/mockito/internal/stubbing/defaultanswers/
DReturnsGenericDeepStubsTest.java24 interface GenericsNest<K extends Comparable<K> & Cloneable> extends Map<K, Set<Number>> { interface in ReturnsGenericDeepStubsTest
37 GenericsNest<?> mock = mock(GenericsNest.class, RETURNS_DEEP_STUBS); in generic_deep_mock_frenzy__look_at_these_chained_calls()
53 GenericsNest<?> mock = mock(GenericsNest.class, RETURNS_DEEP_STUBS); in can_create_mock_from_multiple_type_variable_bounds_when_return_type_of_parameterized_method_is_a_parameterizedtype_that_is_referencing_a_typevar_on_class()
63 GenericsNest<?> mock = mock(GenericsNest.class, RETURNS_DEEP_STUBS); in can_create_mock_from_multiple_type_variable_bounds_when_method_return_type_is_referencing_a_typevar_on_class()
71 GenericsNest<?> mock = mock(GenericsNest.class, RETURNS_DEEP_STUBS); in can_create_mock_from_multiple_type_variable_bounds_when_return_type_of_parameterized_method_is_a_typevar_that_is_referencing_a_typevar_on_class()
79 GenericsNest<?> mock = mock(GenericsNest.class, RETURNS_DEEP_STUBS); in can_create_mock_from_return_types_declared_with_a_bounded_wildcard()
88 GenericsNest<?> mock = mock(GenericsNest.class, RETURNS_DEEP_STUBS); in can_still_work_with_raw_type_in_the_return_type()
96 GenericsNest<?> genericsNest = mock(GenericsNest.class, RETURNS_DEEP_STUBS); in will_return_default_value_on_non_mockable_nested_generic()
107 GenericsNest<?> mock = mock(GenericsNest.class, RETURNS_DEEP_STUBS); in as_expected_fail_with_a_CCE_on_callsite_when_erasure_takes_place_for_example___StringBuilder_is_subject_to_erasure()
/external/mockito/src/test/java/org/mockito/internal/util/reflection/
DGenericMetadataSupportTest.java38 interface GenericsNest<K extends Comparable<K> & Cloneable> extends Map<K, Set<Number>> { interface in GenericMetadataSupportTest
62 assertThat(inferFrom(GenericsNest.class).rawType()).isEqualTo(GenericsNest.class); in can_get_raw_type_from_Class()
70 …assertThat(inferFrom(GenericsNest.class.getGenericInterfaces()[0]).rawType()).isEqualTo(Map.class); in can_get_raw_type_from_ParameterizedType()
76 …assertThat(inferFrom(GenericsNest.class).actualTypeArguments().keySet()).hasSize(1).extracting("na… in can_get_type_variables_from_Class()
93 …assertThat(inferFrom(GenericsNest.class.getGenericInterfaces()[0]).actualTypeArguments().keySet())… in can_get_type_variables_from_ParameterizedType()
110 …Support genericMetadata = inferFrom(GenericsNest.class).resolveGenericReturnType(firstNamedMethod(… in typeVariable_return_type_of____get____resolved_to_Set_and_type_argument_to_Number()
118 …ort genericMetadata = inferFrom(GenericsNest.class).resolveGenericReturnType(firstNamedMethod("ret… in bounded_typeVariable_return_type_of____returningK____resolved_to_Comparable_and_with_BoundedType()
127 …pport genericMetadata = inferFrom(GenericsNest.class).resolveGenericReturnType(firstNamedMethod("r… in fixed_ParamType_return_type_of____remove____resolved_to_Set_and_type_argument_to_Number()
135 …pport genericMetadata = inferFrom(GenericsNest.class).resolveGenericReturnType(firstNamedMethod("v… in paramType_return_type_of____values____resolved_to_Collection_and_type_argument_to_Parameterized_Set()
145 …ricMetadata = inferFrom(GenericsNest.class).resolveGenericReturnType(firstNamedMethod("paramType_w… in paramType_with_type_parameters_return_type_of____paramType_with_type_params____resolved_to_Collection_and_type_argument_to_Parameterized_Set()
[all …]