Jackan Test #1453

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": "Minist\u00e9rio da Justi\u00e7a", "capacity": "admin", "name": "adonis-tarallo", "created": "2014-03-11T13:56:55.836420", "email_hash": "cbd1c67cdbd2c82cf6b6e0d0a6626eb6", "sysadmin": false, "activity_streams_email_notifications": false, "state": "active", "number_of_edits": 182, "number_administered_packages": 3, "display_name": "Ad\u00f4nis Dias Tarallo", "fullname": "Ad\u00f4nis Dias Tarallo", "id": "e651d6f2-40be-44ac-8be0-c87ef97d5d98"}, {"openid": "", "about": "Analista em Tecnologia da Informa\u00e7\u00e3o, membro do Time de Dados Abertos da Secretaria de Log\u00edstica e Tecnologia da Informa\u00e7\u00e3o do Minist\u00e9rio do Planejamento, Or\u00e7amento e Gest\u00e3o. Coordena o GT4 da Infraestrutura Nacional de Dados Abertos.", "capacity": "admin", "name": "augusto.herrmann", "created": "2012-01-27T09:10:06.956626", "email_hash": "50a0017e05ea0ebf4845d629e1f989f6", "sysadmin": true, "activity_streams_email_notifications": false, "state": "active", "number_of_edits": 2341, "number_administered_packages": 14, "display_name": "Augusto Herrmann", "fullname": "Augusto Herrmann", "id": "92fd33df-b3d2-47a8-b377-c692d9ea9094"}, {"openid": null, "about": null, "capacity": "admin", "name": "eduardo-paiva-8876", "created": "2015-10-26T10:25:57.460554", "email_hash": "9ecca780d56836d79582060dac084923", "sysadmin": false, "activity_streams_email_notifications": false, "state": "pending", "number_of_edits": 0, "number_administered_packages": 0, "display_name": "eduardo-paiva-8876", "fullname": null, "id": "3d8de8af-425d-4a51-87e6-6da75d1cb8a6"}], "display_name": "Minist\u00e9rio da Justi\u00e7a", "description": "O [Minist\u00e9rio da Justi\u00e7a](http://www.justica.gov.br) tem por miss\u00e3o promover e construir direitos e pol\u00edticas de justi\u00e7a voltadas \u00e0 garantia e ao desenvolvimento do Estado de Direito, da Democracia, dos Direitos Humanos, da Cidadania e da Seguran\u00e7a P\u00fablica, por meio de a\u00e7\u00f5es conjuntas do poder p\u00fablico e da sociedade.", "image_display_url": "http://dados.gov.br/wp/wp-content/uploads/2015/10/ministerio-justica-1024x768.jpg", "title": "Minist\u00e9rio da Justi\u00e7a", "package_count": 13, "created": "2015-10-19T10:05:40.232649", "approval_status": "approved", "is_organization": true, "state": "active", "extras": [], "image_url": "http://dados.gov.br/wp/wp-content/uploads/2015/10/ministerio-justica-1024x768.jpg", "groups": [], "revision_id": "3af519ac-80ad-4a6c-9f41-e49cf36b9172", "num_followers": 0, "type": "organization", "id": "f87ea35d-5a6f-413d-89d8-fd0d9405e81c", "tags": [], "name": "ministerio-da-justica"}}  CkanClient{catalogURL=http://dados.gov.br, 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": "Minist\u00e9rio da Justi\u00e7a", "capacity": "admin", "name": "adonis-tarallo", "created": "2014-03-11T13:56:55.836420", "email_hash": "cbd1c67cdbd2c82cf6b6e0d0a6626eb6", "sysadmin": false, "activity_streams_email_notifications": false, "state": "active", "number_of_edits": 182, "number_administered_packages": 3, "display_name": "Ad\u00f4nis Dias Tarallo", "fullname": "Ad\u00f4nis Dias Tarallo", "id": "e651d6f2-40be-44ac-8be0-c87ef97d5d98"}, {"openid": "", "about": "Analista em Tecnologia da Informa\u00e7\u00e3o, membro do Time de Dados Abertos da Secretaria de Log\u00edstica e Tecnologia da Informa\u00e7\u00e3o do Minist\u00e9rio do Planejamento, Or\u00e7amento e Gest\u00e3o. Coordena o GT4 da Infraestrutura Nacional de Dados Abertos.", "capacity": "admin", "name": "augusto.herrmann", "created": "2012-01-27T09:10:06.956626", "email_hash": "50a0017e05ea0ebf4845d629e1f989f6", "sysadmin": true, "activity_streams_email_notifications": false, "state": "active", "number_of_edits": 2341, "number_administered_packages": 14, "display_name": "Augusto Herrmann", "fullname": "Augusto Herrmann", "id": "92fd33df-b3d2-47a8-b377-c692d9ea9094"}, {"openid": null, "about": null, "capacity": "admin", "name": "eduardo-paiva-8876", "created": "2015-10-26T10:25:57.460554", "email_hash": "9ecca780d56836d79582060dac084923", "sysadmin": false, "activity_streams_email_notifications": false, "state": "pending", "number_of_edits": 0, "number_administered_packages": 0, "display_name": "eduardo-paiva-8876", "fullname": null, "id": "3d8de8af-425d-4a51-87e6-6da75d1cb8a6"}], "display_name": "Minist\u00e9rio da Justi\u00e7a", "description": "O [Minist\u00e9rio da Justi\u00e7a](http://www.justica.gov.br) tem por miss\u00e3o promover e construir direitos e pol\u00edticas de justi\u00e7a voltadas \u00e0 garantia e ao desenvolvimento do Estado de Direito, da Democracia, dos Direitos Humanos, da Cidadania e da Seguran\u00e7a P\u00fablica, por meio de a\u00e7\u00f5es conjuntas do poder p\u00fablico e da sociedade.", "image_display_url": "http://dados.gov.br/wp/wp-content/uploads/2015/10/ministerio-justica-1024x768.jpg", "title": "Minist\u00e9rio da Justi\u00e7a", "package_count": 13, "created": "2015-10-19T10:05:40.232649", "approval_status": "approved", "is_organization": true, "state": "active", "extras": [], "image_url": "http://dados.gov.br/wp/wp-content/uploads/2015/10/ministerio-justica-1024x768.jpg", "groups": [], "revision_id": "3af519ac-80ad-4a6c-9f41-e49cf36b9172", "num_followers": 0, "type": "organization", "id": "f87ea35d-5a6f-413d-89d8-fd0d9405e81c", "tags": [], "name": "ministerio-da-justica"}}; line: 1, column: 1808] (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