@Test public void mustbedocumented_annotation_data_can_be_fetched_and_at_least_one_spring_value_documentation_found() { ClasspathDataCollector collector = new ClasspathDataCollector(); List<DocAnnotationData> data = collector.fetchMustBeDocumentParts(); assertNotNull(data); assertFalse(data.isEmpty()); Iterator<DocAnnotationData> iterator = data.iterator(); boolean atLeastOneDescribedSpringValueFound=false; while (iterator.hasNext()) { DocAnnotationData d = iterator.next(); assertNotNull(d); if (!atLeastOneDescribedSpringValueFound) { if (d.springValue!=null) { if (d.description!=null && ! d.description.isEmpty()) { atLeastOneDescribedSpringValueFound=true; } } } } assertTrue(atLeastOneDescribedSpringValueFound); }
public List<DocAnnotationData> fetchMustBeDocumentParts(){ return mustbeDocumentedDataCollector.collect(); }
ClasspathDataCollector { public List<DocAnnotationData> fetchMustBeDocumentParts(){ return mustbeDocumentedDataCollector.collect(); } }
ClasspathDataCollector { public List<DocAnnotationData> fetchMustBeDocumentParts(){ return mustbeDocumentedDataCollector.collect(); } ClasspathDataCollector(); }
ClasspathDataCollector { public List<DocAnnotationData> fetchMustBeDocumentParts(){ return mustbeDocumentedDataCollector.collect(); } ClasspathDataCollector(); List<DocAnnotationData> fetchMustBeDocumentParts(); List<DocAnnotationData> fetchMockAdapterSpringValueDocumentationParts(); DomainMessagingModel fetchDomainMessagingModel(); UseCaseModel fetchUseCaseModel(); UseCaseModel fetchPDSUseCaseModel(); UseCaseRestDocModel fetchUseCaseRestDocModel(UseCaseModel model); }
ClasspathDataCollector { public List<DocAnnotationData> fetchMustBeDocumentParts(){ return mustbeDocumentedDataCollector.collect(); } ClasspathDataCollector(); List<DocAnnotationData> fetchMustBeDocumentParts(); List<DocAnnotationData> fetchMockAdapterSpringValueDocumentationParts(); DomainMessagingModel fetchDomainMessagingModel(); UseCaseModel fetchUseCaseModel(); UseCaseModel fetchPDSUseCaseModel(); UseCaseRestDocModel fetchUseCaseRestDocModel(UseCaseModel model);  }