* Tests for itemData.
*/
@Test
public void testItemData() throws Exception {
int needed = 20;
ItemData id = new ItemData("name", needed, "prefix ", " suffix");
assertEquals(needed, id.getStillNeeded());
id.setAmount(15);
assertEquals(15, id.getStillNeeded());
assertEquals(needed, id.getRequired());
assertEquals("name", id.getName());
assertEquals("prefix ", id.getPrefix());
assertEquals(" suffix", id.getSuffix());
id.subAmount("10");
assertEquals(5, id.getStillNeeded());
assertEquals(needed, id.getRequired());
assertEquals(15, id.getAlreadyBrought());
assertEquals("prefix 5 names suffix", id.getAnswer());
}