use of org.apache.archiva.web.api.RuntimeInfoService in project archiva by apache.
the class RuntimeInfoServiceTest method runtimeInfoService.
@Test
public void runtimeInfoService() throws Exception {
RuntimeInfoService service = JAXRSClientFactory.create(getBaseUrl() + "/" + getRestServicesPath() + "/archivaUiServices/", RuntimeInfoService.class, Collections.singletonList(new JacksonJaxbJsonProvider()));
WebClient.client(service).header("Referer", "http://localhost");
ApplicationRuntimeInfo applicationRuntimeInfo = service.getApplicationRuntimeInfo("en");
assertEquals(System.getProperty("expectedVersion"), applicationRuntimeInfo.getVersion());
assertFalse(applicationRuntimeInfo.isJavascriptLog());
assertTrue(applicationRuntimeInfo.isLogMissingI18n());
}
Aggregations