You can find more info in Mockito's readme. try (MockedStatic mocked = mockStatic(Foo.class)) { mocked.when(Foo::method).thenReturn("bar");
確定! 回上一頁