Home
last modified time | relevance | path

Searched refs:mockable (Results 1 – 20 of 20) sorted by relevance

/external/mockito/src/test/java/org/mockito/internal/creation/bytebuddy/
DSubclassByteBuddyMockMakerTest.java26 MockMaker.TypeMockability mockable = mockMaker.isTypeMockable(Integer.class); in is_type_mockable_excludes_primitive_wrapper_classes() local
27 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() local
34 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() local
44 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 …]
DInlineByteBuddyMockMakerTest.java208 MockMaker.TypeMockability mockable = mockMaker.isTypeMockable(Integer.class); in should_provide_reason_for_wrapper_class() local
209 …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() local
215 …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() local
228 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() local
235 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 …]
/external/mockito/src/test/java/org/mockito/internal/util/
DMockUtilTest.java86 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()
/external/libchrome/libchrome_tools/patches/
DWaitForServiceToBeAvailable.patch34 + // This method is not mockable because it takes a move-only argument. To work
36 + // DoWaitForServiceToBeAvailable which is mockable.
Dpatches16 dbus-Make-Bus-is_connected-mockable.patch
Ddbus-Make-Bus-is_connected-mockable.patch4 Subject: [PATCH] dbus: Make Bus::is_connected() mockable
/external/mockito/src/main/java/org/mockito/internal/creation/bytebuddy/
DSubclassByteBuddyMockMaker.java147 public boolean mockable() { in isTypeMockable()
153 if(mockable()) { in isTypeMockable()
DInlineByteBuddyMockMaker.java293 public boolean mockable() { in isTypeMockable()
299 if (mockable()) { in isTypeMockable()
/external/mockito/src/main/java/org/mockito/plugins/
DMockMaker.java128 boolean mockable(); in mockable() method
/external/mockito/src/main/java/org/mockito/internal/util/
DMockCreationValidator.java23 if (!typeMockability.mockable()) { in validateType()
/external/mockito/src/test/java/org/mockito/internal/stubbing/defaultanswers/
DReturnsMocksTest.java41 assumeFalse(Plugins.getMockMaker().isTypeMockable(Baz.class).mockable()); in should_return_null_for_final_class_if_unsupported()
/external/dexmaker/dexmaker-mockito-inline-extended/src/main/java/com/android/dx/mockito/inline/
DInlineStaticMockMaker.java189 public boolean mockable() { in isTypeMockable()
/external/dexmaker/dexmaker-mockito/src/main/java/com/android/dx/mockito/
DDexmakerMockMaker.java136 public boolean mockable() { in isTypeMockable()
/external/mockito/src/main/java/org/mockito/internal/util/reflection/
DFieldInitializer.java243 if(MockUtil.typeMockabilityOf(aClass).mockable()){
/external/mockito/src/main/java/org/mockito/internal/
DMockitoCore.java60 return typeMockabilityOf(typeToMock).mockable(); in isTypeMockable()
/external/dexmaker/dexmaker-mockito-inline/src/main/java/com/android/dx/mockito/inline/
DInlineDexmakerMockMaker.java331 public boolean mockable() { in isTypeMockable()
/external/googletest/docs/
Dgmock_cook_book.md4354 callback has bigger problems than being mockable. :-)
/external/brotli/tests/testdata/
Dasyoulik.txt1847 behavior of the country is most mockable at the
/external/kotlinx.coroutines/benchmarks/src/jmh/resources/
Dwords.shakespeare.txt.gz1a 2A 3Aaron 4AARON 5abaissiez 6abandon 7abandoned 8abase 9Abase 10 ...
Dospd.txt.gz