Jackan Test #1448

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": "", "about": "", "capacity": "admin", "name": "admin", "created": "2013-10-10T03:43:59.800164", "email_hash": "24e91e6e37c20683e8f1b393041d9e8f", "sysadmin": true, "activity_streams_email_notifications": false, "state": "active", "number_of_edits": 539011, "number_administered_packages": 414, "display_name": "CivicData", "fullname": "CivicData", "id": "331c653f-9744-4f9a-a7bd-49157f168ffb"}, {"openid": null, "about": null, "capacity": "admin", "name": "alamedaadmin", "created": "2013-10-26T03:34:25.921474", "email_hash": "08ef84daf0a575400420c923795b0a90", "sysadmin": false, "activity_streams_email_notifications": false, "state": "active", "number_of_edits": 130747, "number_administered_packages": 28, "display_name": "ALAMEDA", "fullname": "ALAMEDA", "id": "2fe39a2a-5e59-4f3b-ae68-b01c4d1f59c0"}, {"openid": null, "about": null, "capacity": "admin", "name": "gmcfann-859", "created": "2015-02-23T21:28:41.592689", "email_hash": "721a8e4562f3b78d7f1b6731c2e1edde", "sysadmin": false, "activity_streams_email_notifications": false, "state": "pending", "number_of_edits": 0, "number_administered_packages": 0, "display_name": "gmcfann-859", "fullname": null, "id": "4271b815-e6eb-4fae-b9f4-0dd02c6a59d6"}], "display_name": "City of Alameda, CA", "description": "", "image_display_url": "https://raw.githubusercontent.com/Accela-Inc/civicdata-logos/master/logo_alameda_ca.png", "title": "City of Alameda, CA", "package_count": 9, "created": "2013-12-16T16:24:44.916650", "approval_status": "approved", "is_organization": true, "state": "active", "extras": [], "image_url": "https://raw.githubusercontent.com/Accela-Inc/civicdata-logos/master/logo_alameda_ca.png", "groups": [], "revision_id": "2c938d8c-284c-4e23-b326-42f25f1e9ce1", "num_followers": 2, "type": "organization", "id": "c3846a32-18ce-4dc1-9196-f1b3db60f692", "tags": [], "name": "alameda-0ad8aa80-e1cb"}}  CkanClient{catalogURL=http://www.civicdata.io, 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": "", "about": "", "capacity": "admin", "name": "admin", "created": "2013-10-10T03:43:59.800164", "email_hash": "24e91e6e37c20683e8f1b393041d9e8f", "sysadmin": true, "activity_streams_email_notifications": false, "state": "active", "number_of_edits": 539011, "number_administered_packages": 414, "display_name": "CivicData", "fullname": "CivicData", "id": "331c653f-9744-4f9a-a7bd-49157f168ffb"}, {"openid": null, "about": null, "capacity": "admin", "name": "alamedaadmin", "created": "2013-10-26T03:34:25.921474", "email_hash": "08ef84daf0a575400420c923795b0a90", "sysadmin": false, "activity_streams_email_notifications": false, "state": "active", "number_of_edits": 130747, "number_administered_packages": 28, "display_name": "ALAMEDA", "fullname": "ALAMEDA", "id": "2fe39a2a-5e59-4f3b-ae68-b01c4d1f59c0"}, {"openid": null, "about": null, "capacity": "admin", "name": "gmcfann-859", "created": "2015-02-23T21:28:41.592689", "email_hash": "721a8e4562f3b78d7f1b6731c2e1edde", "sysadmin": false, "activity_streams_email_notifications": false, "state": "pending", "number_of_edits": 0, "number_administered_packages": 0, "display_name": "gmcfann-859", "fullname": null, "id": "4271b815-e6eb-4fae-b9f4-0dd02c6a59d6"}], "display_name": "City of Alameda, CA", "description": "", "image_display_url": "https://raw.githubusercontent.com/Accela-Inc/civicdata-logos/master/logo_alameda_ca.png", "title": "City of Alameda, CA", "package_count": 9, "created": "2013-12-16T16:24:44.916650", "approval_status": "approved", "is_organization": true, "state": "active", "extras": [], "image_url": "https://raw.githubusercontent.com/Accela-Inc/civicdata-logos/master/logo_alameda_ca.png", "groups": [], "revision_id": "2c938d8c-284c-4e23-b326-42f25f1e9ce1", "num_followers": 2, "type": "organization", "id": "c3846a32-18ce-4dc1-9196-f1b3db60f692", "tags": [], "name": "alameda-0ad8aa80-e1cb"}}; line: 1, column: 1444] (through reference chain: eu.trentorise.opendata.jackan.OrganizationResponse["result"]->eu.trentorise.opendata.jackan.model.CkanOrganization["users"]->java.util.ArrayList[2]->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