@Test public void testUpdateActionType() { atServant.updateActionTypeQuantity(_CODE, 150); ActionType at = atServant.getActionType(_CODE); assertNotNull("actionType not null", at); assertEquals("quantity", 150, at.quantity); atServant.updateActionTypeCurrentPrice(_CODE, 12.0f); at = atServant.getActionType(_CODE); assertNotNull("actionType not null", at); assertEquals("current price", 12.0f, at.currentPrice); }
@Test public void testGetActionType() { ActionType at = atServant.getActionType(_CODE); assertNotNull("actionType not null", at); assertEquals("code", _CODE, at.code); assertEquals("label", _LABEL, at.label); assertEquals("quantity", _QUANTITY, at.quantity); assertEquals("current price", _CURRENT_PRICE, at.currentPrice); at = null; }