{"action":"created","comment":{"url":"https://api.github.com/repos/wireapp/wire-android/pulls/comments/90664742","pull_request_review_id":11183965,"id":90664742,"diff_hunk":"@@ -0,0 +1,72 @@\n+/**\n+ * Wire\n+ * Copyright (C) 2016 Wire Swiss GmbH\n+ *\n+ * This program is free software: you can redistribute it and/or modify\n+ * it under the terms of the GNU General Public License as published by\n+ * the Free Software Foundation, either version 3 of the License, or\n+ * (at your option) any later version.\n+ *\n+ * This program is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ * GNU General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU General Public License\n+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n+ */\n+package com.waz.zclient.startup.fragments;\n+\n+import android.support.test.runner.AndroidJUnit4;\n+import com.waz.api.impl.Self;\n+import com.waz.zclient.AppEntryTestActivity;\n+import com.waz.zclient.R;\n+import com.waz.zclient.newreg.fragments.FirstTimeAssignUsername;\n+import com.waz.zclient.testutils.FragmentTest;\n+import org.junit.Test;\n+import org.junit.runner.RunWith;\n+import static android.support.test.espresso.action.ViewActions.pressBack;\n+import static android.support.test.espresso.assertion.ViewAssertions.matches;\n+import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;\n+import static android.support.test.espresso.matcher.ViewMatchers.withText;\n+import static org.mockito.Mockito.mock;\n+import static org.mockito.Mockito.verify;\n+import static android.support.test.espresso.Espresso.onView;\n+import static android.support.test.espresso.action.ViewActions.click;\n+import static android.support.test.espresso.matcher.ViewMatchers.withId;\n+import static org.mockito.Mockito.when;\n+\n+\n+@RunWith(AndroidJUnit4.class)\n+public class UsernamesTakeOverScreenTest extends FragmentTest<AppEntryTestActivity> {\n+    public UsernamesTakeOverScreenTest() {\n+        super(AppEntryTestActivity.class);\n+    }\n+\n+    @Test\n+    public void verifyNotPossibleToSkip() throws InterruptedException {\n+        attachFragment(FirstTimeAssignUsername.newInstance(\"\", \"\"), FirstTimeAssignUsername.TAG);\n+        pressBack();\n+        Thread.sleep(500);\n+        verify(activity.getFragmentManager().findFragmentByTag(FirstTimeAssignUsername.TAG) != null);\n+    }\n+\n+    @Test\n+    public void verifyConversationListIsOpenedAfterAcceptingUsername() throws InterruptedException {\n+        attachFragment(FirstTimeAssignUsername.newInstance(\"\", \"\"), FirstTimeAssignUsername.TAG);\n+        Thread.sleep(500);\n+        onView(withId(R.id.zb__username_first_assign__keep)).perform(click());","path":"app/src/androidTest/java/com/waz/zclient/startup/fragments/UsernamesTakeOverScreenTest.java","position":58,"original_position":58,"commit_id":"1615209daed9012c1deaec7daf0448dd2474d20a","original_commit_id":"1615209daed9012c1deaec7daf0448dd2474d20a","user":{"login":"shumengye","id":5518859,"avatar_url":"https://avatars.githubusercontent.com/u/5518859?v=3","gravatar_id":"","url":"https://api.github.com/users/shumengye","html_url":"https://github.com/shumengye","followers_url":"https://api.github.com/users/shumengye/followers","following_url":"https://api.github.com/users/shumengye/following{/other_user}","gists_url":"https://api.github.com/users/shumengye/gists{/gist_id}","starred_url":"https://api.github.com/users/shumengye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shumengye/subscriptions","organizations_url":"https://api.github.com/users/shumengye/orgs","repos_url":"https://api.github.com/users/shumengye/repos","events_url":"https://api.github.com/users/shumengye/events{/privacy}","received_events_url":"https://api.github.com/users/shumengye/received_events","type":"User","site_admin":false},"body":"how does the test verify that the conversation list is shown?","created_at":"2016-12-02T15:45:59Z","updated_at":"2016-12-02T15:45:59Z","html_url":"https://github.com/wireapp/wire-android/pull/364#discussion_r90664742","pull_request_url":"https://api.github.com/repos/wireapp/wire-android/pulls/364","_links":{"self":{"href":"https://api.github.com/repos/wireapp/wire-android/pulls/comments/90664742"},"html":{"href":"https://github.com/wireapp/wire-android/pull/364#discussion_r90664742"},"pull_request":{"href":"https://api.github.com/repos/wireapp/wire-android/pulls/364"}}},"pull_request":{"url":"https://api.github.com/repos/wireapp/wire-android/pulls/364","id":96291952,"html_url":"https://github.com/wireapp/wire-android/pull/364","diff_url":"https://github.com/wireapp/wire-android/pull/364.diff","patch_url":"https://github.com/wireapp/wire-android/pull/364.patch","issue_url":"https://api.github.com/repos/wireapp/wire-android/issues/364","number":364,"state":"open","locked":false,"title":"Take over screen for usernames","user":{"login":"JPonte","id":2581298,"avatar_url":"https://avatars.githubusercontent.com/u/2581298?v=3","gravatar_id":"","url":"https://api.github.com/users/JPonte","html_url":"https://github.com/JPonte","followers_url":"https://api.github.com/users/JPonte/followers","following_url":"https://api.github.com/users/JPonte/following{/other_user}","gists_url":"https://api.github.com/users/JPonte/gists{/gist_id}","starred_url":"https://api.github.com/users/JPonte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JPonte/subscriptions","organizations_url":"https://api.github.com/users/JPonte/orgs","repos_url":"https://api.github.com/users/JPonte/repos","events_url":"https://api.github.com/users/JPonte/events{/privacy}","received_events_url":"https://api.github.com/users/JPonte/received_events","type":"User","site_admin":false},"body":"\n#### APK\n[Download build #8017](http://192.168.10.18:8080/job/Pull%20Request%20Builder/8017/artifact/build/artifact/wire-dev-PR364-8017.apk)\n[Download build #8018](http://192.168.10.18:8080/job/Pull%20Request%20Builder/8018/artifact/build/artifact/wire-dev-PR364-8018.apk)\n[Download build #8019](http://192.168.10.18:8080/job/Pull%20Request%20Builder/8019/artifact/build/artifact/wire-dev-PR364-8019.apk)","created_at":"2016-12-02T14:47:34Z","updated_at":"2016-12-02T15:45:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c5f6a24e8ecfdd43d06b32f00cd3324b7eaed263","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/wireapp/wire-android/pulls/364/commits","review_comments_url":"https://api.github.com/repos/wireapp/wire-android/pulls/364/comments","review_comment_url":"https://api.github.com/repos/wireapp/wire-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wireapp/wire-android/issues/364/comments","statuses_url":"https://api.github.com/repos/wireapp/wire-android/statuses/1615209daed9012c1deaec7daf0448dd2474d20a","head":{"label":"wireapp:feature/first-screen-usernames","ref":"feature/first-screen-usernames","sha":"1615209daed9012c1deaec7daf0448dd2474d20a","user":{"login":"wireapp","id":16047324,"avatar_url":"https://avatars.githubusercontent.com/u/16047324?v=3","gravatar_id":"","url":"https://api.github.com/users/wireapp","html_url":"https://github.com/wireapp","followers_url":"https://api.github.com/users/wireapp/followers","following_url":"https://api.github.com/users/wireapp/following{/other_user}","gists_url":"https://api.github.com/users/wireapp/gists{/gist_id}","starred_url":"https://api.github.com/users/wireapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wireapp/subscriptions","organizations_url":"https://api.github.com/users/wireapp/orgs","repos_url":"https://api.github.com/users/wireapp/repos","events_url":"https://api.github.com/users/wireapp/events{/privacy}","received_events_url":"https://api.github.com/users/wireapp/received_events","type":"Organization","site_admin":false},"repo":{"id":50094455,"name":"wire-android","full_name":"wireapp/wire-android","owner":{"login":"wireapp","id":16047324,"avatar_url":"https://avatars.githubusercontent.com/u/16047324?v=3","gravatar_id":"","url":"https://api.github.com/users/wireapp","html_url":"https://github.com/wireapp","followers_url":"https://api.github.com/users/wireapp/followers","following_url":"https://api.github.com/users/wireapp/following{/other_user}","gists_url":"https://api.github.com/users/wireapp/gists{/gist_id}","starred_url":"https://api.github.com/users/wireapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wireapp/subscriptions","organizations_url":"https://api.github.com/users/wireapp/orgs","repos_url":"https://api.github.com/users/wireapp/repos","events_url":"https://api.github.com/users/wireapp/events{/privacy}","received_events_url":"https://api.github.com/users/wireapp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wireapp/wire-android","description":"Wire Android Client","fork":false,"url":"https://api.github.com/repos/wireapp/wire-android","forks_url":"https://api.github.com/repos/wireapp/wire-android/forks","keys_url":"https://api.github.com/repos/wireapp/wire-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wireapp/wire-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wireapp/wire-android/teams","hooks_url":"https://api.github.com/repos/wireapp/wire-android/hooks","issue_events_url":"https://api.github.com/repos/wireapp/wire-android/issues/events{/number}","events_url":"https://api.github.com/repos/wireapp/wire-android/events","assignees_url":"https://api.github.com/repos/wireapp/wire-android/assignees{/user}","branches_url":"https://api.github.com/repos/wireapp/wire-android/branches{/branch}","tags_url":"https://api.github.com/repos/wireapp/wire-android/tags","blobs_url":"https://api.github.com/repos/wireapp/wire-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wireapp/wire-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wireapp/wire-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/wireapp/wire-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wireapp/wire-android/statuses/{sha}","languages_url":"https://api.github.com/repos/wireapp/wire-android/languages","stargazers_url":"https://api.github.com/repos/wireapp/wire-android/stargazers","contributors_url":"https://api.github.com/repos/wireapp/wire-android/contributors","subscribers_url":"https://api.github.com/repos/wireapp/wire-android/subscribers","subscription_url":"https://api.github.com/repos/wireapp/wire-android/subscription","commits_url":"https://api.github.com/repos/wireapp/wire-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/wireapp/wire-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/wireapp/wire-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/wireapp/wire-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/wireapp/wire-android/contents/{+path}","compare_url":"https://api.github.com/repos/wireapp/wire-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wireapp/wire-android/merges","archive_url":"https://api.github.com/repos/wireapp/wire-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wireapp/wire-android/downloads","issues_url":"https://api.github.com/repos/wireapp/wire-android/issues{/number}","pulls_url":"https://api.github.com/repos/wireapp/wire-android/pulls{/number}","milestones_url":"https://api.github.com/repos/wireapp/wire-android/milestones{/number}","notifications_url":"https://api.github.com/repos/wireapp/wire-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wireapp/wire-android/labels{/name}","releases_url":"https://api.github.com/repos/wireapp/wire-android/releases{/id}","deployments_url":"https://api.github.com/repos/wireapp/wire-android/deployments","created_at":"2016-01-21T08:50:07Z","updated_at":"2016-11-30T17:56:45Z","pushed_at":"2016-12-02T15:22:05Z","git_url":"git://github.com/wireapp/wire-android.git","ssh_url":"git@github.com:wireapp/wire-android.git","clone_url":"https://github.com/wireapp/wire-android.git","svn_url":"https://github.com/wireapp/wire-android","homepage":"https://wire.com/download/","size":4640,"stargazers_count":1236,"watchers_count":1236,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":182,"mirror_url":null,"open_issues_count":59,"forks":182,"open_issues":59,"watchers":1236,"default_branch":"master"}},"base":{"label":"wireapp:usernames","ref":"usernames","sha":"811b690fa3c25ce4ba1f5c5e9034b9ddf0192d4a","user":{"login":"wireapp","id":16047324,"avatar_url":"https://avatars.githubusercontent.com/u/16047324?v=3","gravatar_id":"","url":"https://api.github.com/users/wireapp","html_url":"https://github.com/wireapp","followers_url":"https://api.github.com/users/wireapp/followers","following_url":"https://api.github.com/users/wireapp/following{/other_user}","gists_url":"https://api.github.com/users/wireapp/gists{/gist_id}","starred_url":"https://api.github.com/users/wireapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wireapp/subscriptions","organizations_url":"https://api.github.com/users/wireapp/orgs","repos_url":"https://api.github.com/users/wireapp/repos","events_url":"https://api.github.com/users/wireapp/events{/privacy}","received_events_url":"https://api.github.com/users/wireapp/received_events","type":"Organization","site_admin":false},"repo":{"id":50094455,"name":"wire-android","full_name":"wireapp/wire-android","owner":{"login":"wireapp","id":16047324,"avatar_url":"https://avatars.githubusercontent.com/u/16047324?v=3","gravatar_id":"","url":"https://api.github.com/users/wireapp","html_url":"https://github.com/wireapp","followers_url":"https://api.github.com/users/wireapp/followers","following_url":"https://api.github.com/users/wireapp/following{/other_user}","gists_url":"https://api.github.com/users/wireapp/gists{/gist_id}","starred_url":"https://api.github.com/users/wireapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wireapp/subscriptions","organizations_url":"https://api.github.com/users/wireapp/orgs","repos_url":"https://api.github.com/users/wireapp/repos","events_url":"https://api.github.com/users/wireapp/events{/privacy}","received_events_url":"https://api.github.com/users/wireapp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wireapp/wire-android","description":"Wire Android Client","fork":false,"url":"https://api.github.com/repos/wireapp/wire-android","forks_url":"https://api.github.com/repos/wireapp/wire-android/forks","keys_url":"https://api.github.com/repos/wireapp/wire-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wireapp/wire-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wireapp/wire-android/teams","hooks_url":"https://api.github.com/repos/wireapp/wire-android/hooks","issue_events_url":"https://api.github.com/repos/wireapp/wire-android/issues/events{/number}","events_url":"https://api.github.com/repos/wireapp/wire-android/events","assignees_url":"https://api.github.com/repos/wireapp/wire-android/assignees{/user}","branches_url":"https://api.github.com/repos/wireapp/wire-android/branches{/branch}","tags_url":"https://api.github.com/repos/wireapp/wire-android/tags","blobs_url":"https://api.github.com/repos/wireapp/wire-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wireapp/wire-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wireapp/wire-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/wireapp/wire-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wireapp/wire-android/statuses/{sha}","languages_url":"https://api.github.com/repos/wireapp/wire-android/languages","stargazers_url":"https://api.github.com/repos/wireapp/wire-android/stargazers","contributors_url":"https://api.github.com/repos/wireapp/wire-android/contributors","subscribers_url":"https://api.github.com/repos/wireapp/wire-android/subscribers","subscription_url":"https://api.github.com/repos/wireapp/wire-android/subscription","commits_url":"https://api.github.com/repos/wireapp/wire-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/wireapp/wire-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/wireapp/wire-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/wireapp/wire-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/wireapp/wire-android/contents/{+path}","compare_url":"https://api.github.com/repos/wireapp/wire-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wireapp/wire-android/merges","archive_url":"https://api.github.com/repos/wireapp/wire-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wireapp/wire-android/downloads","issues_url":"https://api.github.com/repos/wireapp/wire-android/issues{/number}","pulls_url":"https://api.github.com/repos/wireapp/wire-android/pulls{/number}","milestones_url":"https://api.github.com/repos/wireapp/wire-android/milestones{/number}","notifications_url":"https://api.github.com/repos/wireapp/wire-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wireapp/wire-android/labels{/name}","releases_url":"https://api.github.com/repos/wireapp/wire-android/releases{/id}","deployments_url":"https://api.github.com/repos/wireapp/wire-android/deployments","created_at":"2016-01-21T08:50:07Z","updated_at":"2016-11-30T17:56:45Z","pushed_at":"2016-12-02T15:22:05Z","git_url":"git://github.com/wireapp/wire-android.git","ssh_url":"git@github.com:wireapp/wire-android.git","clone_url":"https://github.com/wireapp/wire-android.git","svn_url":"https://github.com/wireapp/wire-android","homepage":"https://wire.com/download/","size":4640,"stargazers_count":1236,"watchers_count":1236,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":182,"mirror_url":null,"open_issues_count":59,"forks":182,"open_issues":59,"watchers":1236,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wireapp/wire-android/pulls/364"},"html":{"href":"https://github.com/wireapp/wire-android/pull/364"},"issue":{"href":"https://api.github.com/repos/wireapp/wire-android/issues/364"},"comments":{"href":"https://api.github.com/repos/wireapp/wire-android/issues/364/comments"},"review_comments":{"href":"https://api.github.com/repos/wireapp/wire-android/pulls/364/comments"},"review_comment":{"href":"https://api.github.com/repos/wireapp/wire-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wireapp/wire-android/pulls/364/commits"},"statuses":{"href":"https://api.github.com/repos/wireapp/wire-android/statuses/1615209daed9012c1deaec7daf0448dd2474d20a"}}}}
{"actor":{"display_login":"shumengye"}}