{"action":"created","comment":{"url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/pulls/comments/27650289","id":27650289,"diff_hunk":"@@ -0,0 +1,88 @@\n+package com.hazelcast.simulator.coordinator;\n+\n+import com.hazelcast.simulator.agent.workerjvm.WorkerJvmSettings;\n+import com.hazelcast.simulator.coordinator.remoting.AgentsClient;\n+import com.hazelcast.simulator.test.TestCase;\n+import com.hazelcast.simulator.test.TestSuite;\n+import com.hazelcast.simulator.worker.commands.Command;\n+import org.junit.Before;\n+import org.junit.Test;\n+import org.mockito.InjectMocks;\n+import org.mockito.Mock;\n+import org.mockito.MockitoAnnotations;\n+\n+import java.util.ArrayList;\n+import java.util.List;\n+\n+import static org.mockito.Matchers.any;\n+import static org.mockito.Matchers.anyString;\n+import static org.mockito.Matchers.eq;\n+import static org.mockito.Mockito.mock;\n+import static org.mockito.Mockito.times;\n+import static org.mockito.Mockito.verify;\n+import static org.mockito.Mockito.when;\n+\n+public class CoordinatorRunTestSuiteTest {\n+\n+    private final TestSuite testSuite = new TestSuite();\n+\n+    @Mock\n+    private final WorkerJvmSettings workerJvmSettings = new WorkerJvmSettings();\n+\n+    @Mock\n+    private final AgentsClient agentsClient = mock(AgentsClient.class);\n+\n+    @InjectMocks\n+    private Coordinator coordinator;\n+\n+    @Before\n+    public void setUp() {\n+        System.setProperty(\"user.dir\", \"./dist/src/main/dist\");","path":"simulator/src/test/java/com/hazelcast/simulator/coordinator/CoordinatorRunTestSuiteTest.java","position":40,"original_position":40,"commit_id":"f9be979d568c0aa0b9b7853e313fdeee865ccf4b","original_commit_id":"f9be979d568c0aa0b9b7853e313fdeee865ccf4b","user":{"login":"jerrinot","id":158619,"avatar_url":"https://avatars.githubusercontent.com/u/158619?v=3","gravatar_id":"","url":"https://api.github.com/users/jerrinot","html_url":"https://github.com/jerrinot","followers_url":"https://api.github.com/users/jerrinot/followers","following_url":"https://api.github.com/users/jerrinot/following{/other_user}","gists_url":"https://api.github.com/users/jerrinot/gists{/gist_id}","starred_url":"https://api.github.com/users/jerrinot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerrinot/subscriptions","organizations_url":"https://api.github.com/users/jerrinot/orgs","repos_url":"https://api.github.com/users/jerrinot/repos","events_url":"https://api.github.com/users/jerrinot/events{/privacy}","received_events_url":"https://api.github.com/users/jerrinot/received_events","type":"User","site_admin":false},"body":"will this work on windows?","created_at":"2015-04-02T11:53:05Z","updated_at":"2015-04-02T11:53:05Z","html_url":"https://github.com/hazelcast/hazelcast-simulator/pull/582#discussion_r27650289","pull_request_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/pulls/582","_links":{"self":{"href":"https://api.github.com/repos/hazelcast/hazelcast-simulator/pulls/comments/27650289"},"html":{"href":"https://github.com/hazelcast/hazelcast-simulator/pull/582#discussion_r27650289"},"pull_request":{"href":"https://api.github.com/repos/hazelcast/hazelcast-simulator/pulls/582"}}},"pull_request":{"url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/pulls/582","id":32501367,"html_url":"https://github.com/hazelcast/hazelcast-simulator/pull/582","diff_url":"https://github.com/hazelcast/hazelcast-simulator/pull/582.diff","patch_url":"https://github.com/hazelcast/hazelcast-simulator/pull/582.patch","issue_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/issues/582","number":582,"state":"open","locked":false,"title":"First cleanup of coordinator package","user":{"login":"Donnerbart","id":4196298,"avatar_url":"https://avatars.githubusercontent.com/u/4196298?v=3","gravatar_id":"","url":"https://api.github.com/users/Donnerbart","html_url":"https://github.com/Donnerbart","followers_url":"https://api.github.com/users/Donnerbart/followers","following_url":"https://api.github.com/users/Donnerbart/following{/other_user}","gists_url":"https://api.github.com/users/Donnerbart/gists{/gist_id}","starred_url":"https://api.github.com/users/Donnerbart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Donnerbart/subscriptions","organizations_url":"https://api.github.com/users/Donnerbart/orgs","repos_url":"https://api.github.com/users/Donnerbart/repos","events_url":"https://api.github.com/users/Donnerbart/events{/privacy}","received_events_url":"https://api.github.com/users/Donnerbart/received_events","type":"User","site_admin":false},"body":"* Cleanup of coordinator package.\r\n* Added first tests for coordinator.\r\n* Added GetStackTraceCommand to fetch stack traces from worker tasks (just @RunWithWorker tests for now).\r\n\r\nOriginally I just wanted to add this `GetStackTraceCommand` to the project. No problems until I got to have a look at the Coordinator to hook it somewhere in. So I stopped with that command and did a cleanup of Coordinator first. Main focus being to increase code coverage.\r\n\r\nThe `GetStackTraceCommand` code is still in here, I hope that's not a big problem.\r\n\r\n```\r\ncom.hazelcast.simulator:\t25% (124/478)\t25% (577/2307)\t23% (2636/11451)\r\ncom.hazelcast.simulator:\t27% (134/482)\t26% (617/2318)\t25% (2877/11470)\r\n\r\ncoordinator:\t42% (8/19)\t31% (34/109)\t16% (142/859)\r\ncoordinator:\t66% (12/18)\t52% (57/108)\t38% (320/834)\r\n\r\nutils:\t85% (17/20)\t75% (112/148)\t58% (493/845)\r\nutils:\t83% (20/24)\t76% (120/156)\t59% (517/874)\r\n```","created_at":"2015-04-02T10:55:57Z","updated_at":"2015-04-02T11:53:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"00226e3595462918cf6ecbf5a79d5da7e3f04d1a","assignee":{"login":"Donnerbart","id":4196298,"avatar_url":"https://avatars.githubusercontent.com/u/4196298?v=3","gravatar_id":"","url":"https://api.github.com/users/Donnerbart","html_url":"https://github.com/Donnerbart","followers_url":"https://api.github.com/users/Donnerbart/followers","following_url":"https://api.github.com/users/Donnerbart/following{/other_user}","gists_url":"https://api.github.com/users/Donnerbart/gists{/gist_id}","starred_url":"https://api.github.com/users/Donnerbart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Donnerbart/subscriptions","organizations_url":"https://api.github.com/users/Donnerbart/orgs","repos_url":"https://api.github.com/users/Donnerbart/repos","events_url":"https://api.github.com/users/Donnerbart/events{/privacy}","received_events_url":"https://api.github.com/users/Donnerbart/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/milestones/5","html_url":"https://github.com/hazelcast/hazelcast-simulator/milestones/0.5","labels_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/milestones/5/labels","id":1036308,"number":5,"title":"0.5","description":"","creator":{"login":"Donnerbart","id":4196298,"avatar_url":"https://avatars.githubusercontent.com/u/4196298?v=3","gravatar_id":"","url":"https://api.github.com/users/Donnerbart","html_url":"https://github.com/Donnerbart","followers_url":"https://api.github.com/users/Donnerbart/followers","following_url":"https://api.github.com/users/Donnerbart/following{/other_user}","gists_url":"https://api.github.com/users/Donnerbart/gists{/gist_id}","starred_url":"https://api.github.com/users/Donnerbart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Donnerbart/subscriptions","organizations_url":"https://api.github.com/users/Donnerbart/orgs","repos_url":"https://api.github.com/users/Donnerbart/repos","events_url":"https://api.github.com/users/Donnerbart/events{/privacy}","received_events_url":"https://api.github.com/users/Donnerbart/received_events","type":"User","site_admin":false},"open_issues":42,"closed_issues":14,"state":"open","created_at":"2015-03-24T13:48:40Z","updated_at":"2015-04-02T10:55:57Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/pulls/582/commits","review_comments_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/pulls/582/comments","review_comment_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/issues/582/comments","statuses_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/statuses/f9be979d568c0aa0b9b7853e313fdeee865ccf4b","head":{"label":"Donnerbart:addGetStackTraceCommand","ref":"addGetStackTraceCommand","sha":"f9be979d568c0aa0b9b7853e313fdeee865ccf4b","user":{"login":"Donnerbart","id":4196298,"avatar_url":"https://avatars.githubusercontent.com/u/4196298?v=3","gravatar_id":"","url":"https://api.github.com/users/Donnerbart","html_url":"https://github.com/Donnerbart","followers_url":"https://api.github.com/users/Donnerbart/followers","following_url":"https://api.github.com/users/Donnerbart/following{/other_user}","gists_url":"https://api.github.com/users/Donnerbart/gists{/gist_id}","starred_url":"https://api.github.com/users/Donnerbart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Donnerbart/subscriptions","organizations_url":"https://api.github.com/users/Donnerbart/orgs","repos_url":"https://api.github.com/users/Donnerbart/repos","events_url":"https://api.github.com/users/Donnerbart/events{/privacy}","received_events_url":"https://api.github.com/users/Donnerbart/received_events","type":"User","site_admin":false},"repo":{"id":26756293,"name":"hazelcast-simulator","full_name":"Donnerbart/hazelcast-simulator","owner":{"login":"Donnerbart","id":4196298,"avatar_url":"https://avatars.githubusercontent.com/u/4196298?v=3","gravatar_id":"","url":"https://api.github.com/users/Donnerbart","html_url":"https://github.com/Donnerbart","followers_url":"https://api.github.com/users/Donnerbart/followers","following_url":"https://api.github.com/users/Donnerbart/following{/other_user}","gists_url":"https://api.github.com/users/Donnerbart/gists{/gist_id}","starred_url":"https://api.github.com/users/Donnerbart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Donnerbart/subscriptions","organizations_url":"https://api.github.com/users/Donnerbart/orgs","repos_url":"https://api.github.com/users/Donnerbart/repos","events_url":"https://api.github.com/users/Donnerbart/events{/privacy}","received_events_url":"https://api.github.com/users/Donnerbart/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Donnerbart/hazelcast-simulator","description":"A tool for stress testing Hazelcast","fork":true,"url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator","forks_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/forks","keys_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/teams","hooks_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/hooks","issue_events_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/issues/events{/number}","events_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/events","assignees_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/assignees{/user}","branches_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/branches{/branch}","tags_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/tags","blobs_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/git/refs{/sha}","trees_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/statuses/{sha}","languages_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/languages","stargazers_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/stargazers","contributors_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/contributors","subscribers_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/subscribers","subscription_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/subscription","commits_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/commits{/sha}","git_commits_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/git/commits{/sha}","comments_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/comments{/number}","issue_comment_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/issues/comments{/number}","contents_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/contents/{+path}","compare_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/merges","archive_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/downloads","issues_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/issues{/number}","pulls_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/pulls{/number}","milestones_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/milestones{/number}","notifications_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/labels{/name}","releases_url":"https://api.github.com/repos/Donnerbart/hazelcast-simulator/releases{/id}","created_at":"2014-11-17T12:48:31Z","updated_at":"2015-04-02T09:47:50Z","pushed_at":"2015-04-02T10:40:27Z","git_url":"git://github.com/Donnerbart/hazelcast-simulator.git","ssh_url":"git@github.com:Donnerbart/hazelcast-simulator.git","clone_url":"https://github.com/Donnerbart/hazelcast-simulator.git","svn_url":"https://github.com/Donnerbart/hazelcast-simulator","homepage":null,"size":9705,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"hazelcast:master","ref":"master","sha":"f88a42260be4b27d637a9619f0ea42e8262ec2ea","user":{"login":"hazelcast","id":1453152,"avatar_url":"https://avatars.githubusercontent.com/u/1453152?v=3","gravatar_id":"","url":"https://api.github.com/users/hazelcast","html_url":"https://github.com/hazelcast","followers_url":"https://api.github.com/users/hazelcast/followers","following_url":"https://api.github.com/users/hazelcast/following{/other_user}","gists_url":"https://api.github.com/users/hazelcast/gists{/gist_id}","starred_url":"https://api.github.com/users/hazelcast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hazelcast/subscriptions","organizations_url":"https://api.github.com/users/hazelcast/orgs","repos_url":"https://api.github.com/users/hazelcast/repos","events_url":"https://api.github.com/users/hazelcast/events{/privacy}","received_events_url":"https://api.github.com/users/hazelcast/received_events","type":"Organization","site_admin":false},"repo":{"id":11445479,"name":"hazelcast-simulator","full_name":"hazelcast/hazelcast-simulator","owner":{"login":"hazelcast","id":1453152,"avatar_url":"https://avatars.githubusercontent.com/u/1453152?v=3","gravatar_id":"","url":"https://api.github.com/users/hazelcast","html_url":"https://github.com/hazelcast","followers_url":"https://api.github.com/users/hazelcast/followers","following_url":"https://api.github.com/users/hazelcast/following{/other_user}","gists_url":"https://api.github.com/users/hazelcast/gists{/gist_id}","starred_url":"https://api.github.com/users/hazelcast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hazelcast/subscriptions","organizations_url":"https://api.github.com/users/hazelcast/orgs","repos_url":"https://api.github.com/users/hazelcast/repos","events_url":"https://api.github.com/users/hazelcast/events{/privacy}","received_events_url":"https://api.github.com/users/hazelcast/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hazelcast/hazelcast-simulator","description":"A tool for stress testing Hazelcast","fork":false,"url":"https://api.github.com/repos/hazelcast/hazelcast-simulator","forks_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/forks","keys_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/teams","hooks_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/hooks","issue_events_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/issues/events{/number}","events_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/events","assignees_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/assignees{/user}","branches_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/branches{/branch}","tags_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/tags","blobs_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/git/refs{/sha}","trees_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/statuses/{sha}","languages_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/languages","stargazers_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/stargazers","contributors_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/contributors","subscribers_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/subscribers","subscription_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/subscription","commits_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/commits{/sha}","git_commits_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/git/commits{/sha}","comments_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/comments{/number}","issue_comment_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/issues/comments{/number}","contents_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/contents/{+path}","compare_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/merges","archive_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/downloads","issues_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/issues{/number}","pulls_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/pulls{/number}","milestones_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/milestones{/number}","notifications_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/labels{/name}","releases_url":"https://api.github.com/repos/hazelcast/hazelcast-simulator/releases{/id}","created_at":"2013-07-16T09:18:54Z","updated_at":"2015-04-02T09:45:27Z","pushed_at":"2015-04-02T10:55:57Z","git_url":"git://github.com/hazelcast/hazelcast-simulator.git","ssh_url":"git@github.com:hazelcast/hazelcast-simulator.git","clone_url":"https://github.com/hazelcast/hazelcast-simulator.git","svn_url":"https://github.com/hazelcast/hazelcast-simulator","homepage":null,"size":14777,"stargazers_count":13,"watchers_count":13,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":101,"forks":15,"open_issues":101,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hazelcast/hazelcast-simulator/pulls/582"},"html":{"href":"https://github.com/hazelcast/hazelcast-simulator/pull/582"},"issue":{"href":"https://api.github.com/repos/hazelcast/hazelcast-simulator/issues/582"},"comments":{"href":"https://api.github.com/repos/hazelcast/hazelcast-simulator/issues/582/comments"},"review_comments":{"href":"https://api.github.com/repos/hazelcast/hazelcast-simulator/pulls/582/comments"},"review_comment":{"href":"https://api.github.com/repos/hazelcast/hazelcast-simulator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hazelcast/hazelcast-simulator/pulls/582/commits"},"statuses":{"href":"https://api.github.com/repos/hazelcast/hazelcast-simulator/statuses/f9be979d568c0aa0b9b7853e313fdeee865ccf4b"}}}}