Skip to content

Instantly share code, notes, and snippets.

@marioaquino
Created September 22, 2010 01:51
Show Gist options
  • Save marioaquino/590981 to your computer and use it in GitHub Desktop.
Save marioaquino/590981 to your computer and use it in GitHub Desktop.
public class StubFoo implements Foo {
public boolean makeABarCalled;
public String makeABarHey;
public List makeABarNow;
public Bar makeABarReturn;
public BarClosedException makeABarException;
public Bar makeABar(String hey, List now) {
makeABarCalled = true;
makeABarHey = hey;
makeABarNow = now;
if (makeABarException != null) {
throw makeABarException;
}
return makeABarReturn;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment