{"action":"created","comment":{"url":"https://api.github.com/repos/FutureProcessing/document-juggler/pulls/comments/27716267","id":27716267,"diff_hunk":"@@ -0,0 +1,62 @@\n+package com.futureprocessing.documentjuggler.fieldNames;\n+\n+import com.futureprocessing.documentjuggler.annotation.CollectionName;\n+import com.futureprocessing.documentjuggler.annotation.DbField;\n+import com.futureprocessing.documentjuggler.commons.Validator;\n+import com.futureprocessing.documentjuggler.exception.validation.UnknownFieldException;\n+import org.junit.Test;\n+\n+import java.lang.reflect.Method;\n+\n+import static org.assertj.core.api.Assertions.assertThat;\n+import static org.junit.Assert.fail;\n+\n+public class ValidateFiledsTest {\n+\n+    @CollectionName(\"movie\")\n+    private interface Movie {\n+        String getTitle();\n+\n+        @DbField(\"movie_author\")\n+        String getAuthor();\n+\n+        String title();\n+    }\n+\n+    @Test\n+    public void shouldBeValidInGetterSetterWithIfDbFieldAnnotationNotExist() throws NoSuchMethodException {\n+        //given\n+        Method method = Movie.class.getMethod(\"getTitle\");\n+\n+        //when\n+        //then\n+        Validator.validateField(method);","path":"src/test/java/com/futureprocessing/documentjuggler/fieldNames/ValidateFiledsTest.java","position":33,"original_position":33,"commit_id":"3089f69535c82fa7c84b4f4e01bcb91e53cec15f","original_commit_id":"3089f69535c82fa7c84b4f4e01bcb91e53cec15f","user":{"login":"szymonsobocik","id":1173079,"avatar_url":"https://avatars.githubusercontent.com/u/1173079?v=3","gravatar_id":"","url":"https://api.github.com/users/szymonsobocik","html_url":"https://github.com/szymonsobocik","followers_url":"https://api.github.com/users/szymonsobocik/followers","following_url":"https://api.github.com/users/szymonsobocik/following{/other_user}","gists_url":"https://api.github.com/users/szymonsobocik/gists{/gist_id}","starred_url":"https://api.github.com/users/szymonsobocik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szymonsobocik/subscriptions","organizations_url":"https://api.github.com/users/szymonsobocik/orgs","repos_url":"https://api.github.com/users/szymonsobocik/repos","events_url":"https://api.github.com/users/szymonsobocik/events{/privacy}","received_events_url":"https://api.github.com/users/szymonsobocik/received_events","type":"User","site_admin":false},"body":"And maybe it'll be worth to wrap this into try/catch block, and explicitly ensure that no exception was thrown.","created_at":"2015-04-03T05:40:56Z","updated_at":"2015-04-03T05:40:56Z","html_url":"https://github.com/FutureProcessing/document-juggler/pull/67#discussion_r27716267","pull_request_url":"https://api.github.com/repos/FutureProcessing/document-juggler/pulls/67","_links":{"self":{"href":"https://api.github.com/repos/FutureProcessing/document-juggler/pulls/comments/27716267"},"html":{"href":"https://github.com/FutureProcessing/document-juggler/pull/67#discussion_r27716267"},"pull_request":{"href":"https://api.github.com/repos/FutureProcessing/document-juggler/pulls/67"}}},"pull_request":{"url":"https://api.github.com/repos/FutureProcessing/document-juggler/pulls/67","id":32504732,"html_url":"https://github.com/FutureProcessing/document-juggler/pull/67","diff_url":"https://github.com/FutureProcessing/document-juggler/pull/67.diff","patch_url":"https://github.com/FutureProcessing/document-juggler/pull/67.patch","issue_url":"https://api.github.com/repos/FutureProcessing/document-juggler/issues/67","number":67,"state":"open","locked":false,"title":"Use JavaBeans naming standard to guess fields name","user":{"login":"pcmiel","id":3273623,"avatar_url":"https://avatars.githubusercontent.com/u/3273623?v=3","gravatar_id":"","url":"https://api.github.com/users/pcmiel","html_url":"https://github.com/pcmiel","followers_url":"https://api.github.com/users/pcmiel/followers","following_url":"https://api.github.com/users/pcmiel/following{/other_user}","gists_url":"https://api.github.com/users/pcmiel/gists{/gist_id}","starred_url":"https://api.github.com/users/pcmiel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcmiel/subscriptions","organizations_url":"https://api.github.com/users/pcmiel/orgs","repos_url":"https://api.github.com/users/pcmiel/repos","events_url":"https://api.github.com/users/pcmiel/events{/privacy}","received_events_url":"https://api.github.com/users/pcmiel/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-02T11:54:37Z","updated_at":"2015-04-03T05:40:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"84c94713043600edc0afea6fe66157af103d1508","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FutureProcessing/document-juggler/pulls/67/commits","review_comments_url":"https://api.github.com/repos/FutureProcessing/document-juggler/pulls/67/comments","review_comment_url":"https://api.github.com/repos/FutureProcessing/document-juggler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FutureProcessing/document-juggler/issues/67/comments","statuses_url":"https://api.github.com/repos/FutureProcessing/document-juggler/statuses/3089f69535c82fa7c84b4f4e01bcb91e53cec15f","head":{"label":"FutureProcessing:49_Java_beans_naming","ref":"49_Java_beans_naming","sha":"3089f69535c82fa7c84b4f4e01bcb91e53cec15f","user":{"login":"FutureProcessing","id":7323981,"avatar_url":"https://avatars.githubusercontent.com/u/7323981?v=3","gravatar_id":"","url":"https://api.github.com/users/FutureProcessing","html_url":"https://github.com/FutureProcessing","followers_url":"https://api.github.com/users/FutureProcessing/followers","following_url":"https://api.github.com/users/FutureProcessing/following{/other_user}","gists_url":"https://api.github.com/users/FutureProcessing/gists{/gist_id}","starred_url":"https://api.github.com/users/FutureProcessing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FutureProcessing/subscriptions","organizations_url":"https://api.github.com/users/FutureProcessing/orgs","repos_url":"https://api.github.com/users/FutureProcessing/repos","events_url":"https://api.github.com/users/FutureProcessing/events{/privacy}","received_events_url":"https://api.github.com/users/FutureProcessing/received_events","type":"Organization","site_admin":false},"repo":{"id":32003728,"name":"document-juggler","full_name":"FutureProcessing/document-juggler","owner":{"login":"FutureProcessing","id":7323981,"avatar_url":"https://avatars.githubusercontent.com/u/7323981?v=3","gravatar_id":"","url":"https://api.github.com/users/FutureProcessing","html_url":"https://github.com/FutureProcessing","followers_url":"https://api.github.com/users/FutureProcessing/followers","following_url":"https://api.github.com/users/FutureProcessing/following{/other_user}","gists_url":"https://api.github.com/users/FutureProcessing/gists{/gist_id}","starred_url":"https://api.github.com/users/FutureProcessing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FutureProcessing/subscriptions","organizations_url":"https://api.github.com/users/FutureProcessing/orgs","repos_url":"https://api.github.com/users/FutureProcessing/repos","events_url":"https://api.github.com/users/FutureProcessing/events{/privacy}","received_events_url":"https://api.github.com/users/FutureProcessing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FutureProcessing/document-juggler","description":"Fluent MongoDB Java API","fork":false,"url":"https://api.github.com/repos/FutureProcessing/document-juggler","forks_url":"https://api.github.com/repos/FutureProcessing/document-juggler/forks","keys_url":"https://api.github.com/repos/FutureProcessing/document-juggler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FutureProcessing/document-juggler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FutureProcessing/document-juggler/teams","hooks_url":"https://api.github.com/repos/FutureProcessing/document-juggler/hooks","issue_events_url":"https://api.github.com/repos/FutureProcessing/document-juggler/issues/events{/number}","events_url":"https://api.github.com/repos/FutureProcessing/document-juggler/events","assignees_url":"https://api.github.com/repos/FutureProcessing/document-juggler/assignees{/user}","branches_url":"https://api.github.com/repos/FutureProcessing/document-juggler/branches{/branch}","tags_url":"https://api.github.com/repos/FutureProcessing/document-juggler/tags","blobs_url":"https://api.github.com/repos/FutureProcessing/document-juggler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FutureProcessing/document-juggler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FutureProcessing/document-juggler/git/refs{/sha}","trees_url":"https://api.github.com/repos/FutureProcessing/document-juggler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FutureProcessing/document-juggler/statuses/{sha}","languages_url":"https://api.github.com/repos/FutureProcessing/document-juggler/languages","stargazers_url":"https://api.github.com/repos/FutureProcessing/document-juggler/stargazers","contributors_url":"https://api.github.com/repos/FutureProcessing/document-juggler/contributors","subscribers_url":"https://api.github.com/repos/FutureProcessing/document-juggler/subscribers","subscription_url":"https://api.github.com/repos/FutureProcessing/document-juggler/subscription","commits_url":"https://api.github.com/repos/FutureProcessing/document-juggler/commits{/sha}","git_commits_url":"https://api.github.com/repos/FutureProcessing/document-juggler/git/commits{/sha}","comments_url":"https://api.github.com/repos/FutureProcessing/document-juggler/comments{/number}","issue_comment_url":"https://api.github.com/repos/FutureProcessing/document-juggler/issues/comments{/number}","contents_url":"https://api.github.com/repos/FutureProcessing/document-juggler/contents/{+path}","compare_url":"https://api.github.com/repos/FutureProcessing/document-juggler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FutureProcessing/document-juggler/merges","archive_url":"https://api.github.com/repos/FutureProcessing/document-juggler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FutureProcessing/document-juggler/downloads","issues_url":"https://api.github.com/repos/FutureProcessing/document-juggler/issues{/number}","pulls_url":"https://api.github.com/repos/FutureProcessing/document-juggler/pulls{/number}","milestones_url":"https://api.github.com/repos/FutureProcessing/document-juggler/milestones{/number}","notifications_url":"https://api.github.com/repos/FutureProcessing/document-juggler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FutureProcessing/document-juggler/labels{/name}","releases_url":"https://api.github.com/repos/FutureProcessing/document-juggler/releases{/id}","created_at":"2015-03-11T07:17:00Z","updated_at":"2015-03-25T08:25:34Z","pushed_at":"2015-04-02T11:54:37Z","git_url":"git://github.com/FutureProcessing/document-juggler.git","ssh_url":"git@github.com:FutureProcessing/document-juggler.git","clone_url":"https://github.com/FutureProcessing/document-juggler.git","svn_url":"https://github.com/FutureProcessing/document-juggler","homepage":null,"size":1371,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":2,"default_branch":"master"}},"base":{"label":"FutureProcessing:develop","ref":"develop","sha":"4b8abaf54e6fe73420b97ad3b093f53de7123e8b","user":{"login":"FutureProcessing","id":7323981,"avatar_url":"https://avatars.githubusercontent.com/u/7323981?v=3","gravatar_id":"","url":"https://api.github.com/users/FutureProcessing","html_url":"https://github.com/FutureProcessing","followers_url":"https://api.github.com/users/FutureProcessing/followers","following_url":"https://api.github.com/users/FutureProcessing/following{/other_user}","gists_url":"https://api.github.com/users/FutureProcessing/gists{/gist_id}","starred_url":"https://api.github.com/users/FutureProcessing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FutureProcessing/subscriptions","organizations_url":"https://api.github.com/users/FutureProcessing/orgs","repos_url":"https://api.github.com/users/FutureProcessing/repos","events_url":"https://api.github.com/users/FutureProcessing/events{/privacy}","received_events_url":"https://api.github.com/users/FutureProcessing/received_events","type":"Organization","site_admin":false},"repo":{"id":32003728,"name":"document-juggler","full_name":"FutureProcessing/document-juggler","owner":{"login":"FutureProcessing","id":7323981,"avatar_url":"https://avatars.githubusercontent.com/u/7323981?v=3","gravatar_id":"","url":"https://api.github.com/users/FutureProcessing","html_url":"https://github.com/FutureProcessing","followers_url":"https://api.github.com/users/FutureProcessing/followers","following_url":"https://api.github.com/users/FutureProcessing/following{/other_user}","gists_url":"https://api.github.com/users/FutureProcessing/gists{/gist_id}","starred_url":"https://api.github.com/users/FutureProcessing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FutureProcessing/subscriptions","organizations_url":"https://api.github.com/users/FutureProcessing/orgs","repos_url":"https://api.github.com/users/FutureProcessing/repos","events_url":"https://api.github.com/users/FutureProcessing/events{/privacy}","received_events_url":"https://api.github.com/users/FutureProcessing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FutureProcessing/document-juggler","description":"Fluent MongoDB Java API","fork":false,"url":"https://api.github.com/repos/FutureProcessing/document-juggler","forks_url":"https://api.github.com/repos/FutureProcessing/document-juggler/forks","keys_url":"https://api.github.com/repos/FutureProcessing/document-juggler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FutureProcessing/document-juggler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FutureProcessing/document-juggler/teams","hooks_url":"https://api.github.com/repos/FutureProcessing/document-juggler/hooks","issue_events_url":"https://api.github.com/repos/FutureProcessing/document-juggler/issues/events{/number}","events_url":"https://api.github.com/repos/FutureProcessing/document-juggler/events","assignees_url":"https://api.github.com/repos/FutureProcessing/document-juggler/assignees{/user}","branches_url":"https://api.github.com/repos/FutureProcessing/document-juggler/branches{/branch}","tags_url":"https://api.github.com/repos/FutureProcessing/document-juggler/tags","blobs_url":"https://api.github.com/repos/FutureProcessing/document-juggler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FutureProcessing/document-juggler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FutureProcessing/document-juggler/git/refs{/sha}","trees_url":"https://api.github.com/repos/FutureProcessing/document-juggler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FutureProcessing/document-juggler/statuses/{sha}","languages_url":"https://api.github.com/repos/FutureProcessing/document-juggler/languages","stargazers_url":"https://api.github.com/repos/FutureProcessing/document-juggler/stargazers","contributors_url":"https://api.github.com/repos/FutureProcessing/document-juggler/contributors","subscribers_url":"https://api.github.com/repos/FutureProcessing/document-juggler/subscribers","subscription_url":"https://api.github.com/repos/FutureProcessing/document-juggler/subscription","commits_url":"https://api.github.com/repos/FutureProcessing/document-juggler/commits{/sha}","git_commits_url":"https://api.github.com/repos/FutureProcessing/document-juggler/git/commits{/sha}","comments_url":"https://api.github.com/repos/FutureProcessing/document-juggler/comments{/number}","issue_comment_url":"https://api.github.com/repos/FutureProcessing/document-juggler/issues/comments{/number}","contents_url":"https://api.github.com/repos/FutureProcessing/document-juggler/contents/{+path}","compare_url":"https://api.github.com/repos/FutureProcessing/document-juggler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FutureProcessing/document-juggler/merges","archive_url":"https://api.github.com/repos/FutureProcessing/document-juggler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FutureProcessing/document-juggler/downloads","issues_url":"https://api.github.com/repos/FutureProcessing/document-juggler/issues{/number}","pulls_url":"https://api.github.com/repos/FutureProcessing/document-juggler/pulls{/number}","milestones_url":"https://api.github.com/repos/FutureProcessing/document-juggler/milestones{/number}","notifications_url":"https://api.github.com/repos/FutureProcessing/document-juggler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FutureProcessing/document-juggler/labels{/name}","releases_url":"https://api.github.com/repos/FutureProcessing/document-juggler/releases{/id}","created_at":"2015-03-11T07:17:00Z","updated_at":"2015-03-25T08:25:34Z","pushed_at":"2015-04-02T11:54:37Z","git_url":"git://github.com/FutureProcessing/document-juggler.git","ssh_url":"git@github.com:FutureProcessing/document-juggler.git","clone_url":"https://github.com/FutureProcessing/document-juggler.git","svn_url":"https://github.com/FutureProcessing/document-juggler","homepage":null,"size":1371,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FutureProcessing/document-juggler/pulls/67"},"html":{"href":"https://github.com/FutureProcessing/document-juggler/pull/67"},"issue":{"href":"https://api.github.com/repos/FutureProcessing/document-juggler/issues/67"},"comments":{"href":"https://api.github.com/repos/FutureProcessing/document-juggler/issues/67/comments"},"review_comments":{"href":"https://api.github.com/repos/FutureProcessing/document-juggler/pulls/67/comments"},"review_comment":{"href":"https://api.github.com/repos/FutureProcessing/document-juggler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FutureProcessing/document-juggler/pulls/67/commits"},"statuses":{"href":"https://api.github.com/repos/FutureProcessing/document-juggler/statuses/3089f69535c82fa7c84b4f4e01bcb91e53cec15f"}}}}