private Claim createClaim(Employee employee) { Date rDate = new Date(random.nextInt(7) + 2000, random.nextInt(12) + 1, random.nextInt(28) + 1); Claim claim = getClaimFactory().createNewClaim(employee, rDate.toString()); claim.setDateCreated(rDate); return claim; }
private Claim createClaim(final Employee employee) { final Date rDate = new Date(random.nextInt(7) + 2000, random.nextInt(12) + 1, random.nextInt(28) + 1); final Claim claim = getClaimFactory().createNewClaim(employee, rDate.toString()); claim.setDateCreated(rDate); return claim; }
private void populateGeneral(ExpenseItem item) { Date rDate = new Date(random.nextInt(7) + 2000, random.nextInt(12) + 1, random.nextInt(28) + 1); item.modifyAmount(getRandomAmount()); item.modifyDescription(item.getClass().getSimpleName() + " " + rDate.toString()); item.modifyDateIncurred(rDate); item.modifyProjectCode(getRandomProjectCode()); }
private void populateGeneral(final ExpenseItem item) { final Date rDate = new Date(random.nextInt(7) + 2000, random.nextInt(12) + 1, random.nextInt(28) + 1); item.modifyAmount(getRandomAmount()); item.modifyDescription(item.getClass().getSimpleName() + " " + rDate.toString()); item.modifyDateIncurred(rDate); item.modifyProjectCode(getRandomProjectCode()); }
public void testToString() { assertEquals("2000-3-14", actual.toString()); }