Hi,
I am trying to write a simple
test to check if the details of a DVD store. I want to get a summary back of the requested dvd. When i run the test it says
getDvdSummary("DVD-S765"):expected:1,actual:0
Here is some of the code:
/*
@Test
public void shouldReturnSummaryOfRequstedDVD() throws DvdNotFoundException {
expect(dvdServiceInterface.getDvdSummary("DVD-S765")).andReturn("DVD-S765 Shrek - Green monsters seem to be all the rage these days...");
replayMocks();
DvdServiceImpl ds = new DvdServiceImpl();
assertEquals(ds.getDvdSummary("DVD-S765"),"DVD-S765 Shrek - Green monsters seem to be all the rage these days...");
verifyMocks();
}
private void verifyMocks() {
verify(dvdServiceInterface);
}
private void replayMocks() {
replay(dvdServiceInterface);
}
*/
Can someone tplease tell me what is wrong with this line? Thank You!
expect(dvdServiceInterface.getDvdSummary("DVD-S765")).andReturn("DVD-S765 Shrek - Green monsters seem to be all the rage these days...");