Searched refs:mockable (Results 1 – 20 of 20) sorted by relevance
26 MockMaker.TypeMockability mockable = mockMaker.isTypeMockable(Integer.class); in is_type_mockable_excludes_primitive_wrapper_classes() local27 assertThat(mockable.mockable()).isFalse(); in is_type_mockable_excludes_primitive_wrapper_classes()28 assertThat(mockable.nonMockableReason()).contains("final"); in is_type_mockable_excludes_primitive_wrapper_classes()33 MockMaker.TypeMockability mockable = mockMaker.isTypeMockable(int.class); in is_type_mockable_excludes_primitive_classes() local34 assertThat(mockable.mockable()).isFalse(); in is_type_mockable_excludes_primitive_classes()35 assertThat(mockable.nonMockableReason()).contains("primitive"); in is_type_mockable_excludes_primitive_classes()43 MockMaker.TypeMockability mockable = mockMaker.isTypeMockable(anonymous.getClass()); in is_type_mockable_allow_anonymous() local44 assertThat(mockable.mockable()).isTrue(); in is_type_mockable_allow_anonymous()45 assertThat(mockable.nonMockableReason()).contains(""); in is_type_mockable_allow_anonymous()50 MockMaker.TypeMockability mockable = mockMaker.isTypeMockable(SomeClass.class); in is_type_mockable_give_empty_reason_if_type_is_mockable() local[all …]
208 MockMaker.TypeMockability mockable = mockMaker.isTypeMockable(Integer.class); in should_provide_reason_for_wrapper_class() local209 …assertThat(mockable.nonMockableReason()).isEqualTo("Cannot mock wrapper types, String.class or Cla… in should_provide_reason_for_wrapper_class()214 MockMaker.TypeMockability mockable = mockMaker.isTypeMockable(int[].class); in should_provide_reason_for_vm_unsupported() local215 …assertThat(mockable.nonMockableReason()).isEqualTo("VM does not not support modification of given … in should_provide_reason_for_vm_unsupported()227 MockMaker.TypeMockability mockable = mockMaker.isTypeMockable(String.class); in is_type_mockable_excludes_String() local228 assertThat(mockable.mockable()).isFalse(); in is_type_mockable_excludes_String()229 …assertThat(mockable.nonMockableReason()).contains("Cannot mock wrapper types, String.class or Clas… in is_type_mockable_excludes_String()234 MockMaker.TypeMockability mockable = mockMaker.isTypeMockable(Class.class); in is_type_mockable_excludes_Class() local235 assertThat(mockable.mockable()).isFalse(); in is_type_mockable_excludes_Class()236 …assertThat(mockable.nonMockableReason()).contains("Cannot mock wrapper types, String.class or Clas… in is_type_mockable_excludes_Class()[all …]
86 Assertions.assertThat(MockUtil.typeMockabilityOf(FinalClass.class).mockable()) in should_know_if_type_is_mockable()87 .isEqualTo(Plugins.getMockMaker().isTypeMockable(FinalClass.class).mockable()); in should_know_if_type_is_mockable()89 assertFalse(MockUtil.typeMockabilityOf(int.class).mockable()); in should_know_if_type_is_mockable()91 assertTrue(MockUtil.typeMockabilityOf(SomeClass.class).mockable()); in should_know_if_type_is_mockable()92 assertTrue(MockUtil.typeMockabilityOf(SomeInterface.class).mockable()); in should_know_if_type_is_mockable()
34 + // This method is not mockable because it takes a move-only argument. To work36 + // DoWaitForServiceToBeAvailable which is mockable.
16 dbus-Make-Bus-is_connected-mockable.patch
4 Subject: [PATCH] dbus: Make Bus::is_connected() mockable
147 public boolean mockable() { in isTypeMockable()153 if(mockable()) { in isTypeMockable()
293 public boolean mockable() { in isTypeMockable()299 if (mockable()) { in isTypeMockable()
128 boolean mockable(); in mockable() method
23 if (!typeMockability.mockable()) { in validateType()
41 assumeFalse(Plugins.getMockMaker().isTypeMockable(Baz.class).mockable()); in should_return_null_for_final_class_if_unsupported()
189 public boolean mockable() { in isTypeMockable()
136 public boolean mockable() { in isTypeMockable()
243 if(MockUtil.typeMockabilityOf(aClass).mockable()){
60 return typeMockabilityOf(typeToMock).mockable(); in isTypeMockable()
331 public boolean mockable() { in isTypeMockable()
4354 callback has bigger problems than being mockable. :-)
1847 behavior of the country is most mockable at the
1a 2A 3Aaron 4AARON 5abaissiez 6abandon 7abandoned 8abase 9Abase 10 ...