I would like to mock ALL methods on a class to return one result, instead of mocking each separately, something like:
mock(Foo.class, allMethodsWithAnyArgs).thenReturn('abc');
I'm very new to Java testing so please forgive the dumb question. This giant project has Mockito, PowerMockito, PowerMock, EasyMock, and probably other stuff so I can use anything recommended.
Aucun commentaire:
Enregistrer un commentaire