void findById()

in src/it/java/com/epam/digital/data/platform/restapi/core/queryhandler/TestEntityFileQueryHandlerIT.java [42:56]


  void findById() throws JOSEException {
    Optional<TestEntityFile> found =
        queryHandler.findById(
            new Request<>(
                entityFile.getId(),
                null,
                mockSecurityContext()));
    Assertions.assertThat(found).isPresent();
    Assertions.assertThat(found.get().getLegalEntityName())
        .isEqualTo(entityFile.getLegalEntityName());
    Assertions.assertThat(found.get().getScanCopy().getId())
        .isEqualTo(entityFile.getScanCopy().getId());
    Assertions.assertThat(found.get().getScanCopy().getChecksum())
        .isEqualTo(entityFile.getScanCopy().getChecksum());
  }