Examples of deletePerson()


Examples of org.codehaus.enunciate.samples.genealogy.jaxws_client.services.impl.PersonServiceImpl.deletePerson()

    Collection<Person> empty = personService.readPersons(null);
    assertTrue(empty == null || empty.isEmpty());

    personService.deletePerson("somebody");
    try {
      personService.deletePerson(null);
      fail("Should have thrown the exception.");
    }
    catch (ServiceException e) {
      assertEquals("a person id must be supplied", e.getMessage());
      assertEquals("no person id.", e.getAnotherMessage());
View Full Code Here

Examples of org.codehaus.enunciate.samples.genealogy.jaxws_client.services.impl.PersonServiceImpl.deletePerson()

    catch (ServiceException e) {
      assertEquals("a person id must be supplied", e.getMessage());
      assertEquals("no person id.", e.getAnotherMessage());
    }
    try {
      personService.deletePerson("SPECIAL");
      fail("should have thrown an exception.");
    }
    catch (Exception e) {
      assertTrue(e.getMessage().contains("SPECIAL"));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.