{"action":"created","comment":{"url":"https://api.github.com/repos/JabRef/jabref/pulls/comments/61466264","id":61466264,"diff_hunk":"@@ -0,0 +1,33 @@\n+package net.sf.jabref.event;\n+\n+import net.sf.jabref.model.entry.BibEntry;\n+import net.sf.jabref.model.entry.IdGenerator;\n+\n+import com.google.common.eventbus.EventBus;\n+import org.junit.Assert;\n+import org.junit.Before;\n+import org.junit.Test;\n+\n+public class AddEntryEventTest {\n+\n+    private EventBus eventBus;\n+    private TestEventListener testEventListener;\n+\n+    @Before\n+    public void setUp() {\n+        eventBus = new EventBus();\n+        testEventListener = new TestEventListener();\n+        eventBus.register(testEventListener);\n+    }\n+\n+    @Test\n+    public void testEventReceivement() {\n+        BibEntry shouldBeBibEntry = new BibEntry();\n+        shouldBeBibEntry.setId(IdGenerator.next());\n+        AddEntryEvent aocee = new AddEntryEvent(shouldBeBibEntry);\n+        eventBus.post(aocee);","path":"src/test/java/net/sf/jabref/event/AddEntryEventTest.java","position":null,"original_position":28,"commit_id":"59c70dd30452e98013f92733d1ccfa4f444bb31d","original_commit_id":"c40b76c016bccd74f0942b77c38653e507312acf","user":{"login":"obraliar","id":15609468,"avatar_url":"https://avatars.githubusercontent.com/u/15609468?v=3","gravatar_id":"","url":"https://api.github.com/users/obraliar","html_url":"https://github.com/obraliar","followers_url":"https://api.github.com/users/obraliar/followers","following_url":"https://api.github.com/users/obraliar/following{/other_user}","gists_url":"https://api.github.com/users/obraliar/gists{/gist_id}","starred_url":"https://api.github.com/users/obraliar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obraliar/subscriptions","organizations_url":"https://api.github.com/users/obraliar/orgs","repos_url":"https://api.github.com/users/obraliar/repos","events_url":"https://api.github.com/users/obraliar/events{/privacy}","received_events_url":"https://api.github.com/users/obraliar/received_events","type":"User","site_admin":false},"body":"Removed.","created_at":"2016-04-28T17:15:19Z","updated_at":"2016-04-28T17:15:19Z","html_url":"https://github.com/JabRef/jabref/pull/1028#discussion_r61466264","pull_request_url":"https://api.github.com/repos/JabRef/jabref/pulls/1028","_links":{"self":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/comments/61466264"},"html":{"href":"https://github.com/JabRef/jabref/pull/1028#discussion_r61466264"},"pull_request":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/1028"}}},"pull_request":{"url":"https://api.github.com/repos/JabRef/jabref/pulls/1028","id":63940831,"html_url":"https://github.com/JabRef/jabref/pull/1028","diff_url":"https://github.com/JabRef/jabref/pull/1028.diff","patch_url":"https://github.com/JabRef/jabref/pull/1028.patch","issue_url":"https://api.github.com/repos/JabRef/jabref/issues/1028","number":1028,"state":"open","locked":false,"title":"[WIP] AddEventSystem","user":{"login":"obraliar","id":15609468,"avatar_url":"https://avatars.githubusercontent.com/u/15609468?v=3","gravatar_id":"","url":"https://api.github.com/users/obraliar","html_url":"https://github.com/obraliar","followers_url":"https://api.github.com/users/obraliar/followers","following_url":"https://api.github.com/users/obraliar/following{/other_user}","gists_url":"https://api.github.com/users/obraliar/gists{/gist_id}","starred_url":"https://api.github.com/users/obraliar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obraliar/subscriptions","organizations_url":"https://api.github.com/users/obraliar/orgs","repos_url":"https://api.github.com/users/obraliar/repos","events_url":"https://api.github.com/users/obraliar/events{/privacy}","received_events_url":"https://api.github.com/users/obraliar/received_events","type":"User","site_admin":false},"body":"- [x] Introduce an EventBus object being passed around. This enables better testing.\r\n- [x] Make `DatabaseChangeEvent` abstract and add subclasses according to `DatbaseChangeEvent`\r\n- [x] Rewrite the currently existing code to use that event bus instead of `net.sf.jabref.model.database.BibDatabase.addDatabaseChangeListener(DatabaseChangeListener)` and `net.sf.jabref.model.database.BibDatabase.removeDatabaseChangeListener(DatabaseChangeListener)` \r\n- [ ] Changes described in CHANGELOG.md?\r\n- [x] Tests created for changes?\r\n- [x] Tests green?","created_at":"2016-03-23T19:39:51Z","updated_at":"2016-04-28T17:15:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a2547caa151620c5e71e095f5897daf4b86da761","assignee":{"login":"obraliar","id":15609468,"avatar_url":"https://avatars.githubusercontent.com/u/15609468?v=3","gravatar_id":"","url":"https://api.github.com/users/obraliar","html_url":"https://github.com/obraliar","followers_url":"https://api.github.com/users/obraliar/followers","following_url":"https://api.github.com/users/obraliar/following{/other_user}","gists_url":"https://api.github.com/users/obraliar/gists{/gist_id}","starred_url":"https://api.github.com/users/obraliar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obraliar/subscriptions","organizations_url":"https://api.github.com/users/obraliar/orgs","repos_url":"https://api.github.com/users/obraliar/repos","events_url":"https://api.github.com/users/obraliar/events{/privacy}","received_events_url":"https://api.github.com/users/obraliar/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/JabRef/jabref/pulls/1028/commits","review_comments_url":"https://api.github.com/repos/JabRef/jabref/pulls/1028/comments","review_comment_url":"https://api.github.com/repos/JabRef/jabref/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JabRef/jabref/issues/1028/comments","statuses_url":"https://api.github.com/repos/JabRef/jabref/statuses/59c70dd30452e98013f92733d1ccfa4f444bb31d","head":{"label":"obraliar:AddEventSystem","ref":"AddEventSystem","sha":"59c70dd30452e98013f92733d1ccfa4f444bb31d","user":{"login":"obraliar","id":15609468,"avatar_url":"https://avatars.githubusercontent.com/u/15609468?v=3","gravatar_id":"","url":"https://api.github.com/users/obraliar","html_url":"https://github.com/obraliar","followers_url":"https://api.github.com/users/obraliar/followers","following_url":"https://api.github.com/users/obraliar/following{/other_user}","gists_url":"https://api.github.com/users/obraliar/gists{/gist_id}","starred_url":"https://api.github.com/users/obraliar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obraliar/subscriptions","organizations_url":"https://api.github.com/users/obraliar/orgs","repos_url":"https://api.github.com/users/obraliar/repos","events_url":"https://api.github.com/users/obraliar/events{/privacy}","received_events_url":"https://api.github.com/users/obraliar/received_events","type":"User","site_admin":false},"repo":{"id":47899956,"name":"jabref","full_name":"obraliar/jabref","owner":{"login":"obraliar","id":15609468,"avatar_url":"https://avatars.githubusercontent.com/u/15609468?v=3","gravatar_id":"","url":"https://api.github.com/users/obraliar","html_url":"https://github.com/obraliar","followers_url":"https://api.github.com/users/obraliar/followers","following_url":"https://api.github.com/users/obraliar/following{/other_user}","gists_url":"https://api.github.com/users/obraliar/gists{/gist_id}","starred_url":"https://api.github.com/users/obraliar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obraliar/subscriptions","organizations_url":"https://api.github.com/users/obraliar/orgs","repos_url":"https://api.github.com/users/obraliar/repos","events_url":"https://api.github.com/users/obraliar/events{/privacy}","received_events_url":"https://api.github.com/users/obraliar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/obraliar/jabref","description":"Graphical Java application for managing bibtex (.bib) databases","fork":true,"url":"https://api.github.com/repos/obraliar/jabref","forks_url":"https://api.github.com/repos/obraliar/jabref/forks","keys_url":"https://api.github.com/repos/obraliar/jabref/keys{/key_id}","collaborators_url":"https://api.github.com/repos/obraliar/jabref/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/obraliar/jabref/teams","hooks_url":"https://api.github.com/repos/obraliar/jabref/hooks","issue_events_url":"https://api.github.com/repos/obraliar/jabref/issues/events{/number}","events_url":"https://api.github.com/repos/obraliar/jabref/events","assignees_url":"https://api.github.com/repos/obraliar/jabref/assignees{/user}","branches_url":"https://api.github.com/repos/obraliar/jabref/branches{/branch}","tags_url":"https://api.github.com/repos/obraliar/jabref/tags","blobs_url":"https://api.github.com/repos/obraliar/jabref/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/obraliar/jabref/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/obraliar/jabref/git/refs{/sha}","trees_url":"https://api.github.com/repos/obraliar/jabref/git/trees{/sha}","statuses_url":"https://api.github.com/repos/obraliar/jabref/statuses/{sha}","languages_url":"https://api.github.com/repos/obraliar/jabref/languages","stargazers_url":"https://api.github.com/repos/obraliar/jabref/stargazers","contributors_url":"https://api.github.com/repos/obraliar/jabref/contributors","subscribers_url":"https://api.github.com/repos/obraliar/jabref/subscribers","subscription_url":"https://api.github.com/repos/obraliar/jabref/subscription","commits_url":"https://api.github.com/repos/obraliar/jabref/commits{/sha}","git_commits_url":"https://api.github.com/repos/obraliar/jabref/git/commits{/sha}","comments_url":"https://api.github.com/repos/obraliar/jabref/comments{/number}","issue_comment_url":"https://api.github.com/repos/obraliar/jabref/issues/comments{/number}","contents_url":"https://api.github.com/repos/obraliar/jabref/contents/{+path}","compare_url":"https://api.github.com/repos/obraliar/jabref/compare/{base}...{head}","merges_url":"https://api.github.com/repos/obraliar/jabref/merges","archive_url":"https://api.github.com/repos/obraliar/jabref/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/obraliar/jabref/downloads","issues_url":"https://api.github.com/repos/obraliar/jabref/issues{/number}","pulls_url":"https://api.github.com/repos/obraliar/jabref/pulls{/number}","milestones_url":"https://api.github.com/repos/obraliar/jabref/milestones{/number}","notifications_url":"https://api.github.com/repos/obraliar/jabref/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/obraliar/jabref/labels{/name}","releases_url":"https://api.github.com/repos/obraliar/jabref/releases{/id}","deployments_url":"https://api.github.com/repos/obraliar/jabref/deployments","created_at":"2015-12-13T00:19:54Z","updated_at":"2016-01-12T22:43:39Z","pushed_at":"2016-04-28T16:44:25Z","git_url":"git://github.com/obraliar/jabref.git","ssh_url":"git@github.com:obraliar/jabref.git","clone_url":"https://github.com/obraliar/jabref.git","svn_url":"https://github.com/obraliar/jabref","homepage":"http://www.jabref.org/","size":78859,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"JabRef:master","ref":"master","sha":"65cfbf2d4d443308124cd83a5e7a60a47938f3e6","user":{"login":"JabRef","id":3914421,"avatar_url":"https://avatars.githubusercontent.com/u/3914421?v=3","gravatar_id":"","url":"https://api.github.com/users/JabRef","html_url":"https://github.com/JabRef","followers_url":"https://api.github.com/users/JabRef/followers","following_url":"https://api.github.com/users/JabRef/following{/other_user}","gists_url":"https://api.github.com/users/JabRef/gists{/gist_id}","starred_url":"https://api.github.com/users/JabRef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JabRef/subscriptions","organizations_url":"https://api.github.com/users/JabRef/orgs","repos_url":"https://api.github.com/users/JabRef/repos","events_url":"https://api.github.com/users/JabRef/events{/privacy}","received_events_url":"https://api.github.com/users/JabRef/received_events","type":"Organization","site_admin":false},"repo":{"id":17634071,"name":"jabref","full_name":"JabRef/jabref","owner":{"login":"JabRef","id":3914421,"avatar_url":"https://avatars.githubusercontent.com/u/3914421?v=3","gravatar_id":"","url":"https://api.github.com/users/JabRef","html_url":"https://github.com/JabRef","followers_url":"https://api.github.com/users/JabRef/followers","following_url":"https://api.github.com/users/JabRef/following{/other_user}","gists_url":"https://api.github.com/users/JabRef/gists{/gist_id}","starred_url":"https://api.github.com/users/JabRef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JabRef/subscriptions","organizations_url":"https://api.github.com/users/JabRef/orgs","repos_url":"https://api.github.com/users/JabRef/repos","events_url":"https://api.github.com/users/JabRef/events{/privacy}","received_events_url":"https://api.github.com/users/JabRef/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JabRef/jabref","description":"Graphical Java application for managing bibtex (.bib) databases","fork":false,"url":"https://api.github.com/repos/JabRef/jabref","forks_url":"https://api.github.com/repos/JabRef/jabref/forks","keys_url":"https://api.github.com/repos/JabRef/jabref/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JabRef/jabref/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JabRef/jabref/teams","hooks_url":"https://api.github.com/repos/JabRef/jabref/hooks","issue_events_url":"https://api.github.com/repos/JabRef/jabref/issues/events{/number}","events_url":"https://api.github.com/repos/JabRef/jabref/events","assignees_url":"https://api.github.com/repos/JabRef/jabref/assignees{/user}","branches_url":"https://api.github.com/repos/JabRef/jabref/branches{/branch}","tags_url":"https://api.github.com/repos/JabRef/jabref/tags","blobs_url":"https://api.github.com/repos/JabRef/jabref/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JabRef/jabref/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JabRef/jabref/git/refs{/sha}","trees_url":"https://api.github.com/repos/JabRef/jabref/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JabRef/jabref/statuses/{sha}","languages_url":"https://api.github.com/repos/JabRef/jabref/languages","stargazers_url":"https://api.github.com/repos/JabRef/jabref/stargazers","contributors_url":"https://api.github.com/repos/JabRef/jabref/contributors","subscribers_url":"https://api.github.com/repos/JabRef/jabref/subscribers","subscription_url":"https://api.github.com/repos/JabRef/jabref/subscription","commits_url":"https://api.github.com/repos/JabRef/jabref/commits{/sha}","git_commits_url":"https://api.github.com/repos/JabRef/jabref/git/commits{/sha}","comments_url":"https://api.github.com/repos/JabRef/jabref/comments{/number}","issue_comment_url":"https://api.github.com/repos/JabRef/jabref/issues/comments{/number}","contents_url":"https://api.github.com/repos/JabRef/jabref/contents/{+path}","compare_url":"https://api.github.com/repos/JabRef/jabref/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JabRef/jabref/merges","archive_url":"https://api.github.com/repos/JabRef/jabref/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JabRef/jabref/downloads","issues_url":"https://api.github.com/repos/JabRef/jabref/issues{/number}","pulls_url":"https://api.github.com/repos/JabRef/jabref/pulls{/number}","milestones_url":"https://api.github.com/repos/JabRef/jabref/milestones{/number}","notifications_url":"https://api.github.com/repos/JabRef/jabref/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JabRef/jabref/labels{/name}","releases_url":"https://api.github.com/repos/JabRef/jabref/releases{/id}","deployments_url":"https://api.github.com/repos/JabRef/jabref/deployments","created_at":"2014-03-11T14:48:42Z","updated_at":"2016-04-26T20:48:05Z","pushed_at":"2016-04-28T16:31:58Z","git_url":"git://github.com/JabRef/jabref.git","ssh_url":"git@github.com:JabRef/jabref.git","clone_url":"https://github.com/JabRef/jabref.git","svn_url":"https://github.com/JabRef/jabref","homepage":"http://www.jabref.org/","size":84336,"stargazers_count":272,"watchers_count":272,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":201,"mirror_url":null,"open_issues_count":196,"forks":201,"open_issues":196,"watchers":272,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/1028"},"html":{"href":"https://github.com/JabRef/jabref/pull/1028"},"issue":{"href":"https://api.github.com/repos/JabRef/jabref/issues/1028"},"comments":{"href":"https://api.github.com/repos/JabRef/jabref/issues/1028/comments"},"review_comments":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/1028/comments"},"review_comment":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/1028/commits"},"statuses":{"href":"https://api.github.com/repos/JabRef/jabref/statuses/59c70dd30452e98013f92733d1ccfa4f444bb31d"}}}}