use of com.liferay.apio.architect.documentation.APIDescription in project com-liferay-apio-architect by liferay.
the class RootEndpointImpl method activate.
@Activate
public void activate() {
RequestFunction<Optional<APITitle>> apiTitleRequestFunction = httpServletRequest -> _providerManager.provideOptional(httpServletRequest, APITitle.class);
RequestFunction<Optional<APIDescription>> apiDescriptionRequestFunction = httpServletRequest -> _providerManager.provideOptional(httpServletRequest, APIDescription.class);
_documentation = new Documentation(apiTitleRequestFunction, apiDescriptionRequestFunction);
}
use of com.liferay.apio.architect.documentation.APIDescription in project com-liferay-apio-architect by liferay.
the class APIDescriptionProviderTest method testAPIDescriptionIsNotEmpty.
@Test
public void testAPIDescriptionIsNotEmpty() {
Provider<APIDescription> provider = new APIDescriptionProvider();
APIDescription apiDescription = provider.createContext(null);
assertThat(apiDescription.get(), is(not(emptyString())));
}
Aggregations