From 3bdaa6c4b085293d36ab046ff2a2f89440a3f01e Mon Sep 17 00:00:00 2001 From: pkupczyk <pkupczyk> Date: Fri, 3 Aug 2012 06:38:39 +0000 Subject: [PATCH] SP-48 / BIS-38: Provide access to CRC32 checksums in PathInfoDB - make it work via JSON API - fix a failing test SVN: 26301 --- .../systemtests/JsonDssServiceRpcGenericTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/datastore_server/sourceTest/java/ch/systemsx/cisd/openbis/datastoreserver/systemtests/JsonDssServiceRpcGenericTest.java b/datastore_server/sourceTest/java/ch/systemsx/cisd/openbis/datastoreserver/systemtests/JsonDssServiceRpcGenericTest.java index e22a31ca2de..f6c02345d9d 100644 --- a/datastore_server/sourceTest/java/ch/systemsx/cisd/openbis/datastoreserver/systemtests/JsonDssServiceRpcGenericTest.java +++ b/datastore_server/sourceTest/java/ch/systemsx/cisd/openbis/datastoreserver/systemtests/JsonDssServiceRpcGenericTest.java @@ -20,6 +20,7 @@ import java.io.File; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; +import java.util.HashMap; import org.apache.commons.io.FileUtils; import org.testng.annotations.AfterClass; @@ -31,6 +32,7 @@ import com.googlecode.jsonrpc4j.ProxyUtil; import ch.systemsx.cisd.openbis.dss.generic.shared.api.v1.FileInfoDssDTO; import ch.systemsx.cisd.openbis.dss.generic.shared.api.v1.IDssServiceRpcGeneric; +import ch.systemsx.cisd.openbis.generic.shared.api.json.GenericObjectMapper; import ch.systemsx.cisd.openbis.generic.shared.api.v1.IGeneralInformationService; /** @@ -109,7 +111,9 @@ public class JsonDssServiceRpcGenericTest extends SystemTestCase { try { - JsonRpcHttpClient client = new JsonRpcHttpClient(new URL(DSS_URL)); + JsonRpcHttpClient client = + new JsonRpcHttpClient(new GenericObjectMapper(), new URL(DSS_URL), + new HashMap<String, String>()); return ProxyUtil.createProxy(getClass().getClassLoader(), IDssServiceRpcGeneric.class, client); } catch (MalformedURLException ex) -- GitLab