It may be difficult to inject some method to the end of the test with
@WithGMock, because it is hard to tell whether a method is a test in
some cases. For example (a testng test case):
class A {
def someMock
@BeforeMethod void testSetup() { // how to tell this is not a test?
someMock = mock()
...
}
@Test void something() { // how to tell this is a test? from the @Test
annotation? then it is hard to cover all cases
...
}
}
在 2009-03-29日的 12:31 -0700,Julien写道: