Jackan Test #1513

Test didn't pass!

java.lang.reflect.InvocationTargetException
	at sun.reflect.GeneratedMethodAccessor167.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at eu.trentorise.opendata.jackan.test.ckan.CkanTestReporter.runTest(CkanTestReporter.java:188)
	at eu.trentorise.opendata.jackan.test.ckan.CkanTestReporter.runTests(CkanTestReporter.java:266)
	at eu.trentorise.opendata.jackan.test.ckan.CkanTestReporter.main(CkanTestReporter.java:102)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)
	at java.lang.Thread.run(Thread.java:745)
Caused by: eu.trentorise.opendata.jackan.exceptions.CkanException: Couldn't interpret json returned by the server! Returned text was: {"help": "Return the details of a organization.\n\n    :param id: the id or name of the organization\n    :type id: string\n    :param include_datasets: include a list of the organization's datasets\n         (optional, default: ``True``)\n    :type id: boolean\n\n    :rtype: dictionary\n\n    .. note:: Only its first 1000 datasets are returned\n    ", "success": true, "result": {"users": [{"openid": null, "about": null, "capacity": "admin", "name": "rrs", "created": "2014-05-20T13:15:51.182011", "email_hash": "2b71f116d6fb7d3d66db27340b1f6579", "sysadmin": true, "activity_streams_email_notifications": false, "state": "active", "number_of_edits": 301, "number_administered_packages": 7, "display_name": "Rebekka R\u00e1n Samper", "fullname": "Rebekka R\u00e1n Samper", "id": "2504af6e-1755-4aad-b61a-aeee1e3aadbb"}, {"openid": null, "about": null, "capacity": "admin", "name": "vefumsjon-272", "created": "2015-11-02T14:07:04.581530", "email_hash": "ff14bea2d277bc5862338feb7f30eb0f", "sysadmin": false, "activity_streams_email_notifications": false, "state": "pending", "number_of_edits": 0, "number_administered_packages": 0, "display_name": "vefumsjon-272", "fullname": null, "id": "45f7c784-8beb-4d39-bf0b-e0576cd08278"}], "display_name": "Landsb\u00f3kasafn \u00cdslands \u2013 H\u00e1sk\u00f3lab\u00f3kasafn", "description": "Landsb\u00f3kasafn \u00cdslands - H\u00e1sk\u00f3lab\u00f3kasafn er b\u00e6\u00f0i \u00fej\u00f3\u00f0b\u00f3kasafn \u00cdslands og b\u00f3kasafn H\u00e1sk\u00f3la \u00cdslands. Safni\u00f0 safnar \u00f6llum \u00edslenskum g\u00f6gnum, var\u00f0veitir \u00feau, skr\u00e1ir og flokkar. Safni\u00f0 sinnir \u00fej\u00f3nustu vi\u00f0 kennslu og ranns\u00f3knarstarfsemi H\u00e1sk\u00f3la \u00cdslands og heldur uppi b\u00f3kasafns- og uppl\u00fdsinga\u00fej\u00f3nustu \u00ed \u00fe\u00e1gu atvinnuvega, stj\u00f3rns\u00fdslu og ranns\u00f3kna \u00e1 \u00cdslandi. ", "image_display_url": "http://landsbokasafn.is/images/lbslogo.png", "title": "Landsb\u00f3kasafn \u00cdslands \u2013 H\u00e1sk\u00f3lab\u00f3kasafn", "package_count": 0, "created": "2015-11-02T14:06:32.386683", "approval_status": "approved", "is_organization": true, "state": "active", "extras": [], "image_url": "http://landsbokasafn.is/images/lbslogo.png", "groups": [], "revision_id": "f6e1efaf-3aae-464f-bf9b-2835120ca01d", "num_followers": 0, "type": "organization", "id": "27b727d0-2e84-48f8-8727-2cf27698beb4", "tags": [], "name": "landsbokasafn-islands-haskolabokasafn"}}  CkanClient{catalogURL=http://opingogn.is, ckanToken=null}
	at eu.trentorise.opendata.jackan.CkanClient.getHttp(CkanClient.java:530)
	at eu.trentorise.opendata.jackan.CkanClient.getOrganization(CkanClient.java:1111)
	at eu.trentorise.opendata.jackan.test.ckan.ReadCkanIT.testOrganization(ReadCkanIT.java:350)
	... 12 more
Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not construct instance of eu.trentorise.opendata.jackan.model.CkanState from String value 'pending': value not one of declared Enum instance names: [deleted, active]
 at [Source: {"help": "Return the details of a organization.\n\n    :param id: the id or name of the organization\n    :type id: string\n    :param include_datasets: include a list of the organization's datasets\n         (optional, default: ``True``)\n    :type id: boolean\n\n    :rtype: dictionary\n\n    .. note:: Only its first 1000 datasets are returned\n    ", "success": true, "result": {"users": [{"openid": null, "about": null, "capacity": "admin", "name": "rrs", "created": "2014-05-20T13:15:51.182011", "email_hash": "2b71f116d6fb7d3d66db27340b1f6579", "sysadmin": true, "activity_streams_email_notifications": false, "state": "active", "number_of_edits": 301, "number_administered_packages": 7, "display_name": "Rebekka R\u00e1n Samper", "fullname": "Rebekka R\u00e1n Samper", "id": "2504af6e-1755-4aad-b61a-aeee1e3aadbb"}, {"openid": null, "about": null, "capacity": "admin", "name": "vefumsjon-272", "created": "2015-11-02T14:07:04.581530", "email_hash": "ff14bea2d277bc5862338feb7f30eb0f", "sysadmin": false, "activity_streams_email_notifications": false, "state": "pending", "number_of_edits": 0, "number_administered_packages": 0, "display_name": "vefumsjon-272", "fullname": null, "id": "45f7c784-8beb-4d39-bf0b-e0576cd08278"}], "display_name": "Landsb\u00f3kasafn \u00cdslands \u2013 H\u00e1sk\u00f3lab\u00f3kasafn", "description": "Landsb\u00f3kasafn \u00cdslands - H\u00e1sk\u00f3lab\u00f3kasafn er b\u00e6\u00f0i \u00fej\u00f3\u00f0b\u00f3kasafn \u00cdslands og b\u00f3kasafn H\u00e1sk\u00f3la \u00cdslands. Safni\u00f0 safnar \u00f6llum \u00edslenskum g\u00f6gnum, var\u00f0veitir \u00feau, skr\u00e1ir og flokkar. Safni\u00f0 sinnir \u00fej\u00f3nustu vi\u00f0 kennslu og ranns\u00f3knarstarfsemi H\u00e1sk\u00f3la \u00cdslands og heldur uppi b\u00f3kasafns- og uppl\u00fdsinga\u00fej\u00f3nustu \u00ed \u00fe\u00e1gu atvinnuvega, stj\u00f3rns\u00fdslu og ranns\u00f3kna \u00e1 \u00cdslandi. ", "image_display_url": "http://landsbokasafn.is/images/lbslogo.png", "title": "Landsb\u00f3kasafn \u00cdslands \u2013 H\u00e1sk\u00f3lab\u00f3kasafn", "package_count": 0, "created": "2015-11-02T14:06:32.386683", "approval_status": "approved", "is_organization": true, "state": "active", "extras": [], "image_url": "http://landsbokasafn.is/images/lbslogo.png", "groups": [], "revision_id": "f6e1efaf-3aae-464f-bf9b-2835120ca01d", "num_followers": 0, "type": "organization", "id": "27b727d0-2e84-48f8-8727-2cf27698beb4", "tags": [], "name": "landsbokasafn-islands-haskolabokasafn"}}; line: 1, column: 1058] (through reference chain: eu.trentorise.opendata.jackan.OrganizationResponse["result"]->eu.trentorise.opendata.jackan.model.CkanOrganization["users"]->java.util.ArrayList[1]->eu.trentorise.opendata.jackan.model.CkanUser["state"])
	at com.fasterxml.jackson.databind.exc.InvalidFormatException.from(InvalidFormatException.java:55)
	at com.fasterxml.jackson.databind.DeserializationContext.weirdStringException(DeserializationContext.java:904)
	at com.fasterxml.jackson.databind.deser.std.EnumDeserializer._deserializeAltString(EnumDeserializer.java:130)
	at com.fasterxml.jackson.databind.deser.std.EnumDeserializer.deserialize(EnumDeserializer.java:84)
	at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:520)
	at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:95)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:256)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:125)
	at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:245)
	at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:217)
	at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:25)
	at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:520)
	at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:95)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:256)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:125)
	at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:520)
	at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:101)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:256)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:125)
	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3702)
	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2714)
	at eu.trentorise.opendata.jackan.CkanClient.getHttp(CkanClient.java:528)
	... 14 more