Skip to content

Instantly share code, notes, and snippets.

@searls
Created October 23, 2010 19:20
Show Gist options
  • Save searls/642586 to your computer and use it in GitHub Desktop.
Save searls/642586 to your computer and use it in GitHub Desktop.
@Test
public void returnsSoldGlassPop() {
ShardsOGlassPop expected = mock(ShardsOGlassPop.class);
when(boxOfGlassPops.retrieve()).thenReturn(expected);
ShardsOGlassPop result = sut.sellGlassPop();
assertThat(result,is(expected));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment