Original issue created by rburny@google.com on 2013-09-09 at 11:49 PM
Link to code review: codereview.appspot.com/13298046/
Purpose of code changes:
1) Fix Null Pointer Exception that methodReturns() throws when matching against constructor. This didn't manifest before, because such check was always hidden by other matchers. For example, CovariantEquals was first checking method name (but if checks were reordered, NPE would be thrown).
2) Add Supplier.VOID_TYPE: I'll need it for methodReturns(VOID_TYPE) as part of JUnit3TestNotRun (this could also be added to JUnit4TestNotRun)
Original issue created by rburny@google.com on 2013-09-09 at 11:49 PM
Link to code review: codereview.appspot.com/13298046/
Purpose of code changes: 1) Fix Null Pointer Exception that methodReturns() throws when matching against constructor. This didn't manifest before, because such check was always hidden by other matchers. For example, CovariantEquals was first checking method name (but if checks were reordered, NPE would be thrown). 2) Add Supplier.VOID_TYPE: I'll need it for methodReturns(VOID_TYPE) as part of JUnit3TestNotRun (this could also be added to JUnit4TestNotRun)