/** @deprecated using deprecated api */ public void test() throws Exception { int originalActivationDepth = ((Config4Impl) Db4o.configure()).activationDepth(); Db4o.configure().activationDepth(0); ObjectServer server = Db4oClientServer.openServer(tempFile(), -1); try { server.grantAccess("db4o", "db4o"); ObjectContainer oc = Db4oClientServer.openClient("localhost", server.ext().port(), "db4o", "db4o"); oc.close(); } finally { Db4o.configure().activationDepth(originalActivationDepth); server.close(); } }
public void setUp() throws Exception { _applied = new ArrayList<DummyConfigurationItem>(); _config = (ServerConfigurationImpl) Db4oClientServer.newServerConfiguration(); }