{"action":"created","comment":{"url":"https://api.github.com/repos/diging/conceptpower/pulls/comments/50326423","id":50326423,"diff_hunk":"@@ -0,0 +1,77 @@\n+package edu.asu.conceptpower.core.impl;\r\n+\r\n+import static org.junit.Assert.*;\r\n+\r\n+import java.util.ArrayList;\r\n+import java.util.List;\r\n+\r\n+import org.junit.Before;\r\n+import org.junit.Test;\r\n+import org.mockito.InjectMocks;\r\n+import org.mockito.Mock;\r\n+import org.mockito.Mockito;\r\n+import org.mockito.MockitoAnnotations;\r\n+\r\n+import edu.asu.conceptpower.core.ConceptList;\r\n+import edu.asu.conceptpower.db4o.IConceptDBManager;\r\n+\r\n+public class ConceptListManagerTest {\r\n+\r\n+    @Mock\r\n+    private IConceptDBManager client = Mockito.mock(IConceptDBManager.class);;\r\n+\r\n+    @InjectMocks\r\n+    private ConceptListManager conceptListManager;\r\n+\r\n+    private ConceptList conceptList = new ConceptList();\r\n+    \r\n+    @Before\r\n+    public void init() {\r\n+        MockitoAnnotations.initMocks(this);\r\n+\r\n+        List list = new ArrayList();\r\n+        conceptList.setConceptListName(\"First List\");\r\n+        conceptList.setDescription(\"First List Description\");\r\n+        list.add(conceptList);\r\n+\r\n+        Mockito.when(client.getAllElementsOfType(ConceptList.class)).thenReturn(list);\r\n+        Mockito.when(client.getConceptList(\"First List\")).thenReturn(conceptList);\r\n+\r\n+    }\r\n+\r\n+    @Test\r\n+    public void getAllConceptListsTest() {\r\n+        List list = conceptListManager.getAllConceptLists();\r\n+        assertNotNull(list);\r\n+        assertEquals(1, list.size());\r\n+    }\r\n+\r\n+    @Test\r\n+    public void getConceptListTest() {\r\n+        String listName = \"First List\";\r\n+        ConceptList concept = conceptListManager.getConceptList(listName);\r","path":"Conceptpower+Spring/src/test/java/edu/asu/conceptpower/core/impl/ConceptListManagerTest.java","position":52,"original_position":52,"commit_id":"0dfdbbc91a7c5a9a65efe12c0e99e07b763511ad","original_commit_id":"0dfdbbc91a7c5a9a65efe12c0e99e07b763511ad","user":{"login":"jdamerow","id":8881141,"avatar_url":"https://avatars.githubusercontent.com/u/8881141?v=3","gravatar_id":"","url":"https://api.github.com/users/jdamerow","html_url":"https://github.com/jdamerow","followers_url":"https://api.github.com/users/jdamerow/followers","following_url":"https://api.github.com/users/jdamerow/following{/other_user}","gists_url":"https://api.github.com/users/jdamerow/gists{/gist_id}","starred_url":"https://api.github.com/users/jdamerow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdamerow/subscriptions","organizations_url":"https://api.github.com/users/jdamerow/orgs","repos_url":"https://api.github.com/users/jdamerow/repos","events_url":"https://api.github.com/users/jdamerow/events{/privacy}","received_events_url":"https://api.github.com/users/jdamerow/received_events","type":"User","site_admin":false},"body":"bad variable name","created_at":"2016-01-20T22:00:32Z","updated_at":"2016-01-20T22:00:32Z","html_url":"https://github.com/diging/conceptpower/pull/67#discussion_r50326423","pull_request_url":"https://api.github.com/repos/diging/conceptpower/pulls/67","_links":{"self":{"href":"https://api.github.com/repos/diging/conceptpower/pulls/comments/50326423"},"html":{"href":"https://github.com/diging/conceptpower/pull/67#discussion_r50326423"},"pull_request":{"href":"https://api.github.com/repos/diging/conceptpower/pulls/67"}}},"pull_request":{"url":"https://api.github.com/repos/diging/conceptpower/pulls/67","id":54589766,"html_url":"https://github.com/diging/conceptpower/pull/67","diff_url":"https://github.com/diging/conceptpower/pull/67.diff","patch_url":"https://github.com/diging/conceptpower/pull/67.patch","issue_url":"https://api.github.com/repos/diging/conceptpower/issues/67","number":67,"state":"open","locked":false,"title":"Ccp 126","user":{"login":"mkarthik90","id":9751475,"avatar_url":"https://avatars.githubusercontent.com/u/9751475?v=3","gravatar_id":"","url":"https://api.github.com/users/mkarthik90","html_url":"https://github.com/mkarthik90","followers_url":"https://api.github.com/users/mkarthik90/followers","following_url":"https://api.github.com/users/mkarthik90/following{/other_user}","gists_url":"https://api.github.com/users/mkarthik90/gists{/gist_id}","starred_url":"https://api.github.com/users/mkarthik90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkarthik90/subscriptions","organizations_url":"https://api.github.com/users/mkarthik90/orgs","repos_url":"https://api.github.com/users/mkarthik90/repos","events_url":"https://api.github.com/users/mkarthik90/events{/privacy}","received_events_url":"https://api.github.com/users/mkarthik90/received_events","type":"User","site_admin":false},"body":"[CCP-126] Fixed review comments.","created_at":"2015-12-25T15:48:06Z","updated_at":"2016-01-20T22:00:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ef96da74702d171a5497bde40681ce5af35f52b4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/diging/conceptpower/pulls/67/commits","review_comments_url":"https://api.github.com/repos/diging/conceptpower/pulls/67/comments","review_comment_url":"https://api.github.com/repos/diging/conceptpower/pulls/comments{/number}","comments_url":"https://api.github.com/repos/diging/conceptpower/issues/67/comments","statuses_url":"https://api.github.com/repos/diging/conceptpower/statuses/0dfdbbc91a7c5a9a65efe12c0e99e07b763511ad","head":{"label":"diging:CCP-126","ref":"CCP-126","sha":"0dfdbbc91a7c5a9a65efe12c0e99e07b763511ad","user":{"login":"diging","id":5402168,"avatar_url":"https://avatars.githubusercontent.com/u/5402168?v=3","gravatar_id":"","url":"https://api.github.com/users/diging","html_url":"https://github.com/diging","followers_url":"https://api.github.com/users/diging/followers","following_url":"https://api.github.com/users/diging/following{/other_user}","gists_url":"https://api.github.com/users/diging/gists{/gist_id}","starred_url":"https://api.github.com/users/diging/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diging/subscriptions","organizations_url":"https://api.github.com/users/diging/orgs","repos_url":"https://api.github.com/users/diging/repos","events_url":"https://api.github.com/users/diging/events{/privacy}","received_events_url":"https://api.github.com/users/diging/received_events","type":"Organization","site_admin":false},"repo":{"id":32412644,"name":"conceptpower","full_name":"diging/conceptpower","owner":{"login":"diging","id":5402168,"avatar_url":"https://avatars.githubusercontent.com/u/5402168?v=3","gravatar_id":"","url":"https://api.github.com/users/diging","html_url":"https://github.com/diging","followers_url":"https://api.github.com/users/diging/followers","following_url":"https://api.github.com/users/diging/following{/other_user}","gists_url":"https://api.github.com/users/diging/gists{/gist_id}","starred_url":"https://api.github.com/users/diging/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diging/subscriptions","organizations_url":"https://api.github.com/users/diging/orgs","repos_url":"https://api.github.com/users/diging/repos","events_url":"https://api.github.com/users/diging/events{/privacy}","received_events_url":"https://api.github.com/users/diging/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/diging/conceptpower","description":"","fork":false,"url":"https://api.github.com/repos/diging/conceptpower","forks_url":"https://api.github.com/repos/diging/conceptpower/forks","keys_url":"https://api.github.com/repos/diging/conceptpower/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diging/conceptpower/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diging/conceptpower/teams","hooks_url":"https://api.github.com/repos/diging/conceptpower/hooks","issue_events_url":"https://api.github.com/repos/diging/conceptpower/issues/events{/number}","events_url":"https://api.github.com/repos/diging/conceptpower/events","assignees_url":"https://api.github.com/repos/diging/conceptpower/assignees{/user}","branches_url":"https://api.github.com/repos/diging/conceptpower/branches{/branch}","tags_url":"https://api.github.com/repos/diging/conceptpower/tags","blobs_url":"https://api.github.com/repos/diging/conceptpower/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diging/conceptpower/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diging/conceptpower/git/refs{/sha}","trees_url":"https://api.github.com/repos/diging/conceptpower/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diging/conceptpower/statuses/{sha}","languages_url":"https://api.github.com/repos/diging/conceptpower/languages","stargazers_url":"https://api.github.com/repos/diging/conceptpower/stargazers","contributors_url":"https://api.github.com/repos/diging/conceptpower/contributors","subscribers_url":"https://api.github.com/repos/diging/conceptpower/subscribers","subscription_url":"https://api.github.com/repos/diging/conceptpower/subscription","commits_url":"https://api.github.com/repos/diging/conceptpower/commits{/sha}","git_commits_url":"https://api.github.com/repos/diging/conceptpower/git/commits{/sha}","comments_url":"https://api.github.com/repos/diging/conceptpower/comments{/number}","issue_comment_url":"https://api.github.com/repos/diging/conceptpower/issues/comments{/number}","contents_url":"https://api.github.com/repos/diging/conceptpower/contents/{+path}","compare_url":"https://api.github.com/repos/diging/conceptpower/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diging/conceptpower/merges","archive_url":"https://api.github.com/repos/diging/conceptpower/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diging/conceptpower/downloads","issues_url":"https://api.github.com/repos/diging/conceptpower/issues{/number}","pulls_url":"https://api.github.com/repos/diging/conceptpower/pulls{/number}","milestones_url":"https://api.github.com/repos/diging/conceptpower/milestones{/number}","notifications_url":"https://api.github.com/repos/diging/conceptpower/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diging/conceptpower/labels{/name}","releases_url":"https://api.github.com/repos/diging/conceptpower/releases{/id}","created_at":"2015-03-17T18:35:40Z","updated_at":"2016-01-13T21:16:57Z","pushed_at":"2016-01-20T20:50:01Z","git_url":"git://github.com/diging/conceptpower.git","ssh_url":"git@github.com:diging/conceptpower.git","clone_url":"https://github.com/diging/conceptpower.git","svn_url":"https://github.com/diging/conceptpower","homepage":"http://diging.github.io/conceptpower/","size":18457,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":2,"default_branch":"develop"}},"base":{"label":"diging:develop","ref":"develop","sha":"39cdec7cb7885b3cb6419435dd0224e3e0bc6bee","user":{"login":"diging","id":5402168,"avatar_url":"https://avatars.githubusercontent.com/u/5402168?v=3","gravatar_id":"","url":"https://api.github.com/users/diging","html_url":"https://github.com/diging","followers_url":"https://api.github.com/users/diging/followers","following_url":"https://api.github.com/users/diging/following{/other_user}","gists_url":"https://api.github.com/users/diging/gists{/gist_id}","starred_url":"https://api.github.com/users/diging/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diging/subscriptions","organizations_url":"https://api.github.com/users/diging/orgs","repos_url":"https://api.github.com/users/diging/repos","events_url":"https://api.github.com/users/diging/events{/privacy}","received_events_url":"https://api.github.com/users/diging/received_events","type":"Organization","site_admin":false},"repo":{"id":32412644,"name":"conceptpower","full_name":"diging/conceptpower","owner":{"login":"diging","id":5402168,"avatar_url":"https://avatars.githubusercontent.com/u/5402168?v=3","gravatar_id":"","url":"https://api.github.com/users/diging","html_url":"https://github.com/diging","followers_url":"https://api.github.com/users/diging/followers","following_url":"https://api.github.com/users/diging/following{/other_user}","gists_url":"https://api.github.com/users/diging/gists{/gist_id}","starred_url":"https://api.github.com/users/diging/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diging/subscriptions","organizations_url":"https://api.github.com/users/diging/orgs","repos_url":"https://api.github.com/users/diging/repos","events_url":"https://api.github.com/users/diging/events{/privacy}","received_events_url":"https://api.github.com/users/diging/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/diging/conceptpower","description":"","fork":false,"url":"https://api.github.com/repos/diging/conceptpower","forks_url":"https://api.github.com/repos/diging/conceptpower/forks","keys_url":"https://api.github.com/repos/diging/conceptpower/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diging/conceptpower/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diging/conceptpower/teams","hooks_url":"https://api.github.com/repos/diging/conceptpower/hooks","issue_events_url":"https://api.github.com/repos/diging/conceptpower/issues/events{/number}","events_url":"https://api.github.com/repos/diging/conceptpower/events","assignees_url":"https://api.github.com/repos/diging/conceptpower/assignees{/user}","branches_url":"https://api.github.com/repos/diging/conceptpower/branches{/branch}","tags_url":"https://api.github.com/repos/diging/conceptpower/tags","blobs_url":"https://api.github.com/repos/diging/conceptpower/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diging/conceptpower/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diging/conceptpower/git/refs{/sha}","trees_url":"https://api.github.com/repos/diging/conceptpower/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diging/conceptpower/statuses/{sha}","languages_url":"https://api.github.com/repos/diging/conceptpower/languages","stargazers_url":"https://api.github.com/repos/diging/conceptpower/stargazers","contributors_url":"https://api.github.com/repos/diging/conceptpower/contributors","subscribers_url":"https://api.github.com/repos/diging/conceptpower/subscribers","subscription_url":"https://api.github.com/repos/diging/conceptpower/subscription","commits_url":"https://api.github.com/repos/diging/conceptpower/commits{/sha}","git_commits_url":"https://api.github.com/repos/diging/conceptpower/git/commits{/sha}","comments_url":"https://api.github.com/repos/diging/conceptpower/comments{/number}","issue_comment_url":"https://api.github.com/repos/diging/conceptpower/issues/comments{/number}","contents_url":"https://api.github.com/repos/diging/conceptpower/contents/{+path}","compare_url":"https://api.github.com/repos/diging/conceptpower/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diging/conceptpower/merges","archive_url":"https://api.github.com/repos/diging/conceptpower/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diging/conceptpower/downloads","issues_url":"https://api.github.com/repos/diging/conceptpower/issues{/number}","pulls_url":"https://api.github.com/repos/diging/conceptpower/pulls{/number}","milestones_url":"https://api.github.com/repos/diging/conceptpower/milestones{/number}","notifications_url":"https://api.github.com/repos/diging/conceptpower/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diging/conceptpower/labels{/name}","releases_url":"https://api.github.com/repos/diging/conceptpower/releases{/id}","created_at":"2015-03-17T18:35:40Z","updated_at":"2016-01-13T21:16:57Z","pushed_at":"2016-01-20T20:50:01Z","git_url":"git://github.com/diging/conceptpower.git","ssh_url":"git@github.com:diging/conceptpower.git","clone_url":"https://github.com/diging/conceptpower.git","svn_url":"https://github.com/diging/conceptpower","homepage":"http://diging.github.io/conceptpower/","size":18457,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/diging/conceptpower/pulls/67"},"html":{"href":"https://github.com/diging/conceptpower/pull/67"},"issue":{"href":"https://api.github.com/repos/diging/conceptpower/issues/67"},"comments":{"href":"https://api.github.com/repos/diging/conceptpower/issues/67/comments"},"review_comments":{"href":"https://api.github.com/repos/diging/conceptpower/pulls/67/comments"},"review_comment":{"href":"https://api.github.com/repos/diging/conceptpower/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/diging/conceptpower/pulls/67/commits"},"statuses":{"href":"https://api.github.com/repos/diging/conceptpower/statuses/0dfdbbc91a7c5a9a65efe12c0e99e07b763511ad"}}}}