Home
last modified time | relevance | path

Searched refs:FinalClass (Results 1 – 6 of 6) sorted by relevance

/external/mockito/src/test/java/org/mockito/internal/creation/bytebuddy/
DInlineByteBuddyMockMakerTest.java45 MockCreationSettings<FinalClass> settings = settingsFor(FinalClass.class); in should_create_mock_from_final_class()
46FinalClass proxy = mockMaker.createMock(settings, new MockHandlerImpl<FinalClass>(settings)); in should_create_mock_from_final_class()
117 MockCreationSettings<FinalClass> settings = new CreationSettings<FinalClass>() in should_fail_at_creating_a_mock_of_a_final_class_with_explicit_serialization()
118 .setTypeToMock(FinalClass.class) in should_fail_at_creating_a_mock_of_a_final_class_with_explicit_serialization()
122 mockMaker.createMock(settings, new MockHandlerImpl<FinalClass>(settings)); in should_fail_at_creating_a_mock_of_a_final_class_with_explicit_serialization()
134 MockCreationSettings<FinalClass> settings = new CreationSettings<FinalClass>() in should_fail_at_creating_a_mock_of_a_final_class_with_extra_interfaces()
135 .setTypeToMock(FinalClass.class) in should_fail_at_creating_a_mock_of_a_final_class_with_extra_interfaces()
139 mockMaker.createMock(settings, new MockHandlerImpl<FinalClass>(settings)); in should_fail_at_creating_a_mock_of_a_final_class_with_extra_interfaces()
272 private static final class FinalClass { class in InlineByteBuddyMockMakerTest
/external/mockito/src/test/java/org/mockitousage/misuse/
DInvalidUsageTest.java78 final class FinalClass {} class in InvalidUsageTest
82 …lse("Inlining mock allows mocking final classes", mock(FinalClass.class).getClass() == FinalClass.… in shouldNotAllowMockingFinalClassesIfDisabled()
/external/mockito/src/test/java/org/mockito/internal/util/
DMockUtilTest.java80 final class FinalClass {} class in MockUtilTest
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()
/external/mockito/src/test/java/org/mockitousage/stubbing/
DDeepStubbingTest.java38 public FinalClass getFinalClass() { in getFinalClass()
67 static final class FinalClass {} class in DeepStubbingTest
316 FinalClass value = new FinalClass(); in shouldFailGracefullyWhenClassIsFinal()
/external/guava/guava-tests/test/com/google/common/reflect/
DInvokableTest.java308 private static final class FinalClass { class in InvokableTest
315 FinalClass.class.getDeclaredMethod("notFinalMethod")); in testNonFinalMethodInFinalClass_isOverridable()
/external/clang/test/SemaCXX/
Dtype-traits.cpp306 struct FinalClass final { struct
335 { int arr[T(__is_final(FinalClass))]; } in is_final()
358 { int arr[T(__is_sealed(FinalClass))]; } in is_sealed()