Examples of Person


Examples of org.springframework.data.neo4j.model.Person

  @Autowired
  private FriendshipRepository friendshipRepo;
 
  @Test(expected=ValidationException.class)
  public void testNodePropertyValidation() {
      personRepo.save(new Person("Li", 102));
  }
View Full Code Here

Examples of org.springframework.data.redis.Person

   * @see DATAREDIS-241
   */
  @Test
  public void testJackson2JsonSerializer() throws Exception {

    Person person = new PersonObjectFactory().instance();
    assertEquals(person, serializer.deserialize(serializer.serialize(person)));
  }
View Full Code Here

Examples of org.springframework.data.rest.core.domain.jpa.Person

  @Autowired PersonRepository repository;

  @Before
  public void populateDatabase() {
    repository.save(new Person("John", "Doe"));
  }
View Full Code Here

Examples of org.springframework.data.rest.webmvc.jpa.Person

  @Test
  public void setsExpandedSelfUriInLocationHeader() throws Exception {

    RootResourceInformation information = getResourceInformation(Order.class);

    PersistentEntityResource persistentEntityResource = PersistentEntityResource.build(new Order(new Person()),
        entities.getPersistentEntity(Order.class)).build();

    ResponseEntity<?> entity = controller.putItemResource(information, persistentEntityResource, 1L, assembler);

    assertThat(entity.getHeaders().getLocation().toString(), not(endsWith("{?projection}")));
View Full Code Here

Examples of org.springframework.integration.voldemort.test.domain.Person

    final ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext( "VoldemortOutboundAdapterTest-context.xml", getClass() );
    final StoreClient storeClient = context.getBean( "storeClient", StoreClient.class );
    final MessageChannel voldemortOutboundPutChannel = context.getBean( "voldemortOutboundPutChannel", MessageChannel.class );

    // given
    final Person lukasz = new Person( "1", "Lukasz", "Antoniak" );

    // when
    final Message<Person> message = MessageBuilder.withPayload( lukasz ).setHeader( VoldemortHeaders.KEY, lukasz.getId() ).build();
    voldemortOutboundPutChannel.send( message );

    // then
    final Versioned found = storeClient.get( lukasz.getId() );
    Assert.assertEquals( lukasz, found.getValue() );

    context.close();
  }
View Full Code Here

Examples of org.springframework.issues.tutorial.Person

@RestController
public class PersonController {

    @RequestMapping("/")
    Person hello() {
        Person john =
                Person.newBuilder()
                        .setId(1234)
                        .setName("John Doe")
                        .setEmail("jdoe@example.com")
                        .addPhone(
View Full Code Here

Examples of org.springframework.jdbc.core.test.Person

  public void testStaticQueryWithRowMapper() throws SQLException {
    List result = jdbcTemplate.query("select name, age, birth_date, balance from people",
        new BeanPropertyRowMapper(Person.class));
    assertEquals(1, result.size());
    Person bean = (Person) result.get(0);
    verifyPerson(bean);
  }
View Full Code Here

Examples of org.springframework.orm.jpa.domain.Person

    setComplete();
  }
 
  public void doInstantiateAndSave(EntityManager em) {
    testStateClean();
    Person p = new Person();
   
    p.setFirstName("Tony");
    p.setLastName("Blair");
    em.persist(p);
   
    em.flush();
    assertEquals("1 row must have been inserted",
        1, countRowsInTable("person"));
View Full Code Here

Examples of org.springframework.social.alfresco.api.entities.Person

    public void getCurrentUser()
        throws JsonParseException,
            JsonMappingException,
            IOException
    {
        Person currentUser = alfresco.getCurrentUser();

        assertEquals(person, currentUser.getId());
    }
View Full Code Here

Examples of org.springframework.social.google.api.plus.Person

      return false;
    }
  }

  public void setConnectionValues(Google google, ConnectionValues values) {
    Person profile = google.plusOperations().getGoogleProfile();
    values.setProviderUserId(profile.getId());
    values.setDisplayName(profile.getDisplayName());
    values.setProfileUrl(profile.getUrl());
    values.setImageUrl(profile.getImageUrl());
  }
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.