{"action":"created","comment":{"url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/pulls/comments/90286769","pull_request_review_id":10808363,"id":90286769,"diff_hunk":"@@ -0,0 +1,86 @@\n+package br.com.tgoc.tgocmessage;\n+\n+import android.support.test.InstrumentationRegistry;\n+import android.support.test.runner.AndroidJUnit4;\n+\n+import org.junit.Before;\n+import org.junit.Test;\n+import org.junit.runner.RunWith;\n+\n+import static org.junit.Assert.assertEquals;\n+import static org.junit.Assert.assertNotEquals;\n+\n+/**\n+ * Created by Rodrigo.Cavalcante on 30/11/16.\n+ */\n+@RunWith(AndroidJUnit4.class)\n+public class TGOCMessageTest {\n+\n+    TGOCMessage message = null;\n+\n+    @Before\n+    public void setup() {}\n+\n+    @Test\n+    public void test_date() {\n+        message = new TGOCMessage();\n+\n+        assertNotEquals(message.getDate(), null);\n+    }\n+\n+    @Test\n+    public void test_senderID() {\n+        message = new TGOCMessage(\"id\", null);\n+\n+        assertEquals(message.senderId, \"id\");\n+    }\n+\n+    @Test\n+    public void test_nullSenderID() {\n+        message = new TGOCMessage(null, null);\n+\n+        assertEquals(message.senderId, null);\n+    }\n+\n+    @Test\n+    public void test_text() {\n+        message = new TGOCMessage(null, \"text\");\n+\n+        assertEquals(message.text, \"text\");\n+    }\n+\n+    @Test\n+    public void test_nullText() {\n+        message = new TGOCMessage(null, null);\n+\n+        assertEquals(message.text, null);\n+    }\n+\n+    @Test\n+    public void test_senderDisplayName() {\n+        message = new TGOCMessage(null, null, \"display name\");\n+\n+        assertEquals(message.senderDisplayName, \"display name\");\n+    }\n+\n+    @Test\n+    public void test_nullSenderDisplayName() {\n+        message = new TGOCMessage(null, null, null);\n+\n+        assertEquals(message.senderDisplayName, null);\n+    }\n+\n+    @Test\n+    public void test_falseIsMediaType() {\n+        message = new TGOCMessage();\n+\n+        assertEquals(message.isMediaMessage, false);\n+    }\n+\n+    @Test\n+    public void test_isMediaType() {\n+        message = new TGOCMessage(null, null, null, null);","path":"TGOCMessages/tgocmessage/src/androidTest/java/br/com/tgoc/tgocmessage/TGOCMessageTest.java","position":84,"original_position":82,"commit_id":"eec7ba29c708aba7dda56a182580113667ab6fe8","original_commit_id":"cdac51b4bd0b96fb6fd1431c57ad2f7ef7e13af1","user":{"login":"cardosoedgar","id":5282584,"avatar_url":"https://avatars.githubusercontent.com/u/5282584?v=3","gravatar_id":"","url":"https://api.github.com/users/cardosoedgar","html_url":"https://github.com/cardosoedgar","followers_url":"https://api.github.com/users/cardosoedgar/followers","following_url":"https://api.github.com/users/cardosoedgar/following{/other_user}","gists_url":"https://api.github.com/users/cardosoedgar/gists{/gist_id}","starred_url":"https://api.github.com/users/cardosoedgar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cardosoedgar/subscriptions","organizations_url":"https://api.github.com/users/cardosoedgar/orgs","repos_url":"https://api.github.com/users/cardosoedgar/repos","events_url":"https://api.github.com/users/cardosoedgar/events{/privacy}","received_events_url":"https://api.github.com/users/cardosoedgar/received_events","type":"User","site_admin":false},"body":"Media passed as null should stay as a non-media message. Need to change the code to reflect this.","created_at":"2016-11-30T17:44:02Z","updated_at":"2016-11-30T17:44:02Z","html_url":"https://github.com/two-guys-one-code/TGOCMessagesActivity/pull/6#discussion_r90286769","pull_request_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/pulls/comments/90286769"},"html":{"href":"https://github.com/two-guys-one-code/TGOCMessagesActivity/pull/6#discussion_r90286769"},"pull_request":{"href":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/pulls/6","id":95924547,"html_url":"https://github.com/two-guys-one-code/TGOCMessagesActivity/pull/6","diff_url":"https://github.com/two-guys-one-code/TGOCMessagesActivity/pull/6.diff","patch_url":"https://github.com/two-guys-one-code/TGOCMessagesActivity/pull/6.patch","issue_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/issues/6","number":6,"state":"open","locked":false,"title":"add tests","user":{"login":"kzin","id":6423193,"avatar_url":"https://avatars.githubusercontent.com/u/6423193?v=3","gravatar_id":"","url":"https://api.github.com/users/kzin","html_url":"https://github.com/kzin","followers_url":"https://api.github.com/users/kzin/followers","following_url":"https://api.github.com/users/kzin/following{/other_user}","gists_url":"https://api.github.com/users/kzin/gists{/gist_id}","starred_url":"https://api.github.com/users/kzin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzin/subscriptions","organizations_url":"https://api.github.com/users/kzin/orgs","repos_url":"https://api.github.com/users/kzin/repos","events_url":"https://api.github.com/users/kzin/events{/privacy}","received_events_url":"https://api.github.com/users/kzin/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-30T16:25:48Z","updated_at":"2016-11-30T17:58:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"39d4313fc1915730a5221fe85f46341e01e5096d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/pulls/6/commits","review_comments_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/pulls/6/comments","review_comment_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/pulls/comments{/number}","comments_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/issues/6/comments","statuses_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/statuses/eec7ba29c708aba7dda56a182580113667ab6fe8","head":{"label":"kzin:master","ref":"master","sha":"eec7ba29c708aba7dda56a182580113667ab6fe8","user":{"login":"kzin","id":6423193,"avatar_url":"https://avatars.githubusercontent.com/u/6423193?v=3","gravatar_id":"","url":"https://api.github.com/users/kzin","html_url":"https://github.com/kzin","followers_url":"https://api.github.com/users/kzin/followers","following_url":"https://api.github.com/users/kzin/following{/other_user}","gists_url":"https://api.github.com/users/kzin/gists{/gist_id}","starred_url":"https://api.github.com/users/kzin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzin/subscriptions","organizations_url":"https://api.github.com/users/kzin/orgs","repos_url":"https://api.github.com/users/kzin/repos","events_url":"https://api.github.com/users/kzin/events{/privacy}","received_events_url":"https://api.github.com/users/kzin/received_events","type":"User","site_admin":false},"repo":{"id":75012619,"name":"TGOCMessagesActivity","full_name":"kzin/TGOCMessagesActivity","owner":{"login":"kzin","id":6423193,"avatar_url":"https://avatars.githubusercontent.com/u/6423193?v=3","gravatar_id":"","url":"https://api.github.com/users/kzin","html_url":"https://github.com/kzin","followers_url":"https://api.github.com/users/kzin/followers","following_url":"https://api.github.com/users/kzin/following{/other_user}","gists_url":"https://api.github.com/users/kzin/gists{/gist_id}","starred_url":"https://api.github.com/users/kzin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzin/subscriptions","organizations_url":"https://api.github.com/users/kzin/orgs","repos_url":"https://api.github.com/users/kzin/repos","events_url":"https://api.github.com/users/kzin/events{/privacy}","received_events_url":"https://api.github.com/users/kzin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kzin/TGOCMessagesActivity","description":"Chat UI for your Android app","fork":true,"url":"https://api.github.com/repos/kzin/TGOCMessagesActivity","forks_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/forks","keys_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/teams","hooks_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/hooks","issue_events_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/issues/events{/number}","events_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/events","assignees_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/assignees{/user}","branches_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/branches{/branch}","tags_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/tags","blobs_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/git/refs{/sha}","trees_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/statuses/{sha}","languages_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/languages","stargazers_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/stargazers","contributors_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/contributors","subscribers_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/subscribers","subscription_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/subscription","commits_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/commits{/sha}","git_commits_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/git/commits{/sha}","comments_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/comments{/number}","issue_comment_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/issues/comments{/number}","contents_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/contents/{+path}","compare_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/merges","archive_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/downloads","issues_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/issues{/number}","pulls_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/pulls{/number}","milestones_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/milestones{/number}","notifications_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/labels{/name}","releases_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/releases{/id}","deployments_url":"https://api.github.com/repos/kzin/TGOCMessagesActivity/deployments","created_at":"2016-11-28T20:44:16Z","updated_at":"2016-11-28T20:44:17Z","pushed_at":"2016-11-30T16:08:35Z","git_url":"git://github.com/kzin/TGOCMessagesActivity.git","ssh_url":"git@github.com:kzin/TGOCMessagesActivity.git","clone_url":"https://github.com/kzin/TGOCMessagesActivity.git","svn_url":"https://github.com/kzin/TGOCMessagesActivity","homepage":"","size":2146,"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":"two-guys-one-code:master","ref":"master","sha":"7b0865f6524bd979d48580be27750b978d4f1f70","user":{"login":"two-guys-one-code","id":13632324,"avatar_url":"https://avatars.githubusercontent.com/u/13632324?v=3","gravatar_id":"","url":"https://api.github.com/users/two-guys-one-code","html_url":"https://github.com/two-guys-one-code","followers_url":"https://api.github.com/users/two-guys-one-code/followers","following_url":"https://api.github.com/users/two-guys-one-code/following{/other_user}","gists_url":"https://api.github.com/users/two-guys-one-code/gists{/gist_id}","starred_url":"https://api.github.com/users/two-guys-one-code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/two-guys-one-code/subscriptions","organizations_url":"https://api.github.com/users/two-guys-one-code/orgs","repos_url":"https://api.github.com/users/two-guys-one-code/repos","events_url":"https://api.github.com/users/two-guys-one-code/events{/privacy}","received_events_url":"https://api.github.com/users/two-guys-one-code/received_events","type":"Organization","site_admin":false},"repo":{"id":67061036,"name":"TGOCMessagesActivity","full_name":"two-guys-one-code/TGOCMessagesActivity","owner":{"login":"two-guys-one-code","id":13632324,"avatar_url":"https://avatars.githubusercontent.com/u/13632324?v=3","gravatar_id":"","url":"https://api.github.com/users/two-guys-one-code","html_url":"https://github.com/two-guys-one-code","followers_url":"https://api.github.com/users/two-guys-one-code/followers","following_url":"https://api.github.com/users/two-guys-one-code/following{/other_user}","gists_url":"https://api.github.com/users/two-guys-one-code/gists{/gist_id}","starred_url":"https://api.github.com/users/two-guys-one-code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/two-guys-one-code/subscriptions","organizations_url":"https://api.github.com/users/two-guys-one-code/orgs","repos_url":"https://api.github.com/users/two-guys-one-code/repos","events_url":"https://api.github.com/users/two-guys-one-code/events{/privacy}","received_events_url":"https://api.github.com/users/two-guys-one-code/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/two-guys-one-code/TGOCMessagesActivity","description":"Chat UI for your Android app","fork":false,"url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity","forks_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/forks","keys_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/teams","hooks_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/hooks","issue_events_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/issues/events{/number}","events_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/events","assignees_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/assignees{/user}","branches_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/branches{/branch}","tags_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/tags","blobs_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/git/refs{/sha}","trees_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/statuses/{sha}","languages_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/languages","stargazers_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/stargazers","contributors_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/contributors","subscribers_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/subscribers","subscription_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/subscription","commits_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/commits{/sha}","git_commits_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/git/commits{/sha}","comments_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/comments{/number}","issue_comment_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/issues/comments{/number}","contents_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/contents/{+path}","compare_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/merges","archive_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/downloads","issues_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/issues{/number}","pulls_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/pulls{/number}","milestones_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/milestones{/number}","notifications_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/labels{/name}","releases_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/releases{/id}","deployments_url":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/deployments","created_at":"2016-08-31T17:59:15Z","updated_at":"2016-10-30T19:32:21Z","pushed_at":"2016-11-30T16:25:48Z","git_url":"git://github.com/two-guys-one-code/TGOCMessagesActivity.git","ssh_url":"git@github.com:two-guys-one-code/TGOCMessagesActivity.git","clone_url":"https://github.com/two-guys-one-code/TGOCMessagesActivity.git","svn_url":"https://github.com/two-guys-one-code/TGOCMessagesActivity","homepage":"","size":2139,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/pulls/6"},"html":{"href":"https://github.com/two-guys-one-code/TGOCMessagesActivity/pull/6"},"issue":{"href":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/issues/6"},"comments":{"href":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/two-guys-one-code/TGOCMessagesActivity/statuses/eec7ba29c708aba7dda56a182580113667ab6fe8"}}}}
{"actor":{"display_login":"cardosoedgar"}}