use of com.liferay.apio.architect.documentation.APITitle 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.APITitle in project com-liferay-apio-architect by liferay.
the class APITitleProviderTest method testAPITitleIsNotEmpty.
@Test
public void testAPITitleIsNotEmpty() {
Provider<APITitle> provider = new APITitleProvider();
APITitle apiTitle = provider.createContext(null);
assertThat(apiTitle.get(), is(not(emptyString())));
}
Aggregations