{"action":"created","comment":{"url":"https://api.github.com/repos/JabRef/jabref/pulls/comments/48155745","id":48155745,"diff_hunk":"@@ -0,0 +1,126 @@\n+package net.sf.jabref.importer.fileformat;\n+\n+import net.sf.jabref.Globals;\n+import net.sf.jabref.JabRefPreferences;\n+import net.sf.jabref.importer.OutputPrinterToNull;\n+import net.sf.jabref.model.entry.BibEntry;\n+import org.junit.Before;\n+import org.junit.Rule;\n+import org.junit.Test;\n+import org.junit.rules.ExpectedException;\n+\n+import java.io.IOException;\n+import java.io.InputStream;\n+import java.util.Arrays;\n+import java.util.List;\n+\n+import static org.junit.Assert.*;\n+\n+\n+public class EndnoteImporterTest {\n+\n+    @Rule\n+    public ExpectedException thrown = ExpectedException.none();\n+\n+    EndnoteImporter importer;\n+\n+    @Before\n+    public void setUp() throws Exception {\n+        if (Globals.prefs == null) {\n+            Globals.prefs = JabRefPreferences.getInstance();\n+        }","path":"src/test/java/net/sf/jabref/importer/fileformat/EndnoteImporterTest.java","position":31,"original_position":31,"commit_id":"6fb8635b36920b760e3e003d169e4a4fb78626ef","original_commit_id":"6fb8635b36920b760e3e003d169e4a4fb78626ef","user":{"login":"koppor","id":1366654,"avatar_url":"https://avatars.githubusercontent.com/u/1366654?v=3","gravatar_id":"","url":"https://api.github.com/users/koppor","html_url":"https://github.com/koppor","followers_url":"https://api.github.com/users/koppor/followers","following_url":"https://api.github.com/users/koppor/following{/other_user}","gists_url":"https://api.github.com/users/koppor/gists{/gist_id}","starred_url":"https://api.github.com/users/koppor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koppor/subscriptions","organizations_url":"https://api.github.com/users/koppor/orgs","repos_url":"https://api.github.com/users/koppor/repos","events_url":"https://api.github.com/users/koppor/events{/privacy}","received_events_url":"https://api.github.com/users/koppor/received_events","type":"User","site_admin":false},"body":"Reference in the docs: https://github.com/JabRef/jabref/wiki/Code-Howtos#preferences-in-tests","created_at":"2015-12-21T15:27:59Z","updated_at":"2015-12-21T15:27:59Z","html_url":"https://github.com/JabRef/jabref/pull/321#discussion_r48155745","pull_request_url":"https://api.github.com/repos/JabRef/jabref/pulls/321","_links":{"self":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/comments/48155745"},"html":{"href":"https://github.com/JabRef/jabref/pull/321#discussion_r48155745"},"pull_request":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/321"}}},"pull_request":{"url":"https://api.github.com/repos/JabRef/jabref/pulls/321","id":50439295,"html_url":"https://github.com/JabRef/jabref/pull/321","diff_url":"https://github.com/JabRef/jabref/pull/321.diff","patch_url":"https://github.com/JabRef/jabref/pull/321.patch","issue_url":"https://api.github.com/repos/JabRef/jabref/issues/321","number":321,"state":"open","locked":false,"title":"Endnote importer test","user":{"login":"bartsch-dev","id":15333371,"avatar_url":"https://avatars.githubusercontent.com/u/15333371?v=3","gravatar_id":"","url":"https://api.github.com/users/bartsch-dev","html_url":"https://github.com/bartsch-dev","followers_url":"https://api.github.com/users/bartsch-dev/followers","following_url":"https://api.github.com/users/bartsch-dev/following{/other_user}","gists_url":"https://api.github.com/users/bartsch-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/bartsch-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartsch-dev/subscriptions","organizations_url":"https://api.github.com/users/bartsch-dev/orgs","repos_url":"https://api.github.com/users/bartsch-dev/repos","events_url":"https://api.github.com/users/bartsch-dev/events{/privacy}","received_events_url":"https://api.github.com/users/bartsch-dev/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-11T21:32:54Z","updated_at":"2015-12-21T15:27:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0cd93df7eac455c12c750efa0b4278c42b426b81","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JabRef/jabref/pulls/321/commits","review_comments_url":"https://api.github.com/repos/JabRef/jabref/pulls/321/comments","review_comment_url":"https://api.github.com/repos/JabRef/jabref/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JabRef/jabref/issues/321/comments","statuses_url":"https://api.github.com/repos/JabRef/jabref/statuses/6fb8635b36920b760e3e003d169e4a4fb78626ef","head":{"label":"bartsch-dev:EndnoteImporterTest","ref":"EndnoteImporterTest","sha":"6fb8635b36920b760e3e003d169e4a4fb78626ef","user":{"login":"bartsch-dev","id":15333371,"avatar_url":"https://avatars.githubusercontent.com/u/15333371?v=3","gravatar_id":"","url":"https://api.github.com/users/bartsch-dev","html_url":"https://github.com/bartsch-dev","followers_url":"https://api.github.com/users/bartsch-dev/followers","following_url":"https://api.github.com/users/bartsch-dev/following{/other_user}","gists_url":"https://api.github.com/users/bartsch-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/bartsch-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartsch-dev/subscriptions","organizations_url":"https://api.github.com/users/bartsch-dev/orgs","repos_url":"https://api.github.com/users/bartsch-dev/repos","events_url":"https://api.github.com/users/bartsch-dev/events{/privacy}","received_events_url":"https://api.github.com/users/bartsch-dev/received_events","type":"User","site_admin":false},"repo":{"id":45906343,"name":"jabref","full_name":"bartsch-dev/jabref","owner":{"login":"bartsch-dev","id":15333371,"avatar_url":"https://avatars.githubusercontent.com/u/15333371?v=3","gravatar_id":"","url":"https://api.github.com/users/bartsch-dev","html_url":"https://github.com/bartsch-dev","followers_url":"https://api.github.com/users/bartsch-dev/followers","following_url":"https://api.github.com/users/bartsch-dev/following{/other_user}","gists_url":"https://api.github.com/users/bartsch-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/bartsch-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartsch-dev/subscriptions","organizations_url":"https://api.github.com/users/bartsch-dev/orgs","repos_url":"https://api.github.com/users/bartsch-dev/repos","events_url":"https://api.github.com/users/bartsch-dev/events{/privacy}","received_events_url":"https://api.github.com/users/bartsch-dev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bartsch-dev/jabref","description":"Graphical Java application for managing bibtex (.bib) databases","fork":true,"url":"https://api.github.com/repos/bartsch-dev/jabref","forks_url":"https://api.github.com/repos/bartsch-dev/jabref/forks","keys_url":"https://api.github.com/repos/bartsch-dev/jabref/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bartsch-dev/jabref/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bartsch-dev/jabref/teams","hooks_url":"https://api.github.com/repos/bartsch-dev/jabref/hooks","issue_events_url":"https://api.github.com/repos/bartsch-dev/jabref/issues/events{/number}","events_url":"https://api.github.com/repos/bartsch-dev/jabref/events","assignees_url":"https://api.github.com/repos/bartsch-dev/jabref/assignees{/user}","branches_url":"https://api.github.com/repos/bartsch-dev/jabref/branches{/branch}","tags_url":"https://api.github.com/repos/bartsch-dev/jabref/tags","blobs_url":"https://api.github.com/repos/bartsch-dev/jabref/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bartsch-dev/jabref/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bartsch-dev/jabref/git/refs{/sha}","trees_url":"https://api.github.com/repos/bartsch-dev/jabref/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bartsch-dev/jabref/statuses/{sha}","languages_url":"https://api.github.com/repos/bartsch-dev/jabref/languages","stargazers_url":"https://api.github.com/repos/bartsch-dev/jabref/stargazers","contributors_url":"https://api.github.com/repos/bartsch-dev/jabref/contributors","subscribers_url":"https://api.github.com/repos/bartsch-dev/jabref/subscribers","subscription_url":"https://api.github.com/repos/bartsch-dev/jabref/subscription","commits_url":"https://api.github.com/repos/bartsch-dev/jabref/commits{/sha}","git_commits_url":"https://api.github.com/repos/bartsch-dev/jabref/git/commits{/sha}","comments_url":"https://api.github.com/repos/bartsch-dev/jabref/comments{/number}","issue_comment_url":"https://api.github.com/repos/bartsch-dev/jabref/issues/comments{/number}","contents_url":"https://api.github.com/repos/bartsch-dev/jabref/contents/{+path}","compare_url":"https://api.github.com/repos/bartsch-dev/jabref/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bartsch-dev/jabref/merges","archive_url":"https://api.github.com/repos/bartsch-dev/jabref/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bartsch-dev/jabref/downloads","issues_url":"https://api.github.com/repos/bartsch-dev/jabref/issues{/number}","pulls_url":"https://api.github.com/repos/bartsch-dev/jabref/pulls{/number}","milestones_url":"https://api.github.com/repos/bartsch-dev/jabref/milestones{/number}","notifications_url":"https://api.github.com/repos/bartsch-dev/jabref/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bartsch-dev/jabref/labels{/name}","releases_url":"https://api.github.com/repos/bartsch-dev/jabref/releases{/id}","created_at":"2015-11-10T11:01:40Z","updated_at":"2015-11-10T11:01:48Z","pushed_at":"2015-12-21T14:40:41Z","git_url":"git://github.com/bartsch-dev/jabref.git","ssh_url":"git@github.com:bartsch-dev/jabref.git","clone_url":"https://github.com/bartsch-dev/jabref.git","svn_url":"https://github.com/bartsch-dev/jabref","homepage":"http://jabref.sourceforge.net/","size":75200,"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":"8cbd1c447735a2019fdc9b97c5d3b99a0076e78e","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}","created_at":"2014-03-11T14:48:42Z","updated_at":"2015-12-20T04:39:44Z","pushed_at":"2015-12-21T15:16:26Z","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":75645,"stargazers_count":165,"watchers_count":165,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":134,"mirror_url":null,"open_issues_count":115,"forks":134,"open_issues":115,"watchers":165,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/321"},"html":{"href":"https://github.com/JabRef/jabref/pull/321"},"issue":{"href":"https://api.github.com/repos/JabRef/jabref/issues/321"},"comments":{"href":"https://api.github.com/repos/JabRef/jabref/issues/321/comments"},"review_comments":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/321/comments"},"review_comment":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/321/commits"},"statuses":{"href":"https://api.github.com/repos/JabRef/jabref/statuses/6fb8635b36920b760e3e003d169e4a4fb78626ef"}}}}