private void setUpResolvationData() { info = new FfBookInformations(1); characterHandler = new FfCharacterHandler(); interactionHandler = mockControl.createMock(FfUserInteractionHandler.class); attributeHandler = mockControl.createMock(FfAttributeHandler.class); itemHandler = mockControl.createMock(FfCharacterItemHandler.class); characterHandler.setAttributeHandler(attributeHandler); characterHandler.setInteractionHandler(interactionHandler); characterHandler.setItemHandler(itemHandler); info.setCharacterHandler(characterHandler); character = mockControl.createMock(FfCharacter.class); rootData = new FfParagraphData(); final Paragraph paragraph = new Paragraph("3", null, 11); paragraph.setData(rootData); resolvationData = DefaultResolvationDataBuilder.builder() .withParagraph(paragraph) .withBookInformations(info) .withCharacter(character) .build(); }
@BeforeClass public void setUpClass() { mockControl = EasyMock.createStrictControl(); underTest = new ItemCheckItemsCommandResolver(); character = mockControl.createMock(Character.class); characterHandler = new CharacterHandler(); parent = new ItemCheckCommand(); have = new ParagraphData(); dontHave = new ParagraphData(); parent.setHave(have); parent.setDontHave(dontHave); parent.setCheckType("items"); parent.setId("1001 and 1002"); info = new BookInformations(1L); info.setCharacterHandler(characterHandler); paragraph = new Paragraph("3", null, 11); paragraph.setData(rootData); }