{"action":"created","comment":{"url":"https://api.github.com/repos/konstantind-sp/MyPal/pulls/comments/34129332","id":34129332,"diff_hunk":"@@ -0,0 +1,56 @@\n+package com.in6kj.service.util;\n+\n+import com.in6kj.Application;\n+import org.junit.Assert;\n+import org.junit.Before;\n+import org.junit.Test;\n+import org.junit.runner.RunWith;\n+import org.springframework.boot.test.IntegrationTest;\n+import org.springframework.boot.test.SpringApplicationConfiguration;\n+import org.springframework.core.env.Environment;\n+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;\n+import org.springframework.test.context.web.WebAppConfiguration;\n+import org.springframework.transaction.annotation.Transactional;\n+\n+import javax.inject.Inject;\n+import java.util.List;\n+\n+/**\n+ * Created by employee on 7/6/15.\n+ */\n+@RunWith(SpringJUnit4ClassRunner.class)\n+@SpringApplicationConfiguration(classes = Application.class)\n+@WebAppConfiguration\n+@IntegrationTest\n+@Transactional\n+public class MailHelperTest {\n+\n+    @Inject\n+    private Environment env;\n+\n+    private String host = \"\";\n+\n+    private String storeType = \"\";\n+\n+    private String user = \"\";\n+\n+    private String password = \"\";\n+\n+    private MailHelper mailHelper;\n+\n+    @Before\n+    public void setUp() throws Exception {\n+        mailHelper = new MailHelper();\n+        this.host = env.getProperty(\"mail.host2\");\n+        this.storeType = env.getProperty(\"mail.storetype\");\n+        this.user = env.getProperty(\"mail.username\");\n+        this.password = env.getProperty(\"mail.password\");\n+    }\n+\n+    @Test\n+    public void receiveAndDeleteAllMailInInboxFolder() throws Exception {\n+        List<Email> emails = mailHelper.receiveAndDeleteEmail(host, storeType, user, password);","path":"src/test/java/com/in6kj/service/util/MailHelperTest.java","position":52,"original_position":52,"commit_id":"47ec724bc437b147d19d982d3cd946aa0ab3f867","original_commit_id":"47ec724bc437b147d19d982d3cd946aa0ab3f867","user":{"login":"alexanderko","id":192206,"avatar_url":"https://avatars.githubusercontent.com/u/192206?v=3","gravatar_id":"","url":"https://api.github.com/users/alexanderko","html_url":"https://github.com/alexanderko","followers_url":"https://api.github.com/users/alexanderko/followers","following_url":"https://api.github.com/users/alexanderko/following{/other_user}","gists_url":"https://api.github.com/users/alexanderko/gists{/gist_id}","starred_url":"https://api.github.com/users/alexanderko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexanderko/subscriptions","organizations_url":"https://api.github.com/users/alexanderko/orgs","repos_url":"https://api.github.com/users/alexanderko/repos","events_url":"https://api.github.com/users/alexanderko/events{/privacy}","received_events_url":"https://api.github.com/users/alexanderko/received_events","type":"User","site_admin":false},"body":"As I suppose this test uses real inbox. That is completely wrong.","created_at":"2015-07-08T09:18:35Z","updated_at":"2015-07-08T09:18:35Z","html_url":"https://github.com/konstantind-sp/MyPal/pull/6#discussion_r34129332","pull_request_url":"https://api.github.com/repos/konstantind-sp/MyPal/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/konstantind-sp/MyPal/pulls/comments/34129332"},"html":{"href":"https://github.com/konstantind-sp/MyPal/pull/6#discussion_r34129332"},"pull_request":{"href":"https://api.github.com/repos/konstantind-sp/MyPal/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/konstantind-sp/MyPal/pulls/6","id":39260798,"html_url":"https://github.com/konstantind-sp/MyPal/pull/6","diff_url":"https://github.com/konstantind-sp/MyPal/pull/6.diff","patch_url":"https://github.com/konstantind-sp/MyPal/pull/6.patch","issue_url":"https://api.github.com/repos/konstantind-sp/MyPal/issues/6","number":6,"state":"closed","locked":false,"title":"create emailHelper and email entity","user":{"login":"YaroslavO","id":12511396,"avatar_url":"https://avatars.githubusercontent.com/u/12511396?v=3","gravatar_id":"","url":"https://api.github.com/users/YaroslavO","html_url":"https://github.com/YaroslavO","followers_url":"https://api.github.com/users/YaroslavO/followers","following_url":"https://api.github.com/users/YaroslavO/following{/other_user}","gists_url":"https://api.github.com/users/YaroslavO/gists{/gist_id}","starred_url":"https://api.github.com/users/YaroslavO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YaroslavO/subscriptions","organizations_url":"https://api.github.com/users/YaroslavO/orgs","repos_url":"https://api.github.com/users/YaroslavO/repos","events_url":"https://api.github.com/users/YaroslavO/events{/privacy}","received_events_url":"https://api.github.com/users/YaroslavO/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-06T12:04:56Z","updated_at":"2015-07-08T09:18:35Z","closed_at":"2015-07-06T12:16:20Z","merged_at":"2015-07-06T12:16:20Z","merge_commit_sha":"5442bc7bbd55b86143d728ba9faad839638a1c0c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/konstantind-sp/MyPal/pulls/6/commits","review_comments_url":"https://api.github.com/repos/konstantind-sp/MyPal/pulls/6/comments","review_comment_url":"https://api.github.com/repos/konstantind-sp/MyPal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/konstantind-sp/MyPal/issues/6/comments","statuses_url":"https://api.github.com/repos/konstantind-sp/MyPal/statuses/47ec724bc437b147d19d982d3cd946aa0ab3f867","head":{"label":"YaroslavO:main","ref":"main","sha":"47ec724bc437b147d19d982d3cd946aa0ab3f867","user":{"login":"YaroslavO","id":12511396,"avatar_url":"https://avatars.githubusercontent.com/u/12511396?v=3","gravatar_id":"","url":"https://api.github.com/users/YaroslavO","html_url":"https://github.com/YaroslavO","followers_url":"https://api.github.com/users/YaroslavO/followers","following_url":"https://api.github.com/users/YaroslavO/following{/other_user}","gists_url":"https://api.github.com/users/YaroslavO/gists{/gist_id}","starred_url":"https://api.github.com/users/YaroslavO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YaroslavO/subscriptions","organizations_url":"https://api.github.com/users/YaroslavO/orgs","repos_url":"https://api.github.com/users/YaroslavO/repos","events_url":"https://api.github.com/users/YaroslavO/events{/privacy}","received_events_url":"https://api.github.com/users/YaroslavO/received_events","type":"User","site_admin":false},"repo":{"id":38566136,"name":"MyPal","full_name":"YaroslavO/MyPal","owner":{"login":"YaroslavO","id":12511396,"avatar_url":"https://avatars.githubusercontent.com/u/12511396?v=3","gravatar_id":"","url":"https://api.github.com/users/YaroslavO","html_url":"https://github.com/YaroslavO","followers_url":"https://api.github.com/users/YaroslavO/followers","following_url":"https://api.github.com/users/YaroslavO/following{/other_user}","gists_url":"https://api.github.com/users/YaroslavO/gists{/gist_id}","starred_url":"https://api.github.com/users/YaroslavO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YaroslavO/subscriptions","organizations_url":"https://api.github.com/users/YaroslavO/orgs","repos_url":"https://api.github.com/users/YaroslavO/repos","events_url":"https://api.github.com/users/YaroslavO/events{/privacy}","received_events_url":"https://api.github.com/users/YaroslavO/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/YaroslavO/MyPal","description":"","fork":true,"url":"https://api.github.com/repos/YaroslavO/MyPal","forks_url":"https://api.github.com/repos/YaroslavO/MyPal/forks","keys_url":"https://api.github.com/repos/YaroslavO/MyPal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YaroslavO/MyPal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YaroslavO/MyPal/teams","hooks_url":"https://api.github.com/repos/YaroslavO/MyPal/hooks","issue_events_url":"https://api.github.com/repos/YaroslavO/MyPal/issues/events{/number}","events_url":"https://api.github.com/repos/YaroslavO/MyPal/events","assignees_url":"https://api.github.com/repos/YaroslavO/MyPal/assignees{/user}","branches_url":"https://api.github.com/repos/YaroslavO/MyPal/branches{/branch}","tags_url":"https://api.github.com/repos/YaroslavO/MyPal/tags","blobs_url":"https://api.github.com/repos/YaroslavO/MyPal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YaroslavO/MyPal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YaroslavO/MyPal/git/refs{/sha}","trees_url":"https://api.github.com/repos/YaroslavO/MyPal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YaroslavO/MyPal/statuses/{sha}","languages_url":"https://api.github.com/repos/YaroslavO/MyPal/languages","stargazers_url":"https://api.github.com/repos/YaroslavO/MyPal/stargazers","contributors_url":"https://api.github.com/repos/YaroslavO/MyPal/contributors","subscribers_url":"https://api.github.com/repos/YaroslavO/MyPal/subscribers","subscription_url":"https://api.github.com/repos/YaroslavO/MyPal/subscription","commits_url":"https://api.github.com/repos/YaroslavO/MyPal/commits{/sha}","git_commits_url":"https://api.github.com/repos/YaroslavO/MyPal/git/commits{/sha}","comments_url":"https://api.github.com/repos/YaroslavO/MyPal/comments{/number}","issue_comment_url":"https://api.github.com/repos/YaroslavO/MyPal/issues/comments{/number}","contents_url":"https://api.github.com/repos/YaroslavO/MyPal/contents/{+path}","compare_url":"https://api.github.com/repos/YaroslavO/MyPal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YaroslavO/MyPal/merges","archive_url":"https://api.github.com/repos/YaroslavO/MyPal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YaroslavO/MyPal/downloads","issues_url":"https://api.github.com/repos/YaroslavO/MyPal/issues{/number}","pulls_url":"https://api.github.com/repos/YaroslavO/MyPal/pulls{/number}","milestones_url":"https://api.github.com/repos/YaroslavO/MyPal/milestones{/number}","notifications_url":"https://api.github.com/repos/YaroslavO/MyPal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YaroslavO/MyPal/labels{/name}","releases_url":"https://api.github.com/repos/YaroslavO/MyPal/releases{/id}","created_at":"2015-07-05T11:08:52Z","updated_at":"2015-07-05T11:08:53Z","pushed_at":"2015-07-06T12:03:36Z","git_url":"git://github.com/YaroslavO/MyPal.git","ssh_url":"git@github.com:YaroslavO/MyPal.git","clone_url":"https://github.com/YaroslavO/MyPal.git","svn_url":"https://github.com/YaroslavO/MyPal","homepage":null,"size":2833,"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":"konstantind-sp:main","ref":"main","sha":"32c0a4067ef8fc8a8e3421a456b777593e14eba2","user":{"login":"konstantind-sp","id":12512122,"avatar_url":"https://avatars.githubusercontent.com/u/12512122?v=3","gravatar_id":"","url":"https://api.github.com/users/konstantind-sp","html_url":"https://github.com/konstantind-sp","followers_url":"https://api.github.com/users/konstantind-sp/followers","following_url":"https://api.github.com/users/konstantind-sp/following{/other_user}","gists_url":"https://api.github.com/users/konstantind-sp/gists{/gist_id}","starred_url":"https://api.github.com/users/konstantind-sp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konstantind-sp/subscriptions","organizations_url":"https://api.github.com/users/konstantind-sp/orgs","repos_url":"https://api.github.com/users/konstantind-sp/repos","events_url":"https://api.github.com/users/konstantind-sp/events{/privacy}","received_events_url":"https://api.github.com/users/konstantind-sp/received_events","type":"User","site_admin":false},"repo":{"id":38313279,"name":"MyPal","full_name":"konstantind-sp/MyPal","owner":{"login":"konstantind-sp","id":12512122,"avatar_url":"https://avatars.githubusercontent.com/u/12512122?v=3","gravatar_id":"","url":"https://api.github.com/users/konstantind-sp","html_url":"https://github.com/konstantind-sp","followers_url":"https://api.github.com/users/konstantind-sp/followers","following_url":"https://api.github.com/users/konstantind-sp/following{/other_user}","gists_url":"https://api.github.com/users/konstantind-sp/gists{/gist_id}","starred_url":"https://api.github.com/users/konstantind-sp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konstantind-sp/subscriptions","organizations_url":"https://api.github.com/users/konstantind-sp/orgs","repos_url":"https://api.github.com/users/konstantind-sp/repos","events_url":"https://api.github.com/users/konstantind-sp/events{/privacy}","received_events_url":"https://api.github.com/users/konstantind-sp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/konstantind-sp/MyPal","description":"","fork":false,"url":"https://api.github.com/repos/konstantind-sp/MyPal","forks_url":"https://api.github.com/repos/konstantind-sp/MyPal/forks","keys_url":"https://api.github.com/repos/konstantind-sp/MyPal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/konstantind-sp/MyPal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/konstantind-sp/MyPal/teams","hooks_url":"https://api.github.com/repos/konstantind-sp/MyPal/hooks","issue_events_url":"https://api.github.com/repos/konstantind-sp/MyPal/issues/events{/number}","events_url":"https://api.github.com/repos/konstantind-sp/MyPal/events","assignees_url":"https://api.github.com/repos/konstantind-sp/MyPal/assignees{/user}","branches_url":"https://api.github.com/repos/konstantind-sp/MyPal/branches{/branch}","tags_url":"https://api.github.com/repos/konstantind-sp/MyPal/tags","blobs_url":"https://api.github.com/repos/konstantind-sp/MyPal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/konstantind-sp/MyPal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/konstantind-sp/MyPal/git/refs{/sha}","trees_url":"https://api.github.com/repos/konstantind-sp/MyPal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/konstantind-sp/MyPal/statuses/{sha}","languages_url":"https://api.github.com/repos/konstantind-sp/MyPal/languages","stargazers_url":"https://api.github.com/repos/konstantind-sp/MyPal/stargazers","contributors_url":"https://api.github.com/repos/konstantind-sp/MyPal/contributors","subscribers_url":"https://api.github.com/repos/konstantind-sp/MyPal/subscribers","subscription_url":"https://api.github.com/repos/konstantind-sp/MyPal/subscription","commits_url":"https://api.github.com/repos/konstantind-sp/MyPal/commits{/sha}","git_commits_url":"https://api.github.com/repos/konstantind-sp/MyPal/git/commits{/sha}","comments_url":"https://api.github.com/repos/konstantind-sp/MyPal/comments{/number}","issue_comment_url":"https://api.github.com/repos/konstantind-sp/MyPal/issues/comments{/number}","contents_url":"https://api.github.com/repos/konstantind-sp/MyPal/contents/{+path}","compare_url":"https://api.github.com/repos/konstantind-sp/MyPal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/konstantind-sp/MyPal/merges","archive_url":"https://api.github.com/repos/konstantind-sp/MyPal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/konstantind-sp/MyPal/downloads","issues_url":"https://api.github.com/repos/konstantind-sp/MyPal/issues{/number}","pulls_url":"https://api.github.com/repos/konstantind-sp/MyPal/pulls{/number}","milestones_url":"https://api.github.com/repos/konstantind-sp/MyPal/milestones{/number}","notifications_url":"https://api.github.com/repos/konstantind-sp/MyPal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/konstantind-sp/MyPal/labels{/name}","releases_url":"https://api.github.com/repos/konstantind-sp/MyPal/releases{/id}","created_at":"2015-06-30T14:16:41Z","updated_at":"2015-07-02T19:21:57Z","pushed_at":"2015-07-08T06:19:53Z","git_url":"git://github.com/konstantind-sp/MyPal.git","ssh_url":"git@github.com:konstantind-sp/MyPal.git","clone_url":"https://github.com/konstantind-sp/MyPal.git","svn_url":"https://github.com/konstantind-sp/MyPal","homepage":null,"size":2961,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/konstantind-sp/MyPal/pulls/6"},"html":{"href":"https://github.com/konstantind-sp/MyPal/pull/6"},"issue":{"href":"https://api.github.com/repos/konstantind-sp/MyPal/issues/6"},"comments":{"href":"https://api.github.com/repos/konstantind-sp/MyPal/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/konstantind-sp/MyPal/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/konstantind-sp/MyPal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/konstantind-sp/MyPal/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/konstantind-sp/MyPal/statuses/47ec724bc437b147d19d982d3cd946aa0ab3f867"}}}}