Downtown Toronto water front featuring CN Tower, Skydome and many more
Wealthy wheel sun bathing!
EasyMock utilize several methods to configure a Mock object. The expect() method tells EasyMock to simulate a method with certain arguments. The andReturn() method defines the return value of this method for the specified method parameters. The times() method defines how often the Mock object will be called. // setup the mock objectexpect(calcMethod.calc(Position.BOSS)).andReturn(70000.0).times(2);expect(calcMethod.calc(Position.PROGRAMMER)).andReturn(50000.0);// Setup is… Continue reading EasyMock Notes