Package org.hibernate.search.test.integration.wildfly.model

Examples of org.hibernate.search.test.integration.wildfly.model.Member


  @Inject
  MemberRegistration memberRegistration;

  @Test @InSequence(value = 1) @OperateOnDeployment("dep.active-1")
  public void testRegister() throws Exception {
    Member newMember = memberRegistration.getNewMember();
    newMember.setName( "Davide D'Alto" );
    newMember.setEmail( "davide@mailinator.com" );
    newMember.setPhoneNumber( "2125551234" );
    memberRegistration.register();

    assertNotNull( newMember.getId() );
  }
View Full Code Here


    assertNotNull( newMember.getId() );
  }

  @Test @InSequence(value = 2) @OperateOnDeployment("dep.active-2")
  public void testNewMemberSearch() throws Exception {
    Member newMember = memberRegistration.getNewMember();
    newMember.setName( "Peter O'Tall" );
    newMember.setEmail( "peter@mailinator.com" );
    newMember.setPhoneNumber( "4643646643" );
    memberRegistration.register();

    List<Member> search = memberRegistration.search( "Peter" );

    assertFalse( "Expected at least one result after the indexing", search.isEmpty() );
    assertEquals( "Search hasn't found a new member", newMember.getName(), search.get( 0 ).getName() );
  }
View Full Code Here

  @Inject
  MemberRegistration memberRegistration;

  @Test
  public void testRegister() throws Exception {
    Member newMember = memberRegistration.getNewMember();
    newMember.setName( "Davide D'Alto" );
    newMember.setEmail( "davide@mailinator.com" );
    newMember.setPhoneNumber( "2125551234" );
    memberRegistration.register();

    assertNotNull( newMember.getId() );
  }
View Full Code Here

    assertNotNull( newMember.getId() );
  }

  @Test
  public void testNewMemberSearch() throws Exception {
    Member newMember = memberRegistration.getNewMember();
    newMember.setName( "Peter O'Tall" );
    newMember.setEmail( "peter@mailinator.com" );
    newMember.setPhoneNumber( "4643646643" );
    memberRegistration.register();

    List<Member> search = memberRegistration.search( "Peter" );

    assertFalse( "Expected at least one result after the indexing", search.isEmpty() );
    assertEquals( "Search hasn't found a new member", newMember.getName(), search.get( 0 ).getName() );
  }
View Full Code Here

  @Inject
  MemberRegistration memberRegistration;

  @Test
  public void testRegister() throws Exception {
    Member newMember = memberRegistration.getNewMember();
    newMember.setName( "Davide D'Alto" );
    newMember.setEmail( "davide@mailinator.com" );
    newMember.setPhoneNumber( "2125551234" );
    memberRegistration.register();

    assertNotNull( newMember.getId() );
  }
View Full Code Here

    return em.createFullTextQuery( luceneQuery ).getResultList();
  }

  @PostConstruct
  public void initNewMember() {
    newMember = new Member();
  }
View Full Code Here

    assertNotNull( newMember.getId() );
  }

  @Test
  public void testNewMemberSearch() throws Exception {
    Member newMember = memberRegistration.getNewMember();
    newMember.setName( "Peter O'Tall" );
    newMember.setEmail( "peter@mailinator.com" );
    newMember.setPhoneNumber( "4643646643" );
    memberRegistration.register();

    List<Member> search = memberRegistration.search( "Peter" );

    assertFalse( "Expected at least one result after the indexing", search.isEmpty() );
    assertEquals( "Search hasn't found a new member", newMember.getName(), search.get( 0 ).getName() );
  }
View Full Code Here

TOP

Related Classes of org.hibernate.search.test.integration.wildfly.model.Member

Copyright © 2018 www.massapicom. 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.