/** * Run the Ticket getTicket(Model) method test. * * @throws Exception if one of the used methods fails */ @Test public void testGetTicket1() throws Exception { @SuppressWarnings({"rawtypes", "unchecked"}) final ListFieldRemoveValueCommand fixture = new ListFieldIdentifiableObjectRemoveValueCommand(this.listField, this.sprint, this.pbi4); final Ticket result = fixture.getTicket(this.model); Assert.assertNotNull(result); }
/** * Run the Ticket getTicket(Model) method test. * * @throws Exception if one of the used methods fails */ @Test(expected = NoObjectFindException.class) public void testGetTicket2() throws Exception { @SuppressWarnings({"rawtypes", "unchecked"}) final ListFieldRemoveValueCommand fixture = new ListFieldIdentifiableObjectRemoveValueCommand(this.listField, this.per1, this.pbi4); final Model model1 = new Model(new Date()); final Ticket result = fixture.getTicket(model1); Assert.assertNotNull(result); }