{"action":"created","comment":{"url":"https://api.github.com/repos/bccfilkom/gridmenu/pulls/comments/353043089","pull_request_review_id":325966399,"id":353043089,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM1MzA0MzA4OQ==","diff_hunk":"@@ -0,0 +1,42 @@\n+package com.bcc.gridmenuview;\n+import android.graphics.drawable.Drawable;\n+import androidx.test.platform.app.InstrumentationRegistry;\n+import org.junit.Before;\n+import org.junit.Test;\n+\n+import static org.junit.Assert.*;\n+\n+public class MenuItemTest  {\n+    private MenuItem  menuItem;\n+\n+    @Before\n+    public void setUp()  {\n+        menuItem = new MenuItem(\"Satu\",InstrumentationRegistry\n+                .getInstrumentation()\n+                .getContext()\n+                .getDrawable(R.drawable.ic_launcher_background));\n+\n+    }\n+\n+    @Test\n+    public void menuItemNotNull(){\n+        assertNotNull(menuItem);\n+    }\n+\n+    @Test\n+    public void menuGetTitleShouldReturnString() {\n+        assertEquals(menuItem.getTitle(),\"Satu\");\n+    }\n+\n+    @Test\n+    public void getImage()  {\n+        Drawable image =  InstrumentationRegistry\n+                .getInstrumentation()\n+                .getContext()\n+                .getDrawable(R.drawable.ic_launcher_background);\n+        if (image!=null) {\n+            assertEquals(menuItem.getImage()\n+                    .getConstantState(), image.getConstantState());","path":"gridmenuview/src/androidTest/java/com/bcc/gridmenuview/MenuItemTest.java","position":39,"original_position":39,"commit_id":"4a40e16650083db229162e0ff60d2106230a8e31","original_commit_id":"4a40e16650083db229162e0ff60d2106230a8e31","user":{"login":"zainfikrih","id":22286241,"node_id":"MDQ6VXNlcjIyMjg2MjQx","avatar_url":"https://avatars3.githubusercontent.com/u/22286241?v=4","gravatar_id":"","url":"https://api.github.com/users/zainfikrih","html_url":"https://github.com/zainfikrih","followers_url":"https://api.github.com/users/zainfikrih/followers","following_url":"https://api.github.com/users/zainfikrih/following{/other_user}","gists_url":"https://api.github.com/users/zainfikrih/gists{/gist_id}","starred_url":"https://api.github.com/users/zainfikrih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zainfikrih/subscriptions","organizations_url":"https://api.github.com/users/zainfikrih/orgs","repos_url":"https://api.github.com/users/zainfikrih/repos","events_url":"https://api.github.com/users/zainfikrih/events{/privacy}","received_events_url":"https://api.github.com/users/zainfikrih/received_events","type":"User","site_admin":false},"body":"Please change, assertEquals(expected, actual)\r\n```suggestion\r\n            assertEquals(image.getConstantState(), menuItem.getImage().getConstantState());\r\n```","created_at":"2019-12-03T08:40:25Z","updated_at":"2019-12-03T08:41:29Z","html_url":"https://github.com/bccfilkom/gridmenu/pull/9#discussion_r353043089","pull_request_url":"https://api.github.com/repos/bccfilkom/gridmenu/pulls/9","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/bccfilkom/gridmenu/pulls/comments/353043089"},"html":{"href":"https://github.com/bccfilkom/gridmenu/pull/9#discussion_r353043089"},"pull_request":{"href":"https://api.github.com/repos/bccfilkom/gridmenu/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/bccfilkom/gridmenu/pulls/9","id":345512209,"node_id":"MDExOlB1bGxSZXF1ZXN0MzQ1NTEyMjA5","html_url":"https://github.com/bccfilkom/gridmenu/pull/9","diff_url":"https://github.com/bccfilkom/gridmenu/pull/9.diff","patch_url":"https://github.com/bccfilkom/gridmenu/pull/9.patch","issue_url":"https://api.github.com/repos/bccfilkom/gridmenu/issues/9","number":9,"state":"open","locked":false,"title":"Create Test for Menu Item and Square Menu Adapter","user":{"login":"asaadam","id":1397612,"node_id":"MDQ6VXNlcjEzOTc2MTI=","avatar_url":"https://avatars1.githubusercontent.com/u/1397612?v=4","gravatar_id":"","url":"https://api.github.com/users/asaadam","html_url":"https://github.com/asaadam","followers_url":"https://api.github.com/users/asaadam/followers","following_url":"https://api.github.com/users/asaadam/following{/other_user}","gists_url":"https://api.github.com/users/asaadam/gists{/gist_id}","starred_url":"https://api.github.com/users/asaadam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asaadam/subscriptions","organizations_url":"https://api.github.com/users/asaadam/orgs","repos_url":"https://api.github.com/users/asaadam/repos","events_url":"https://api.github.com/users/asaadam/events{/privacy}","received_events_url":"https://api.github.com/users/asaadam/received_events","type":"User","site_admin":false},"body":"create simple test for Menu Item and Square Menu Adapter\r\nFor square menu adapter, UI Still not tested.","created_at":"2019-11-26T02:48:54Z","updated_at":"2019-12-03T08:41:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c63303c86066f994c2dd1b99b43d0b4000862ecc","assignee":null,"assignees":[],"requested_reviewers":[{"login":"gifff","id":4391866,"node_id":"MDQ6VXNlcjQzOTE4NjY=","avatar_url":"https://avatars1.githubusercontent.com/u/4391866?v=4","gravatar_id":"","url":"https://api.github.com/users/gifff","html_url":"https://github.com/gifff","followers_url":"https://api.github.com/users/gifff/followers","following_url":"https://api.github.com/users/gifff/following{/other_user}","gists_url":"https://api.github.com/users/gifff/gists{/gist_id}","starred_url":"https://api.github.com/users/gifff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gifff/subscriptions","organizations_url":"https://api.github.com/users/gifff/orgs","repos_url":"https://api.github.com/users/gifff/repos","events_url":"https://api.github.com/users/gifff/events{/privacy}","received_events_url":"https://api.github.com/users/gifff/received_events","type":"User","site_admin":false},{"login":"adityapp","id":22850260,"node_id":"MDQ6VXNlcjIyODUwMjYw","avatar_url":"https://avatars1.githubusercontent.com/u/22850260?v=4","gravatar_id":"","url":"https://api.github.com/users/adityapp","html_url":"https://github.com/adityapp","followers_url":"https://api.github.com/users/adityapp/followers","following_url":"https://api.github.com/users/adityapp/following{/other_user}","gists_url":"https://api.github.com/users/adityapp/gists{/gist_id}","starred_url":"https://api.github.com/users/adityapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adityapp/subscriptions","organizations_url":"https://api.github.com/users/adityapp/orgs","repos_url":"https://api.github.com/users/adityapp/repos","events_url":"https://api.github.com/users/adityapp/events{/privacy}","received_events_url":"https://api.github.com/users/adityapp/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bccfilkom/gridmenu/pulls/9/commits","review_comments_url":"https://api.github.com/repos/bccfilkom/gridmenu/pulls/9/comments","review_comment_url":"https://api.github.com/repos/bccfilkom/gridmenu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bccfilkom/gridmenu/issues/9/comments","statuses_url":"https://api.github.com/repos/bccfilkom/gridmenu/statuses/4a40e16650083db229162e0ff60d2106230a8e31","head":{"label":"asaadam:Test","ref":"Test","sha":"4a40e16650083db229162e0ff60d2106230a8e31","user":{"login":"asaadam","id":1397612,"node_id":"MDQ6VXNlcjEzOTc2MTI=","avatar_url":"https://avatars1.githubusercontent.com/u/1397612?v=4","gravatar_id":"","url":"https://api.github.com/users/asaadam","html_url":"https://github.com/asaadam","followers_url":"https://api.github.com/users/asaadam/followers","following_url":"https://api.github.com/users/asaadam/following{/other_user}","gists_url":"https://api.github.com/users/asaadam/gists{/gist_id}","starred_url":"https://api.github.com/users/asaadam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asaadam/subscriptions","organizations_url":"https://api.github.com/users/asaadam/orgs","repos_url":"https://api.github.com/users/asaadam/repos","events_url":"https://api.github.com/users/asaadam/events{/privacy}","received_events_url":"https://api.github.com/users/asaadam/received_events","type":"User","site_admin":false},"repo":{"id":223421894,"node_id":"MDEwOlJlcG9zaXRvcnkyMjM0MjE4OTQ=","name":"gridmenu","full_name":"asaadam/gridmenu","private":false,"owner":{"login":"asaadam","id":1397612,"node_id":"MDQ6VXNlcjEzOTc2MTI=","avatar_url":"https://avatars1.githubusercontent.com/u/1397612?v=4","gravatar_id":"","url":"https://api.github.com/users/asaadam","html_url":"https://github.com/asaadam","followers_url":"https://api.github.com/users/asaadam/followers","following_url":"https://api.github.com/users/asaadam/following{/other_user}","gists_url":"https://api.github.com/users/asaadam/gists{/gist_id}","starred_url":"https://api.github.com/users/asaadam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asaadam/subscriptions","organizations_url":"https://api.github.com/users/asaadam/orgs","repos_url":"https://api.github.com/users/asaadam/repos","events_url":"https://api.github.com/users/asaadam/events{/privacy}","received_events_url":"https://api.github.com/users/asaadam/received_events","type":"User","site_admin":false},"html_url":"https://github.com/asaadam/gridmenu","description":"Simplified customizable grid menu for Android","fork":true,"url":"https://api.github.com/repos/asaadam/gridmenu","forks_url":"https://api.github.com/repos/asaadam/gridmenu/forks","keys_url":"https://api.github.com/repos/asaadam/gridmenu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/asaadam/gridmenu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/asaadam/gridmenu/teams","hooks_url":"https://api.github.com/repos/asaadam/gridmenu/hooks","issue_events_url":"https://api.github.com/repos/asaadam/gridmenu/issues/events{/number}","events_url":"https://api.github.com/repos/asaadam/gridmenu/events","assignees_url":"https://api.github.com/repos/asaadam/gridmenu/assignees{/user}","branches_url":"https://api.github.com/repos/asaadam/gridmenu/branches{/branch}","tags_url":"https://api.github.com/repos/asaadam/gridmenu/tags","blobs_url":"https://api.github.com/repos/asaadam/gridmenu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/asaadam/gridmenu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/asaadam/gridmenu/git/refs{/sha}","trees_url":"https://api.github.com/repos/asaadam/gridmenu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/asaadam/gridmenu/statuses/{sha}","languages_url":"https://api.github.com/repos/asaadam/gridmenu/languages","stargazers_url":"https://api.github.com/repos/asaadam/gridmenu/stargazers","contributors_url":"https://api.github.com/repos/asaadam/gridmenu/contributors","subscribers_url":"https://api.github.com/repos/asaadam/gridmenu/subscribers","subscription_url":"https://api.github.com/repos/asaadam/gridmenu/subscription","commits_url":"https://api.github.com/repos/asaadam/gridmenu/commits{/sha}","git_commits_url":"https://api.github.com/repos/asaadam/gridmenu/git/commits{/sha}","comments_url":"https://api.github.com/repos/asaadam/gridmenu/comments{/number}","issue_comment_url":"https://api.github.com/repos/asaadam/gridmenu/issues/comments{/number}","contents_url":"https://api.github.com/repos/asaadam/gridmenu/contents/{+path}","compare_url":"https://api.github.com/repos/asaadam/gridmenu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/asaadam/gridmenu/merges","archive_url":"https://api.github.com/repos/asaadam/gridmenu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/asaadam/gridmenu/downloads","issues_url":"https://api.github.com/repos/asaadam/gridmenu/issues{/number}","pulls_url":"https://api.github.com/repos/asaadam/gridmenu/pulls{/number}","milestones_url":"https://api.github.com/repos/asaadam/gridmenu/milestones{/number}","notifications_url":"https://api.github.com/repos/asaadam/gridmenu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/asaadam/gridmenu/labels{/name}","releases_url":"https://api.github.com/repos/asaadam/gridmenu/releases{/id}","deployments_url":"https://api.github.com/repos/asaadam/gridmenu/deployments","created_at":"2019-11-22T14:35:57Z","updated_at":"2019-11-22T14:35:59Z","pushed_at":"2019-12-03T07:38:56Z","git_url":"git://github.com/asaadam/gridmenu.git","ssh_url":"git@github.com:asaadam/gridmenu.git","clone_url":"https://github.com/asaadam/gridmenu.git","svn_url":"https://github.com/asaadam/gridmenu","homepage":null,"size":149,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bccfilkom:master","ref":"master","sha":"b92fa7f0128eda7c2d3cf3fe9248d22c96086a53","user":{"login":"bccfilkom","id":17402945,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NDAyOTQ1","avatar_url":"https://avatars2.githubusercontent.com/u/17402945?v=4","gravatar_id":"","url":"https://api.github.com/users/bccfilkom","html_url":"https://github.com/bccfilkom","followers_url":"https://api.github.com/users/bccfilkom/followers","following_url":"https://api.github.com/users/bccfilkom/following{/other_user}","gists_url":"https://api.github.com/users/bccfilkom/gists{/gist_id}","starred_url":"https://api.github.com/users/bccfilkom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bccfilkom/subscriptions","organizations_url":"https://api.github.com/users/bccfilkom/orgs","repos_url":"https://api.github.com/users/bccfilkom/repos","events_url":"https://api.github.com/users/bccfilkom/events{/privacy}","received_events_url":"https://api.github.com/users/bccfilkom/received_events","type":"Organization","site_admin":false},"repo":{"id":222957662,"node_id":"MDEwOlJlcG9zaXRvcnkyMjI5NTc2NjI=","name":"gridmenu","full_name":"bccfilkom/gridmenu","private":false,"owner":{"login":"bccfilkom","id":17402945,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NDAyOTQ1","avatar_url":"https://avatars2.githubusercontent.com/u/17402945?v=4","gravatar_id":"","url":"https://api.github.com/users/bccfilkom","html_url":"https://github.com/bccfilkom","followers_url":"https://api.github.com/users/bccfilkom/followers","following_url":"https://api.github.com/users/bccfilkom/following{/other_user}","gists_url":"https://api.github.com/users/bccfilkom/gists{/gist_id}","starred_url":"https://api.github.com/users/bccfilkom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bccfilkom/subscriptions","organizations_url":"https://api.github.com/users/bccfilkom/orgs","repos_url":"https://api.github.com/users/bccfilkom/repos","events_url":"https://api.github.com/users/bccfilkom/events{/privacy}","received_events_url":"https://api.github.com/users/bccfilkom/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/bccfilkom/gridmenu","description":"Simplified customizable grid menu for Android","fork":false,"url":"https://api.github.com/repos/bccfilkom/gridmenu","forks_url":"https://api.github.com/repos/bccfilkom/gridmenu/forks","keys_url":"https://api.github.com/repos/bccfilkom/gridmenu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bccfilkom/gridmenu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bccfilkom/gridmenu/teams","hooks_url":"https://api.github.com/repos/bccfilkom/gridmenu/hooks","issue_events_url":"https://api.github.com/repos/bccfilkom/gridmenu/issues/events{/number}","events_url":"https://api.github.com/repos/bccfilkom/gridmenu/events","assignees_url":"https://api.github.com/repos/bccfilkom/gridmenu/assignees{/user}","branches_url":"https://api.github.com/repos/bccfilkom/gridmenu/branches{/branch}","tags_url":"https://api.github.com/repos/bccfilkom/gridmenu/tags","blobs_url":"https://api.github.com/repos/bccfilkom/gridmenu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bccfilkom/gridmenu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bccfilkom/gridmenu/git/refs{/sha}","trees_url":"https://api.github.com/repos/bccfilkom/gridmenu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bccfilkom/gridmenu/statuses/{sha}","languages_url":"https://api.github.com/repos/bccfilkom/gridmenu/languages","stargazers_url":"https://api.github.com/repos/bccfilkom/gridmenu/stargazers","contributors_url":"https://api.github.com/repos/bccfilkom/gridmenu/contributors","subscribers_url":"https://api.github.com/repos/bccfilkom/gridmenu/subscribers","subscription_url":"https://api.github.com/repos/bccfilkom/gridmenu/subscription","commits_url":"https://api.github.com/repos/bccfilkom/gridmenu/commits{/sha}","git_commits_url":"https://api.github.com/repos/bccfilkom/gridmenu/git/commits{/sha}","comments_url":"https://api.github.com/repos/bccfilkom/gridmenu/comments{/number}","issue_comment_url":"https://api.github.com/repos/bccfilkom/gridmenu/issues/comments{/number}","contents_url":"https://api.github.com/repos/bccfilkom/gridmenu/contents/{+path}","compare_url":"https://api.github.com/repos/bccfilkom/gridmenu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bccfilkom/gridmenu/merges","archive_url":"https://api.github.com/repos/bccfilkom/gridmenu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bccfilkom/gridmenu/downloads","issues_url":"https://api.github.com/repos/bccfilkom/gridmenu/issues{/number}","pulls_url":"https://api.github.com/repos/bccfilkom/gridmenu/pulls{/number}","milestones_url":"https://api.github.com/repos/bccfilkom/gridmenu/milestones{/number}","notifications_url":"https://api.github.com/repos/bccfilkom/gridmenu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bccfilkom/gridmenu/labels{/name}","releases_url":"https://api.github.com/repos/bccfilkom/gridmenu/releases{/id}","deployments_url":"https://api.github.com/repos/bccfilkom/gridmenu/deployments","created_at":"2019-11-20T14:36:24Z","updated_at":"2019-11-28T11:46:38Z","pushed_at":"2019-12-03T07:38:57Z","git_url":"git://github.com/bccfilkom/gridmenu.git","ssh_url":"git@github.com:bccfilkom/gridmenu.git","clone_url":"https://github.com/bccfilkom/gridmenu.git","svn_url":"https://github.com/bccfilkom/gridmenu","homepage":null,"size":138,"stargazers_count":23,"watchers_count":23,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":7,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":13,"open_issues":7,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bccfilkom/gridmenu/pulls/9"},"html":{"href":"https://github.com/bccfilkom/gridmenu/pull/9"},"issue":{"href":"https://api.github.com/repos/bccfilkom/gridmenu/issues/9"},"comments":{"href":"https://api.github.com/repos/bccfilkom/gridmenu/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/bccfilkom/gridmenu/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/bccfilkom/gridmenu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bccfilkom/gridmenu/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/bccfilkom/gridmenu/statuses/4a40e16650083db229162e0ff60d2106230a8e31"}},"author_association":"NONE"}}
{"actor":{"display_login":"zainfikrih"}}