EasyMock Void Method – expectLastCall()
Sometimes we want to mock void methods. EasyMock expect() method can't be used to mock void methods. However, we can use expectLastCall() along with andAnswer() to mock void methods. EasyMock void method When we use expectLastCall() and andAnswer() to mock void methods, we can use getCurrentArguments() to get the arguments passed to the method and […]