Javadoc { public boolean noMainDescription() { return isEmptyDescription(mainDescription); } Javadoc(Tree tree); boolean noMainDescription(); boolean noReturnDescription(); List<String> undocumentedParameters(); List<String> undocumentedThrownExceptions();  }
@Test void test_no_main_description() { assertThat(fooJavadoc.noMainDescription()).isFalse(); assertThat(barJavadoc.noMainDescription()).isTrue(); assertThat(emptyDescriptionJavadoc.noMainDescription()).isTrue(); assertThat(fullParamsDescriptionJavadoc.noMainDescription()).isTrue(); assertThat(genericExceptionThrownJavadoc.noMainDescription()).isTrue(); assertThat(genericExceptionThrownUndocumented.noMainDescription()).isTrue(); assertThat(emptyJavadocs.stream().map(Javadoc::noMainDescription)).hasSize(6).allMatch(Boolean.TRUE::equals); }