Created
July 7, 2016 09:30
-
-
Save xeviknal/efa87ada8ee49956ab107c58ebe98431 to your computer and use it in GitHub Desktop.
How do we expect private methods using EasyMock?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void stubEditCall(Booking booking, int updatedGuestCount, Date updatedBookingAt, | |
Long updatedTableAreaId, boolean success) throws Exception { | |
Method[] methods = MemberMatcher.methods(Booking.class, "editCheckingETAvailability"); | |
expectPrivate(booking, methods[0], updatedGuestCount, updatedBookingAt, | |
updatedTableAreaId).andReturn(success); | |
replay(booking, Booking.class); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment