You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Setting "Declare exceptions thrown by tested class" is set and no exception declared by tested method - still need to consider exceptions declared by test code methods
For instance, this Powermock SDK method - org.powermock.api.mockito.expectation.PowerMockitoStubber#when(T, java.lang.String, java.lang.Object...) - declares an exception
can be tested with com.weirddev.testme.intellij.generator.TestMeGeneratorJunit4PowerMockTest#testRenderInternalMethodCallStubs
we probably need to add some logic in Mock builder to decide if throws Exception should be declared even though tested method does not.
When Setting "Declare exceptions thrown by tested class" is set and no exception declared by tested method - still need to consider exceptions declared by test code methods
For instance, this Powermock SDK method - org.powermock.api.mockito.expectation.PowerMockitoStubber#when(T, java.lang.String, java.lang.Object...) - declares an exception
can be tested with com.weirddev.testme.intellij.generator.TestMeGeneratorJunit4PowerMockTest#testRenderInternalMethodCallStubs
we probably need to add some logic in Mock builder to decide if throws Exception should be declared even though tested method does not.
related to #29
FYI @zhangfj88
The text was updated successfully, but these errors were encountered: