use of org.olat.restapi.system.vo.RuntimeStatisticsVO in project openolat by klemens.
the class SystemTest method testRuntimeStatisticsInfos.
@Test
public void testRuntimeStatisticsInfos() throws IOException, URISyntaxException {
RestConnection conn = new RestConnection();
assertTrue(conn.login("administrator", "openolat"));
URI systemUri = conn.getContextURI().path("system").path("monitoring").path("runtime").build();
RuntimeStatisticsVO runtimeStats = conn.get(systemUri, RuntimeStatisticsVO.class);
assertNotNull(runtimeStats);
assertNotNull(runtimeStats.getClasses());
assertNotNull(runtimeStats.getMemory());
assertNotNull(runtimeStats.getThreads());
conn.shutdown();
}
Aggregations