{"action":"created","comment":{"url":"https://api.github.com/repos/pubnative/pubnative-android-library/pulls/comments/63712175","id":63712175,"diff_hunk":"@@ -0,0 +1,38 @@\n+package net.pubnative.library.feed.banner;\n+\n+import org.junit.Test;\n+import org.junit.runner.RunWith;\n+import org.robolectric.RobolectricGradleTestRunner;\n+import org.robolectric.RuntimeEnvironment;\n+import org.robolectric.annotation.Config;\n+\n+import static org.mockito.Mockito.mock;\n+import static org.mockito.Mockito.spy;\n+\n+@RunWith(RobolectricGradleTestRunner.class)\n+@Config(constants = net.pubnative.library.BuildConfig.class,\n+        sdk = 21)\n+public class PubnativeFeedBannerTest {\n+    @Test\n+    public void load_withNullContext_pass() {\n+\n+        PubnativeFeedBanner banner = spy(PubnativeFeedBanner.class);\n+        banner.mListener = mock(PubnativeFeedBanner.Listener.class);\n+        banner.load(null, \"app_token\");\n+    }\n+\n+    @Test\n+    public void load_withInvalidAppToken_pass() {\n+\n+        PubnativeFeedBanner banner = spy(PubnativeFeedBanner.class);\n+        banner.mListener = mock(PubnativeFeedBanner.Listener.class);\n+        banner.load(RuntimeEnvironment.application.getApplicationContext(), \"\");\n+    }","path":"library.feed.banner/src/test/java/net/pubnative/library/feed/banner/PubnativeFeedBannerTest.java","position":30,"original_position":30,"commit_id":"b8358e1a4414b20fad8cacf75a15de44846fb66c","original_commit_id":"b8358e1a4414b20fad8cacf75a15de44846fb66c","user":{"login":"cerberillo","id":422329,"avatar_url":"https://avatars.githubusercontent.com/u/422329?v=3","gravatar_id":"","url":"https://api.github.com/users/cerberillo","html_url":"https://github.com/cerberillo","followers_url":"https://api.github.com/users/cerberillo/followers","following_url":"https://api.github.com/users/cerberillo/following{/other_user}","gists_url":"https://api.github.com/users/cerberillo/gists{/gist_id}","starred_url":"https://api.github.com/users/cerberillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cerberillo/subscriptions","organizations_url":"https://api.github.com/users/cerberillo/orgs","repos_url":"https://api.github.com/users/cerberillo/repos","events_url":"https://api.github.com/users/cerberillo/events{/privacy}","received_events_url":"https://api.github.com/users/cerberillo/received_events","type":"User","site_admin":false},"body":"You could also add with null apptoken","created_at":"2016-05-18T14:25:14Z","updated_at":"2016-05-18T14:25:14Z","html_url":"https://github.com/pubnative/pubnative-android-library/pull/101#discussion_r63712175","pull_request_url":"https://api.github.com/repos/pubnative/pubnative-android-library/pulls/101","_links":{"self":{"href":"https://api.github.com/repos/pubnative/pubnative-android-library/pulls/comments/63712175"},"html":{"href":"https://github.com/pubnative/pubnative-android-library/pull/101#discussion_r63712175"},"pull_request":{"href":"https://api.github.com/repos/pubnative/pubnative-android-library/pulls/101"}}},"pull_request":{"url":"https://api.github.com/repos/pubnative/pubnative-android-library/pulls/101","id":70483895,"html_url":"https://github.com/pubnative/pubnative-android-library/pull/101","diff_url":"https://github.com/pubnative/pubnative-android-library/pull/101.diff","patch_url":"https://github.com/pubnative/pubnative-android-library/pull/101.patch","issue_url":"https://api.github.com/repos/pubnative/pubnative-android-library/issues/101","number":101,"state":"open","locked":false,"title":"In feed banner","user":{"login":"anshumansworld","id":1582526,"avatar_url":"https://avatars.githubusercontent.com/u/1582526?v=3","gravatar_id":"","url":"https://api.github.com/users/anshumansworld","html_url":"https://github.com/anshumansworld","followers_url":"https://api.github.com/users/anshumansworld/followers","following_url":"https://api.github.com/users/anshumansworld/following{/other_user}","gists_url":"https://api.github.com/users/anshumansworld/gists{/gist_id}","starred_url":"https://api.github.com/users/anshumansworld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anshumansworld/subscriptions","organizations_url":"https://api.github.com/users/anshumansworld/orgs","repos_url":"https://api.github.com/users/anshumansworld/repos","events_url":"https://api.github.com/users/anshumansworld/events{/privacy}","received_events_url":"https://api.github.com/users/anshumansworld/received_events","type":"User","site_admin":false},"body":"This include addition of In-Feed banner module & update of demo app with In-Feed banner","created_at":"2016-05-18T08:01:24Z","updated_at":"2016-05-18T14:25:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6c6eb5100f1d90d31b5dbece94140803c4523207","assignee":{"login":"cerberillo","id":422329,"avatar_url":"https://avatars.githubusercontent.com/u/422329?v=3","gravatar_id":"","url":"https://api.github.com/users/cerberillo","html_url":"https://github.com/cerberillo","followers_url":"https://api.github.com/users/cerberillo/followers","following_url":"https://api.github.com/users/cerberillo/following{/other_user}","gists_url":"https://api.github.com/users/cerberillo/gists{/gist_id}","starred_url":"https://api.github.com/users/cerberillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cerberillo/subscriptions","organizations_url":"https://api.github.com/users/cerberillo/orgs","repos_url":"https://api.github.com/users/cerberillo/repos","events_url":"https://api.github.com/users/cerberillo/events{/privacy}","received_events_url":"https://api.github.com/users/cerberillo/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/pubnative/pubnative-android-library/pulls/101/commits","review_comments_url":"https://api.github.com/repos/pubnative/pubnative-android-library/pulls/101/comments","review_comment_url":"https://api.github.com/repos/pubnative/pubnative-android-library/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pubnative/pubnative-android-library/issues/101/comments","statuses_url":"https://api.github.com/repos/pubnative/pubnative-android-library/statuses/b8358e1a4414b20fad8cacf75a15de44846fb66c","head":{"label":"pubnative:in-feed-banner","ref":"in-feed-banner","sha":"b8358e1a4414b20fad8cacf75a15de44846fb66c","user":{"login":"pubnative","id":7806659,"avatar_url":"https://avatars.githubusercontent.com/u/7806659?v=3","gravatar_id":"","url":"https://api.github.com/users/pubnative","html_url":"https://github.com/pubnative","followers_url":"https://api.github.com/users/pubnative/followers","following_url":"https://api.github.com/users/pubnative/following{/other_user}","gists_url":"https://api.github.com/users/pubnative/gists{/gist_id}","starred_url":"https://api.github.com/users/pubnative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pubnative/subscriptions","organizations_url":"https://api.github.com/users/pubnative/orgs","repos_url":"https://api.github.com/users/pubnative/repos","events_url":"https://api.github.com/users/pubnative/events{/privacy}","received_events_url":"https://api.github.com/users/pubnative/received_events","type":"Organization","site_admin":false},"repo":{"id":28917789,"name":"pubnative-android-library","full_name":"pubnative/pubnative-android-library","owner":{"login":"pubnative","id":7806659,"avatar_url":"https://avatars.githubusercontent.com/u/7806659?v=3","gravatar_id":"","url":"https://api.github.com/users/pubnative","html_url":"https://github.com/pubnative","followers_url":"https://api.github.com/users/pubnative/followers","following_url":"https://api.github.com/users/pubnative/following{/other_user}","gists_url":"https://api.github.com/users/pubnative/gists{/gist_id}","starred_url":"https://api.github.com/users/pubnative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pubnative/subscriptions","organizations_url":"https://api.github.com/users/pubnative/orgs","repos_url":"https://api.github.com/users/pubnative/repos","events_url":"https://api.github.com/users/pubnative/events{/privacy}","received_events_url":"https://api.github.com/users/pubnative/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pubnative/pubnative-android-library","description":"","fork":false,"url":"https://api.github.com/repos/pubnative/pubnative-android-library","forks_url":"https://api.github.com/repos/pubnative/pubnative-android-library/forks","keys_url":"https://api.github.com/repos/pubnative/pubnative-android-library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pubnative/pubnative-android-library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pubnative/pubnative-android-library/teams","hooks_url":"https://api.github.com/repos/pubnative/pubnative-android-library/hooks","issue_events_url":"https://api.github.com/repos/pubnative/pubnative-android-library/issues/events{/number}","events_url":"https://api.github.com/repos/pubnative/pubnative-android-library/events","assignees_url":"https://api.github.com/repos/pubnative/pubnative-android-library/assignees{/user}","branches_url":"https://api.github.com/repos/pubnative/pubnative-android-library/branches{/branch}","tags_url":"https://api.github.com/repos/pubnative/pubnative-android-library/tags","blobs_url":"https://api.github.com/repos/pubnative/pubnative-android-library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pubnative/pubnative-android-library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pubnative/pubnative-android-library/git/refs{/sha}","trees_url":"https://api.github.com/repos/pubnative/pubnative-android-library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pubnative/pubnative-android-library/statuses/{sha}","languages_url":"https://api.github.com/repos/pubnative/pubnative-android-library/languages","stargazers_url":"https://api.github.com/repos/pubnative/pubnative-android-library/stargazers","contributors_url":"https://api.github.com/repos/pubnative/pubnative-android-library/contributors","subscribers_url":"https://api.github.com/repos/pubnative/pubnative-android-library/subscribers","subscription_url":"https://api.github.com/repos/pubnative/pubnative-android-library/subscription","commits_url":"https://api.github.com/repos/pubnative/pubnative-android-library/commits{/sha}","git_commits_url":"https://api.github.com/repos/pubnative/pubnative-android-library/git/commits{/sha}","comments_url":"https://api.github.com/repos/pubnative/pubnative-android-library/comments{/number}","issue_comment_url":"https://api.github.com/repos/pubnative/pubnative-android-library/issues/comments{/number}","contents_url":"https://api.github.com/repos/pubnative/pubnative-android-library/contents/{+path}","compare_url":"https://api.github.com/repos/pubnative/pubnative-android-library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pubnative/pubnative-android-library/merges","archive_url":"https://api.github.com/repos/pubnative/pubnative-android-library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pubnative/pubnative-android-library/downloads","issues_url":"https://api.github.com/repos/pubnative/pubnative-android-library/issues{/number}","pulls_url":"https://api.github.com/repos/pubnative/pubnative-android-library/pulls{/number}","milestones_url":"https://api.github.com/repos/pubnative/pubnative-android-library/milestones{/number}","notifications_url":"https://api.github.com/repos/pubnative/pubnative-android-library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pubnative/pubnative-android-library/labels{/name}","releases_url":"https://api.github.com/repos/pubnative/pubnative-android-library/releases{/id}","deployments_url":"https://api.github.com/repos/pubnative/pubnative-android-library/deployments","created_at":"2015-01-07T14:26:18Z","updated_at":"2016-01-29T10:58:51Z","pushed_at":"2016-05-18T14:11:14Z","git_url":"git://github.com/pubnative/pubnative-android-library.git","ssh_url":"git@github.com:pubnative/pubnative-android-library.git","clone_url":"https://github.com/pubnative/pubnative-android-library.git","svn_url":"https://github.com/pubnative/pubnative-android-library","homepage":null,"size":3815,"stargazers_count":6,"watchers_count":6,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":3,"forks":6,"open_issues":3,"watchers":6,"default_branch":"master"}},"base":{"label":"pubnative:development","ref":"development","sha":"cc85ddfd2b0d41c3e43a54f17dc076be743c887f","user":{"login":"pubnative","id":7806659,"avatar_url":"https://avatars.githubusercontent.com/u/7806659?v=3","gravatar_id":"","url":"https://api.github.com/users/pubnative","html_url":"https://github.com/pubnative","followers_url":"https://api.github.com/users/pubnative/followers","following_url":"https://api.github.com/users/pubnative/following{/other_user}","gists_url":"https://api.github.com/users/pubnative/gists{/gist_id}","starred_url":"https://api.github.com/users/pubnative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pubnative/subscriptions","organizations_url":"https://api.github.com/users/pubnative/orgs","repos_url":"https://api.github.com/users/pubnative/repos","events_url":"https://api.github.com/users/pubnative/events{/privacy}","received_events_url":"https://api.github.com/users/pubnative/received_events","type":"Organization","site_admin":false},"repo":{"id":28917789,"name":"pubnative-android-library","full_name":"pubnative/pubnative-android-library","owner":{"login":"pubnative","id":7806659,"avatar_url":"https://avatars.githubusercontent.com/u/7806659?v=3","gravatar_id":"","url":"https://api.github.com/users/pubnative","html_url":"https://github.com/pubnative","followers_url":"https://api.github.com/users/pubnative/followers","following_url":"https://api.github.com/users/pubnative/following{/other_user}","gists_url":"https://api.github.com/users/pubnative/gists{/gist_id}","starred_url":"https://api.github.com/users/pubnative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pubnative/subscriptions","organizations_url":"https://api.github.com/users/pubnative/orgs","repos_url":"https://api.github.com/users/pubnative/repos","events_url":"https://api.github.com/users/pubnative/events{/privacy}","received_events_url":"https://api.github.com/users/pubnative/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pubnative/pubnative-android-library","description":"","fork":false,"url":"https://api.github.com/repos/pubnative/pubnative-android-library","forks_url":"https://api.github.com/repos/pubnative/pubnative-android-library/forks","keys_url":"https://api.github.com/repos/pubnative/pubnative-android-library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pubnative/pubnative-android-library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pubnative/pubnative-android-library/teams","hooks_url":"https://api.github.com/repos/pubnative/pubnative-android-library/hooks","issue_events_url":"https://api.github.com/repos/pubnative/pubnative-android-library/issues/events{/number}","events_url":"https://api.github.com/repos/pubnative/pubnative-android-library/events","assignees_url":"https://api.github.com/repos/pubnative/pubnative-android-library/assignees{/user}","branches_url":"https://api.github.com/repos/pubnative/pubnative-android-library/branches{/branch}","tags_url":"https://api.github.com/repos/pubnative/pubnative-android-library/tags","blobs_url":"https://api.github.com/repos/pubnative/pubnative-android-library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pubnative/pubnative-android-library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pubnative/pubnative-android-library/git/refs{/sha}","trees_url":"https://api.github.com/repos/pubnative/pubnative-android-library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pubnative/pubnative-android-library/statuses/{sha}","languages_url":"https://api.github.com/repos/pubnative/pubnative-android-library/languages","stargazers_url":"https://api.github.com/repos/pubnative/pubnative-android-library/stargazers","contributors_url":"https://api.github.com/repos/pubnative/pubnative-android-library/contributors","subscribers_url":"https://api.github.com/repos/pubnative/pubnative-android-library/subscribers","subscription_url":"https://api.github.com/repos/pubnative/pubnative-android-library/subscription","commits_url":"https://api.github.com/repos/pubnative/pubnative-android-library/commits{/sha}","git_commits_url":"https://api.github.com/repos/pubnative/pubnative-android-library/git/commits{/sha}","comments_url":"https://api.github.com/repos/pubnative/pubnative-android-library/comments{/number}","issue_comment_url":"https://api.github.com/repos/pubnative/pubnative-android-library/issues/comments{/number}","contents_url":"https://api.github.com/repos/pubnative/pubnative-android-library/contents/{+path}","compare_url":"https://api.github.com/repos/pubnative/pubnative-android-library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pubnative/pubnative-android-library/merges","archive_url":"https://api.github.com/repos/pubnative/pubnative-android-library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pubnative/pubnative-android-library/downloads","issues_url":"https://api.github.com/repos/pubnative/pubnative-android-library/issues{/number}","pulls_url":"https://api.github.com/repos/pubnative/pubnative-android-library/pulls{/number}","milestones_url":"https://api.github.com/repos/pubnative/pubnative-android-library/milestones{/number}","notifications_url":"https://api.github.com/repos/pubnative/pubnative-android-library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pubnative/pubnative-android-library/labels{/name}","releases_url":"https://api.github.com/repos/pubnative/pubnative-android-library/releases{/id}","deployments_url":"https://api.github.com/repos/pubnative/pubnative-android-library/deployments","created_at":"2015-01-07T14:26:18Z","updated_at":"2016-01-29T10:58:51Z","pushed_at":"2016-05-18T14:11:14Z","git_url":"git://github.com/pubnative/pubnative-android-library.git","ssh_url":"git@github.com:pubnative/pubnative-android-library.git","clone_url":"https://github.com/pubnative/pubnative-android-library.git","svn_url":"https://github.com/pubnative/pubnative-android-library","homepage":null,"size":3815,"stargazers_count":6,"watchers_count":6,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":3,"forks":6,"open_issues":3,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pubnative/pubnative-android-library/pulls/101"},"html":{"href":"https://github.com/pubnative/pubnative-android-library/pull/101"},"issue":{"href":"https://api.github.com/repos/pubnative/pubnative-android-library/issues/101"},"comments":{"href":"https://api.github.com/repos/pubnative/pubnative-android-library/issues/101/comments"},"review_comments":{"href":"https://api.github.com/repos/pubnative/pubnative-android-library/pulls/101/comments"},"review_comment":{"href":"https://api.github.com/repos/pubnative/pubnative-android-library/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pubnative/pubnative-android-library/pulls/101/commits"},"statuses":{"href":"https://api.github.com/repos/pubnative/pubnative-android-library/statuses/b8358e1a4414b20fad8cacf75a15de44846fb66c"}}}}