void shouldSearchByMultipleSearchCriteria()

in src/it/java/com/epam/digital/data/platform/kafkaapi/core/searchhandler/SearchHandlerIT.java [69:83]


  void shouldSearchByMultipleSearchCriteria() {
    searchCriteria.setPersonFullName(STARTS_WITH);
    searchCriteria.setPersonGender(TypGender.M);

    final SearchConditionPage<TestEntity> found = instance.search(request);

    assertThat(found.getContent()).hasSize(2);
    assertThat(found.getContent().get(0).getPersonFullName())
        .isEqualTo(TEST_ENTITY.getPersonFullName());
    assertThat(found.getContent().get(0).getPersonGender()).isEqualTo(TEST_ENTITY.getPersonGender());
    assertThat(found.getTotalElements()).isNull();
    assertThat(found.getTotalPages()).isNull();
    assertThat(found.getPageNo()).isNull();
    assertThat(found.getPageSize()).isNull();
  }