Examples of Person


Examples of buri.ddmsence.ddms.resource.Person

  @Test
  public void testIndexLevelsStringLists() throws InvalidDDMSException {
    List<String> names = Util.getXsListAsList("Brian BU");
    List<String> phones = Util.getXsListAsList("703-885-1000");
    Person person = new Person(names, "Uri", phones, null, null, null);

    PropertyReader.setProperty("output.indexLevel", "0");
    assertEquals("entityType: person\nname: Brian\nname: BU\nphone: 703-885-1000\nsurname: Uri\n", person.toText());

    PropertyReader.setProperty("output.indexLevel", "1");
    assertEquals("entityType: person\nname[1]: Brian\nname[2]: BU\nphone: 703-885-1000\nsurname: Uri\n",
      person.toText());

    PropertyReader.setProperty("output.indexLevel", "2");
    assertEquals("entityType: person\nname[1]: Brian\nname[2]: BU\nphone[1]: 703-885-1000\nsurname: Uri\n",
      person.toText());
  }
View Full Code Here

Examples of cat.quickdb.model.Person

        this.admin.setAutoCommit(true);
    }

    @Test
    public void testSaveSimpleObject() {
        Person person = new Person("LeeLoo", 1);
        boolean value = admin.save(person);

        Assert.assertTrue(value);
    }
View Full Code Here

Examples of ch.bsgroup.scrumit.domain.Person

  @RequestMapping(value="allpersons/{projectid}/", method=RequestMethod.GET)
  public @ResponseBody List<SerializablePerson> getAllPersonsOfProject(@PathVariable int projectid) {
    Set<Person> persons = this.personService.getAllPersonsByProjectId(projectid);
    List<SerializablePerson> serializedPersons = new ArrayList<SerializablePerson>();
    for (Iterator<Person> iterator = persons.iterator(); iterator.hasNext();) {
      Person p = iterator.next();
      SerializablePerson sp = new SerializablePerson(p.getId(), p.getFirstName(), p.getLastName());
      serializedPersons.add(sp);
    }
    return serializedPersons;
  }
View Full Code Here

Examples of com.adaptiweb.tools.entity.Person

    DbTestConfig.create(this).execute();
  }

  @DbTestExecution(order=1)
  public void initDatabase(EntityManager em) {
    Person entity = new Person();
    entity.setName("Eddie Vedder");
    em.persist(entity);
  }
View Full Code Here

Examples of com.addressbook.dto.Person

                ResultSet rs = pstmt.getResultSet();
                persons = new ArrayList<>();

                while (rs.next())
                {
                    Person person = new Person();

                    long id = rs.getLong("personID");
                    person.setId(id);
                    person.setFirstName(rs.getString("firstName"));
                    person.setLastName(rs.getString("lastName"));
                    person.setEmailList(emailDAO.getEmailsForUser(id));
                    person.setPhoneList(phoneDAO.getPhonesForUser(id));

                    persons.add(person);
                }
            }
        }
View Full Code Here

Examples of com.alibaba.dubbo.common.model.Person

public abstract class AbstractSerializationPersionFailTest extends AbstractSerializationTest {
    @Test
    public void test_Person() throws Exception {
        try {
            ObjectOutput objectOutput = serialization.serialize(url, byteArrayOutputStream);
            objectOutput.writeObject(new Person());
            fail();
        }
        catch (NotSerializableException expected) {}
        catch (IllegalStateException expected) {
            assertThat(expected.getMessage(), containsString("Serialized class com.alibaba.dubbo.common.model.Person must implement java.io.Serializable"));
View Full Code Here

Examples of com.alibaba.json.test.dubbo.Person

        Assert.assertEquals(text, JSON.toJSONString(tigers2, SerializerFeature.WriteClassName));
    }

    public void testPerson() {
        Person p = helloService.showPerson(person);
        String text = JSON.toJSONString(p, SerializerFeature.WriteClassName);
        System.out.println(text);
       
        Person result = JSON.parseObject(text, Person.class);
       
        assertEquals(result.getInfoProfile().getPhones().get(0).getArea(),
                     person.getInfoProfile().getPhones().get(0).getArea());
        assertEquals(result.getInfoProfile().getPhones().get(0).getCountry(),
                     person.getInfoProfile().getPhones().get(0).getCountry());
        assertEquals(result.getInfoProfile().getPhones().get(0).getExtensionNumber(),
                     person.getInfoProfile().getPhones().get(0).getExtensionNumber());
        assertEquals(result.getInfoProfile().getPhones().get(0).getNumber(),
                     person.getInfoProfile().getPhones().get(0).getNumber());
    }
View Full Code Here

Examples of com.almende.eve.entity.Person

    return name1 + " " + name2;
  }
 
  public Person cascade2() throws IOException, JSONRPCException, Exception {
    // test sending a POJO as params
    Person person = new Person();
    person.setName("testname");
    return send(getMyUrl(), "getPerson" , person, Person.class);
  }
View Full Code Here

Examples of com.artezio.testapp.domain.Person

 
  @RequestMapping(value = "person/new")
  public String shoNewPerson(Model model){
    logger.info("Request for adding person");
   
    model.addAttribute("person", new Person());
    model.addAttribute("cityList", cityService.listCity());
   
    return "edit-person";
  }
View Full Code Here

Examples of com.ateam.webstore.model.Person

*/
public class PersonDAO extends GenericDAOImpl<Person, Serializable> {

  public Person getPersonByLogin(String email) {
   
    Person person = null;
   
    try {
      Query query = getPersistenceManager().newQuery(getPersistentClass(), "login == :email");
      query.setUnique(true);
      person = (Person) query.execute(email);
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.