Searched refs:NoDefaultConstructorClass (Results 1 – 2 of 2) sorted by relevance
37 static class NoDefaultConstructorClass { class in ProviderTest38 public NoDefaultConstructorClass(int arg) {} in NoDefaultConstructorClass() method in ProviderTest.NoDefaultConstructorClass78 NoDefaultConstructorClass.class); in createInstance_ThrowsErrorWhenClassDoesNotHaveDefaultConstructor()
79 private static class NoDefaultConstructorClass { class in MockStatic82 NoDefaultConstructorClass(int id) { in NoDefaultConstructorClass() method in MockStatic.NoDefaultConstructorClass120 new NoDefaultConstructorClass(23); in spyStaticOnObjectWithNoDefaultConstructor()122 MockitoSession session = mockitoSession().spyStatic(NoDefaultConstructorClass.class) in spyStaticOnObjectWithNoDefaultConstructor()126 assertEquals(23, NoDefaultConstructorClass.getLastId()); in spyStaticOnObjectWithNoDefaultConstructor()128 when(NoDefaultConstructorClass.getLastId()).thenReturn(42); in spyStaticOnObjectWithNoDefaultConstructor()129 assertEquals(42, NoDefaultConstructorClass.getLastId()); in spyStaticOnObjectWithNoDefaultConstructor()