{"action":"closed","issue":{"url":"https://api.github.com/repos/johncarl81/parceler/issues/122","labels_url":"https://api.github.com/repos/johncarl81/parceler/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/johncarl81/parceler/issues/122/comments","events_url":"https://api.github.com/repos/johncarl81/parceler/issues/122/events","html_url":"https://github.com/johncarl81/parceler/issues/122","id":104274047,"number":122,"title":"Make CREATOR methods public","user":{"login":"RomainPiel","id":464320,"avatar_url":"https://avatars.githubusercontent.com/u/464320?v=3","gravatar_id":"","url":"https://api.github.com/users/RomainPiel","html_url":"https://github.com/RomainPiel","followers_url":"https://api.github.com/users/RomainPiel/followers","following_url":"https://api.github.com/users/RomainPiel/following{/other_user}","gists_url":"https://api.github.com/users/RomainPiel/gists{/gist_id}","starred_url":"https://api.github.com/users/RomainPiel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomainPiel/subscriptions","organizations_url":"https://api.github.com/users/RomainPiel/orgs","repos_url":"https://api.github.com/users/RomainPiel/repos","events_url":"https://api.github.com/users/RomainPiel/events{/privacy}","received_events_url":"https://api.github.com/users/RomainPiel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-01T14:05:00Z","updated_at":"2015-09-01T20:19:38Z","closed_at":"2015-09-01T20:19:38Z","body":"First of all, thanks a lot for this library it's really helpful.\r\nThere is something that I'm missing from Parceler, it's really hard to unit test the generated parcelables. Say that you want to test that the unmarshalled version of your model is the same as the one you provided:\r\n```java\r\n@Test\r\npublic void testSerialization() {\r\n    Page page = new Page(1);\r\n    Parcelable parcelable = Parcels.wrap(page);\r\n\r\n    Parcel parcel = Parcel.obtain();\r\n    parcelable.writeToParcel(parcel, 0);\r\n\r\n    parcel.setDataPosition(0);\r\n\r\n    Page$$Parcelable createdFromParcel = Page$$Parcelable.CREATOR.createFromParcel(parcel);\r\n    assertThat(Parcels.unwrap(createdFromParcel)).isEqualTo(parcelable);\r\n}\r\n```\r\n\r\nThis code is not compilable with Parceler. The problem is that `CREATOR.createFromParcel()` is not public.\r\nI understand why we want to close down accesses as much as possible but we should be able to make these kinds of tests and usually a `CREATOR` doesn't hide its implementations."}}