@Test void shouldAlwaysReturnAnEmptyOptional() { ResourceDescriptionProvider resourceDescriptionProvider = new NoopResourceDescriptionProvider(); Optional<String> description = resourceDescriptionProvider.getAsciidocDescription("null_resource.test_resource_2"); assertThat(description).isEmpty(); }
@Override public Optional<String> getAsciidocDescription(String fullQualifiedTerraformAddress) { return Optional.empty(); }
NoopResourceDescriptionProvider implements ResourceDescriptionProvider { @Override public Optional<String> getAsciidocDescription(String fullQualifiedTerraformAddress) { return Optional.empty(); } }
NoopResourceDescriptionProvider implements ResourceDescriptionProvider { @Override public Optional<String> getAsciidocDescription(String fullQualifiedTerraformAddress) { return Optional.empty(); }  }
NoopResourceDescriptionProvider implements ResourceDescriptionProvider { @Override public Optional<String> getAsciidocDescription(String fullQualifiedTerraformAddress) { return Optional.empty(); }  @Override Optional<String> getAsciidocDescription(String fullQualifiedTerraformAddress); }
NoopResourceDescriptionProvider implements ResourceDescriptionProvider { @Override public Optional<String> getAsciidocDescription(String fullQualifiedTerraformAddress) { return Optional.empty(); }  @Override Optional<String> getAsciidocDescription(String fullQualifiedTerraformAddress);  }