protected String getResourceContent()

in src/it/java/com/epam/digital/data/platform/langserver/BaseIT.java [54:61]


  protected String getResourceContent(String resourcePath)  {
    final var resource = this.getClass().getClassLoader().getResourceAsStream(resourcePath);
    if (Objects.isNull(resource)) {
      final var message = String.format("Resource with path %s doesn't exist", resourcePath);
      throw new IllegalArgumentException(message);
    }
    return new String(resource.readAllBytes(), StandardCharsets.UTF_8);
  }