use of com.orientechnologies.orient.client.remote.ORemoteConnectionManager in project orientdb by orientechnologies.
the class ServerTest method testConnectClose.
@Test
public void testConnectClose() throws IOException {
ORemoteConnectionManager connManager = (((OEngineRemote) Orient.instance().getRunningEngine("remote"))).getConnectionManager();
int count = connManager.getAvailableConnections(serverURL);
OServerAdmin server = new OServerAdmin(serverURL);
server.connect("root", ODatabaseHelper.getServerRootPassword());
server.close();
Assert.assertEquals(connManager.getAvailableConnections(serverURL), count);
}
Aggregations