minor fix in tests for avoid access to databases in the thread local
package com.orientechnologies.orient.client.remote.message;
+import com.orientechnologies.orient.core.db.ODatabaseRecordThreadLocal;
import com.orientechnologies.orient.core.serialization.serializer.record.binary.ORecordSerializerNetworkFactory;
import org.junit.Assert;
+import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
@@ -13,6 +15,11 @@ import java.util.Map;
*/
public class OQueryRequestTest {
+ @Before
+ public void before() {
+ ODatabaseRecordThreadLocal.instance().remove();
+ }
+
@Test
public void testWithPositionalParams() throws IOException {
Object[] params = new Object[] { 1, "Foo" };
