Skip to content

Commit

Permalink
fixed files form Mockito #30
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent a0e0ab5 commit bc32e81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion projects/Mockito/30/org/mockito/exceptions/Reporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -435,10 +435,11 @@ public void misplacedArgumentMatcher(Location location) {
));
}

public void smartNullPointerException(Location location) {
public void smartNullPointerException(Object obj, Location location) {
throw new SmartNullPointerException(join(
"You have a NullPointerException here:",
new Location(),
obj,
"Because this method was *not* stubbed correctly:",
location,
""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public Object intercept(Object obj, Method method, Object[] args, MethodProxy pr
return "SmartNull returned by unstubbed " + formatMethodCall() + " method on mock";
}

new Reporter().smartNullPointerException(location);
new Reporter().smartNullPointerException(obj, location);
return null;
}

Expand Down

0 comments on commit bc32e81

Please sign in to comment.