Javadoc { public boolean noReturnDescription() { return isEmptyDescription(blockTagDescriptions.get(BlockTagKey.of(BlockTag.RETURN, null))); } Javadoc(Tree tree); boolean noMainDescription(); boolean noReturnDescription(); List<String> undocumentedParameters(); List<String> undocumentedThrownExceptions();  }
@Test void test_no_return_description() { assertThat(fooJavadoc.noReturnDescription()).isFalse(); assertThat(barJavadoc.noReturnDescription()).isFalse(); assertThat(emptyDescriptionJavadoc.noReturnDescription()).isTrue(); assertThat(fullParamsDescriptionJavadoc.noReturnDescription()).isTrue(); assertThat(genericExceptionThrownJavadoc.noReturnDescription()).isTrue(); assertThat(genericExceptionThrownUndocumented.noReturnDescription()).isTrue(); assertThat(emptyJavadocs.stream().map(Javadoc::noReturnDescription)).hasSize(6).allMatch(Boolean.TRUE::equals); }