示例#1
0
 @Test
 public void returnAMockOfTheInstanceUnderConstructionIfTheBuildMethodIsCalled() throws Exception {
   assertThat(mockedBuilder.build(), instanceOf(ObjectUnderConstruction.class));
 }
示例#2
0
 @Test
 public void ifAMethodIsCalledOnTheMockOfTheBuilderItReturnsTheMock() throws Exception {
   assertThat(mockedBuilder.collectDetail("detail"), is(mockedBuilder));
 }