Searched refs:FinalClass (Results 1 – 7 of 7) sorted by relevance
45 MockCreationSettings<FinalClass> settings = settingsFor(FinalClass.class); in should_create_mock_from_final_class()46 … FinalClass proxy = mockMaker.createMock(settings, new MockHandlerImpl<FinalClass>(settings)); in should_create_mock_from_final_class()122 MockCreationSettings<FinalClass> settings = new CreationSettings<FinalClass>() in should_fail_at_creating_a_mock_of_a_final_class_with_explicit_serialization()123 .setTypeToMock(FinalClass.class) in should_fail_at_creating_a_mock_of_a_final_class_with_explicit_serialization()127 mockMaker.createMock(settings, new MockHandlerImpl<FinalClass>(settings)); in should_fail_at_creating_a_mock_of_a_final_class_with_explicit_serialization()139 MockCreationSettings<FinalClass> settings = new CreationSettings<FinalClass>() in should_fail_at_creating_a_mock_of_a_final_class_with_extra_interfaces()140 .setTypeToMock(FinalClass.class) in should_fail_at_creating_a_mock_of_a_final_class_with_extra_interfaces()144 mockMaker.createMock(settings, new MockHandlerImpl<FinalClass>(settings)); in should_fail_at_creating_a_mock_of_a_final_class_with_extra_interfaces()303 private static final class FinalClass { class in InlineByteBuddyMockMakerTest
14 Mockito.mock(FinalClass.class); in no_exception_while_mocking_final_class()17 private static final class FinalClass { class in FinalClassMockingTest
80 final class FinalClass {} class in MockUtilTest86 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()
78 final class FinalClass {} class in InvalidUsageTest82 …lse("Inlining mock allows mocking final classes", mock(FinalClass.class).getClass() == FinalClass.… in shouldNotAllowMockingFinalClassesIfDisabled()
38 public FinalClass getFinalClass() { in getFinalClass()67 static final class FinalClass {} class in DeepStubbingTest316 FinalClass value = new FinalClass(); in shouldFailGracefullyWhenClassIsFinal()
308 private static final class FinalClass { class in InvokableTest315 FinalClass.class.getDeclaredMethod("notFinalMethod")); in testNonFinalMethodInFinalClass_isOverridable()
306 struct FinalClass final { struct335 { int arr[T(__is_final(FinalClass))]; } in is_final()358 { int arr[T(__is_sealed(FinalClass))]; } in is_sealed()