Examples of Person


Examples of com.example.helloworld.core.Person

    private ArgumentCaptor<Person> personCaptor;
    private Person person;

    @Before
    public void setUp() {
        person = new Person();
        person.setFullName("Full Name");
        person.setJobTitle("Job Title");
    }
View Full Code Here

Examples of com.example.jsfdemo.domain.Person

    return "showPersons";
    //return null;
  }

  public String deletePerson() {
    Person personToDelete = persons.getRowData();
    pm.deletePerson(personToDelete);
    return null;
  }
View Full Code Here

Examples of com.example.model.Person

        return em.createQuery(c).getResultList();
    }

    @Transactional
    public void removePerson(Integer id) {
        Person person = em.find(Person.class, id);
        if (null != person) {
            em.remove(person);
        }
    }
View Full Code Here

Examples of com.example.mvc.entity.Person

    @Before
    public void setUp() {
        personRepository.deleteAll();
        for (int i = 1; i <= 20; i++) {
            Person p = new Person();
            p.setAge(i % 100);
            p.setName("name" + i);
            personRepository.save(p);
        }
        personRepository.flush();
    }
View Full Code Here

Examples of com.example.tutorial.AddressBookProtos.Person

        MockHttpServletRequest request =
            MockRequestConstructor.constructMockRequest("GET", "/test/person", "application/x-protobuf");
        MockHttpServletResponse response = invoke(request);
        assertEquals(200, response.getStatus());
        byte[] data = response.getContentAsByteArray();
        Person p = Person.parseFrom(data);
        assertEquals(p);
    }
View Full Code Here

Examples of com.example.tutorial.Person

        // new WinkThriftProvider()
        };
    }

    private static Person createPerson() {
        return new Person().setId(1).setEmail("abc@example.com").setName("John Smith");
    }
View Full Code Here

Examples of com.fengjing.framework.xstream.Person

    xstream.alias("person", Person.class);
    xstream.alias("phonenumber", PhoneNumber.class);
   
    String xml="<person><firstname>Joe</firstname><lastname>Walnes</lastname><phone><code>123</code><number>1234-456</number></phone><fax><code>123</code><number>9999-999</number></fax></person>";
   
    Person person = (Person)xstream.fromXML(xml);
   
    System.out.println(person);
  }
View Full Code Here

Examples of com.fengjing.framework.xstream.annotation.Person

   
    xstream.processAnnotations(Person.class);
   
    String xml="<person><firstname>Joe</firstname><lastname>Walnes</lastname><phone><code>123</code><number>1234-456</number></phone><fax><code>123</code><number>9999-999</number></fax></person>";
   
    Person person = (Person)xstream.fromXML(xml);
   
    System.out.println(person);
  }
View Full Code Here

Examples of com.getperka.flatpack.domain.Person

    /*
     * Because we're testing without a full flatpack structure, all we can expect is that a HasUuid
     * is created with the same UUID. The concrete type would normally be specified in the data
     * section, however it is missing, so we expect the configured type of the codex instead.
     */
    Person p = out2[0];
    assertNotNull(p);
    assertEquals(Person.class, p.getClass());
    assertEquals(employee.getUuid(), p.getUuid());
  }
View Full Code Here

Examples of com.github.springtestdbunit.sample.entity.Person

    query.setParameter("name", "%" + name + "%");
    return query.getResultList();
  }

  public void remove(int personId) {
    Person person = this.entityManager.find(Person.class, personId);
    this.entityManager.remove(person);
  }
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.