protected void setUp() throws Exception { qrMock = MockControl.createControl(IQRContentService.class); qrContentService = (IQRContentService) qrMock.getMock(); action = new RecountPuzzleSolvingGameQRCodeAction(); action.setQrContentService(qrContentService); action.setGameId(gameId); }
public void testExcute() { qrMock.reset(); qrMock.expectAndReturn( qrContentService.findQRContentListForPuzzleSolvingGame(gameId), new ArrayList<QRContent>()); qrMock.replay(); assertEquals(action.execute(), "success"); }