[ECODP-dev] CKANClient-J Library and TestCases

Dimitrios Mexis dimitrios.mexis at tenforce.com
Tue Aug 6 08:38:48 UTC 2013


Hello,

Is these tests and the relevant library updated for recent CKAN version 
as installed for EU ODP ?

I get for example failures like this:

  <testcase classname="org.ckan.tests.CreateTestCases" 
name="test_CreateDatasetWithPlusInName" time="0.499">
     <error message="java.lang.IllegalStateException: Expected
     but was STRING at line 1 column 10" 
type="com.google.gson.JsonSyntaxException">com.google.gson.JsonSyntaxException: 
java.lang.IllegalStateException:
     Expected BEGIN_OBJECT but was STRING at line 1 column 10
     at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:176)
     at com.google.gson.Gson.fromJson(Gson.java:791)
     at com.google.gson.Gson.fromJson(Gson.java:757)
     at com.google.gson.Gson.fromJson(Gson.java:706)
     at com.google.gson.Gson.fromJson(Gson.java:678)
     at org.ckan.Client.LoadClass(Unknown Source)
     at org.ckan.Client.createDataset(Unknown Source)
     at 
org.ckan.tests.CreateTestCases.test_CreateDatasetWithPlusInName(Unknown 
Source)
Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but 
was STRING at line 1 column 10
     at com.google.gson.stream.JsonReader.expect(JsonReader.java:339)
     at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:322)
     at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:165)
</error>
   </testcase>

<system-err><![CDATA[]]></system-err>


Regards
Dimitrios
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/mailman/private/ecodp-dev/attachments/20130806/8f730adf/attachment.html>


More information about the ecodp-dev mailing list