{"action":"created","comment":{"url":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls/comments/70579014","id":70579014,"diff_hunk":"@@ -0,0 +1,122 @@\n+package org.testeditor.rcp4.views.tcltestrun\n+\n+import com.google.inject.Injector\n+import org.eclipse.core.resources.IResource\n+import org.eclipse.jface.viewers.IStructuredSelection\n+import org.eclipse.xtext.naming.QualifiedName\n+import org.junit.Before\n+import org.junit.Test\n+import org.junit.runner.RunWith\n+import org.mockito.Mock\n+import org.mockito.runners.MockitoJUnitRunner\n+import org.testeditor.rcp4.tcltestrun.TclInjectorProvider\n+import org.testeditor.tcl.dsl.ui.testlaunch.LaunchShortcutUtil\n+\n+import static org.junit.Assert.*\n+import static org.mockito.Matchers.*\n+import static org.mockito.Mockito.*\n+import org.eclipse.core.resources.IFolder\n+import org.eclipse.core.resources.IFile\n+import org.eclipse.jdt.core.IJavaElement\n+\n+@RunWith(MockitoJUnitRunner)\n+class TclLauncherUiTest {\n+\n+\t@Mock\n+\tTclInjectorProvider tclInjectorProvider\n+\n+\t@Mock\n+\tIStructuredSelection selection\n+\n+\t@Mock\n+\tLaunchShortcutUtil launchUtil\n+\n+\tTclLauncherUi launcherUi\n+\n+\t@Before\n+\tdef void setup() {\n+\t\t// given\n+\t\tval injector = mock(Injector)\n+\t\twhen(tclInjectorProvider.get).thenReturn(injector)\n+\t\twhen(injector.getInstance(LaunchShortcutUtil)).thenReturn(launchUtil)\n+\t\tlauncherUi = new TclLauncherUi(tclInjectorProvider)\n+\t}\n+\n+\t@Test\n+\tdef void testGetTestCaseListOnOneSelection() {\n+\t\t// given\n+\t\tval resource = mock(IResource)\n+\t\twhen(selection.firstElement).thenReturn(resource)\n+\t\twhen(resource.toString).thenReturn(\"myprj/mypackage/myTest.tcl\");\n+\t\twhen(launchUtil.getQualifiedNameForTestInTcl(any)).thenReturn(QualifiedName.create(\"mypackage\", \"myTest\"))\n+\t\t// when","path":"rcp/org.testeditor.rcp4.views.tcltestrun.tests/src/org/testeditor/rcp4/views/tcltestrun/TclLauncherUiTest.xtend","position":52,"original_position":52,"commit_id":"6bb41b22b3e514f7c30cf343e2cbecbc2e268d31","original_commit_id":"6bb41b22b3e514f7c30cf343e2cbecbc2e268d31","user":{"login":"franzbecker","id":1035300,"avatar_url":"https://avatars.githubusercontent.com/u/1035300?v=3","gravatar_id":"","url":"https://api.github.com/users/franzbecker","html_url":"https://github.com/franzbecker","followers_url":"https://api.github.com/users/franzbecker/followers","following_url":"https://api.github.com/users/franzbecker/following{/other_user}","gists_url":"https://api.github.com/users/franzbecker/gists{/gist_id}","starred_url":"https://api.github.com/users/franzbecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/franzbecker/subscriptions","organizations_url":"https://api.github.com/users/franzbecker/orgs","repos_url":"https://api.github.com/users/franzbecker/repos","events_url":"https://api.github.com/users/franzbecker/events{/privacy}","received_events_url":"https://api.github.com/users/franzbecker/received_events","type":"User","site_admin":false},"body":"style: leave a blank line before `// when` and `// then`","created_at":"2016-07-13T07:53:48Z","updated_at":"2016-07-13T07:53:48Z","html_url":"https://github.com/test-editor/test-editor-xtext/pull/99#discussion_r70579014","pull_request_url":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls/99","_links":{"self":{"href":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls/comments/70579014"},"html":{"href":"https://github.com/test-editor/test-editor-xtext/pull/99#discussion_r70579014"},"pull_request":{"href":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls/99"}}},"pull_request":{"url":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls/99","id":76449095,"html_url":"https://github.com/test-editor/test-editor-xtext/pull/99","diff_url":"https://github.com/test-editor/test-editor-xtext/pull/99.diff","patch_url":"https://github.com/test-editor/test-editor-xtext/pull/99.patch","issue_url":"https://api.github.com/repos/test-editor/test-editor-xtext/issues/99","number":99,"state":"open","locked":false,"title":"Feature/te 290 slect and execute multipse tests","user":{"login":"kpanier","id":7946468,"avatar_url":"https://avatars.githubusercontent.com/u/7946468?v=3","gravatar_id":"","url":"https://api.github.com/users/kpanier","html_url":"https://github.com/kpanier","followers_url":"https://api.github.com/users/kpanier/followers","following_url":"https://api.github.com/users/kpanier/following{/other_user}","gists_url":"https://api.github.com/users/kpanier/gists{/gist_id}","starred_url":"https://api.github.com/users/kpanier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpanier/subscriptions","organizations_url":"https://api.github.com/users/kpanier/orgs","repos_url":"https://api.github.com/users/kpanier/repos","events_url":"https://api.github.com/users/kpanier/events{/privacy}","received_events_url":"https://api.github.com/users/kpanier/received_events","type":"User","site_admin":false},"body":"Execute more then one test with maven. On gradle we execute the first selection only. further work will change this on package execution.","created_at":"2016-07-06T15:12:09Z","updated_at":"2016-07-13T07:53:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"900199c429d2e2944afb87cbeff4420b54834359","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls/99/commits","review_comments_url":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls/99/comments","review_comment_url":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls/comments{/number}","comments_url":"https://api.github.com/repos/test-editor/test-editor-xtext/issues/99/comments","statuses_url":"https://api.github.com/repos/test-editor/test-editor-xtext/statuses/6bb41b22b3e514f7c30cf343e2cbecbc2e268d31","head":{"label":"test-editor:feature/TE-290_slect_and_execute_multipse_tests","ref":"feature/TE-290_slect_and_execute_multipse_tests","sha":"6bb41b22b3e514f7c30cf343e2cbecbc2e268d31","user":{"login":"test-editor","id":7946408,"avatar_url":"https://avatars.githubusercontent.com/u/7946408?v=3","gravatar_id":"","url":"https://api.github.com/users/test-editor","html_url":"https://github.com/test-editor","followers_url":"https://api.github.com/users/test-editor/followers","following_url":"https://api.github.com/users/test-editor/following{/other_user}","gists_url":"https://api.github.com/users/test-editor/gists{/gist_id}","starred_url":"https://api.github.com/users/test-editor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/test-editor/subscriptions","organizations_url":"https://api.github.com/users/test-editor/orgs","repos_url":"https://api.github.com/users/test-editor/repos","events_url":"https://api.github.com/users/test-editor/events{/privacy}","received_events_url":"https://api.github.com/users/test-editor/received_events","type":"Organization","site_admin":false},"repo":{"id":35145739,"name":"test-editor-xtext","full_name":"test-editor/test-editor-xtext","owner":{"login":"test-editor","id":7946408,"avatar_url":"https://avatars.githubusercontent.com/u/7946408?v=3","gravatar_id":"","url":"https://api.github.com/users/test-editor","html_url":"https://github.com/test-editor","followers_url":"https://api.github.com/users/test-editor/followers","following_url":"https://api.github.com/users/test-editor/following{/other_user}","gists_url":"https://api.github.com/users/test-editor/gists{/gist_id}","starred_url":"https://api.github.com/users/test-editor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/test-editor/subscriptions","organizations_url":"https://api.github.com/users/test-editor/orgs","repos_url":"https://api.github.com/users/test-editor/repos","events_url":"https://api.github.com/users/test-editor/events{/privacy}","received_events_url":"https://api.github.com/users/test-editor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/test-editor/test-editor-xtext","description":"Xtext editor for editing xml configuration files of test-editor","fork":false,"url":"https://api.github.com/repos/test-editor/test-editor-xtext","forks_url":"https://api.github.com/repos/test-editor/test-editor-xtext/forks","keys_url":"https://api.github.com/repos/test-editor/test-editor-xtext/keys{/key_id}","collaborators_url":"https://api.github.com/repos/test-editor/test-editor-xtext/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/test-editor/test-editor-xtext/teams","hooks_url":"https://api.github.com/repos/test-editor/test-editor-xtext/hooks","issue_events_url":"https://api.github.com/repos/test-editor/test-editor-xtext/issues/events{/number}","events_url":"https://api.github.com/repos/test-editor/test-editor-xtext/events","assignees_url":"https://api.github.com/repos/test-editor/test-editor-xtext/assignees{/user}","branches_url":"https://api.github.com/repos/test-editor/test-editor-xtext/branches{/branch}","tags_url":"https://api.github.com/repos/test-editor/test-editor-xtext/tags","blobs_url":"https://api.github.com/repos/test-editor/test-editor-xtext/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/test-editor/test-editor-xtext/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/test-editor/test-editor-xtext/git/refs{/sha}","trees_url":"https://api.github.com/repos/test-editor/test-editor-xtext/git/trees{/sha}","statuses_url":"https://api.github.com/repos/test-editor/test-editor-xtext/statuses/{sha}","languages_url":"https://api.github.com/repos/test-editor/test-editor-xtext/languages","stargazers_url":"https://api.github.com/repos/test-editor/test-editor-xtext/stargazers","contributors_url":"https://api.github.com/repos/test-editor/test-editor-xtext/contributors","subscribers_url":"https://api.github.com/repos/test-editor/test-editor-xtext/subscribers","subscription_url":"https://api.github.com/repos/test-editor/test-editor-xtext/subscription","commits_url":"https://api.github.com/repos/test-editor/test-editor-xtext/commits{/sha}","git_commits_url":"https://api.github.com/repos/test-editor/test-editor-xtext/git/commits{/sha}","comments_url":"https://api.github.com/repos/test-editor/test-editor-xtext/comments{/number}","issue_comment_url":"https://api.github.com/repos/test-editor/test-editor-xtext/issues/comments{/number}","contents_url":"https://api.github.com/repos/test-editor/test-editor-xtext/contents/{+path}","compare_url":"https://api.github.com/repos/test-editor/test-editor-xtext/compare/{base}...{head}","merges_url":"https://api.github.com/repos/test-editor/test-editor-xtext/merges","archive_url":"https://api.github.com/repos/test-editor/test-editor-xtext/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/test-editor/test-editor-xtext/downloads","issues_url":"https://api.github.com/repos/test-editor/test-editor-xtext/issues{/number}","pulls_url":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls{/number}","milestones_url":"https://api.github.com/repos/test-editor/test-editor-xtext/milestones{/number}","notifications_url":"https://api.github.com/repos/test-editor/test-editor-xtext/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/test-editor/test-editor-xtext/labels{/name}","releases_url":"https://api.github.com/repos/test-editor/test-editor-xtext/releases{/id}","deployments_url":"https://api.github.com/repos/test-editor/test-editor-xtext/deployments","created_at":"2015-05-06T07:40:18Z","updated_at":"2016-06-21T20:25:09Z","pushed_at":"2016-07-13T06:46:48Z","git_url":"git://github.com/test-editor/test-editor-xtext.git","ssh_url":"git@github.com:test-editor/test-editor-xtext.git","clone_url":"https://github.com/test-editor/test-editor-xtext.git","svn_url":"https://github.com/test-editor/test-editor-xtext","homepage":null,"size":81732,"stargazers_count":4,"watchers_count":4,"language":"Xtend","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":4,"default_branch":"develop"}},"base":{"label":"test-editor:develop","ref":"develop","sha":"742f20b191c860dd1a8e95027a8194757eb2888a","user":{"login":"test-editor","id":7946408,"avatar_url":"https://avatars.githubusercontent.com/u/7946408?v=3","gravatar_id":"","url":"https://api.github.com/users/test-editor","html_url":"https://github.com/test-editor","followers_url":"https://api.github.com/users/test-editor/followers","following_url":"https://api.github.com/users/test-editor/following{/other_user}","gists_url":"https://api.github.com/users/test-editor/gists{/gist_id}","starred_url":"https://api.github.com/users/test-editor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/test-editor/subscriptions","organizations_url":"https://api.github.com/users/test-editor/orgs","repos_url":"https://api.github.com/users/test-editor/repos","events_url":"https://api.github.com/users/test-editor/events{/privacy}","received_events_url":"https://api.github.com/users/test-editor/received_events","type":"Organization","site_admin":false},"repo":{"id":35145739,"name":"test-editor-xtext","full_name":"test-editor/test-editor-xtext","owner":{"login":"test-editor","id":7946408,"avatar_url":"https://avatars.githubusercontent.com/u/7946408?v=3","gravatar_id":"","url":"https://api.github.com/users/test-editor","html_url":"https://github.com/test-editor","followers_url":"https://api.github.com/users/test-editor/followers","following_url":"https://api.github.com/users/test-editor/following{/other_user}","gists_url":"https://api.github.com/users/test-editor/gists{/gist_id}","starred_url":"https://api.github.com/users/test-editor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/test-editor/subscriptions","organizations_url":"https://api.github.com/users/test-editor/orgs","repos_url":"https://api.github.com/users/test-editor/repos","events_url":"https://api.github.com/users/test-editor/events{/privacy}","received_events_url":"https://api.github.com/users/test-editor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/test-editor/test-editor-xtext","description":"Xtext editor for editing xml configuration files of test-editor","fork":false,"url":"https://api.github.com/repos/test-editor/test-editor-xtext","forks_url":"https://api.github.com/repos/test-editor/test-editor-xtext/forks","keys_url":"https://api.github.com/repos/test-editor/test-editor-xtext/keys{/key_id}","collaborators_url":"https://api.github.com/repos/test-editor/test-editor-xtext/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/test-editor/test-editor-xtext/teams","hooks_url":"https://api.github.com/repos/test-editor/test-editor-xtext/hooks","issue_events_url":"https://api.github.com/repos/test-editor/test-editor-xtext/issues/events{/number}","events_url":"https://api.github.com/repos/test-editor/test-editor-xtext/events","assignees_url":"https://api.github.com/repos/test-editor/test-editor-xtext/assignees{/user}","branches_url":"https://api.github.com/repos/test-editor/test-editor-xtext/branches{/branch}","tags_url":"https://api.github.com/repos/test-editor/test-editor-xtext/tags","blobs_url":"https://api.github.com/repos/test-editor/test-editor-xtext/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/test-editor/test-editor-xtext/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/test-editor/test-editor-xtext/git/refs{/sha}","trees_url":"https://api.github.com/repos/test-editor/test-editor-xtext/git/trees{/sha}","statuses_url":"https://api.github.com/repos/test-editor/test-editor-xtext/statuses/{sha}","languages_url":"https://api.github.com/repos/test-editor/test-editor-xtext/languages","stargazers_url":"https://api.github.com/repos/test-editor/test-editor-xtext/stargazers","contributors_url":"https://api.github.com/repos/test-editor/test-editor-xtext/contributors","subscribers_url":"https://api.github.com/repos/test-editor/test-editor-xtext/subscribers","subscription_url":"https://api.github.com/repos/test-editor/test-editor-xtext/subscription","commits_url":"https://api.github.com/repos/test-editor/test-editor-xtext/commits{/sha}","git_commits_url":"https://api.github.com/repos/test-editor/test-editor-xtext/git/commits{/sha}","comments_url":"https://api.github.com/repos/test-editor/test-editor-xtext/comments{/number}","issue_comment_url":"https://api.github.com/repos/test-editor/test-editor-xtext/issues/comments{/number}","contents_url":"https://api.github.com/repos/test-editor/test-editor-xtext/contents/{+path}","compare_url":"https://api.github.com/repos/test-editor/test-editor-xtext/compare/{base}...{head}","merges_url":"https://api.github.com/repos/test-editor/test-editor-xtext/merges","archive_url":"https://api.github.com/repos/test-editor/test-editor-xtext/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/test-editor/test-editor-xtext/downloads","issues_url":"https://api.github.com/repos/test-editor/test-editor-xtext/issues{/number}","pulls_url":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls{/number}","milestones_url":"https://api.github.com/repos/test-editor/test-editor-xtext/milestones{/number}","notifications_url":"https://api.github.com/repos/test-editor/test-editor-xtext/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/test-editor/test-editor-xtext/labels{/name}","releases_url":"https://api.github.com/repos/test-editor/test-editor-xtext/releases{/id}","deployments_url":"https://api.github.com/repos/test-editor/test-editor-xtext/deployments","created_at":"2015-05-06T07:40:18Z","updated_at":"2016-06-21T20:25:09Z","pushed_at":"2016-07-13T06:46:48Z","git_url":"git://github.com/test-editor/test-editor-xtext.git","ssh_url":"git@github.com:test-editor/test-editor-xtext.git","clone_url":"https://github.com/test-editor/test-editor-xtext.git","svn_url":"https://github.com/test-editor/test-editor-xtext","homepage":null,"size":81732,"stargazers_count":4,"watchers_count":4,"language":"Xtend","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":4,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls/99"},"html":{"href":"https://github.com/test-editor/test-editor-xtext/pull/99"},"issue":{"href":"https://api.github.com/repos/test-editor/test-editor-xtext/issues/99"},"comments":{"href":"https://api.github.com/repos/test-editor/test-editor-xtext/issues/99/comments"},"review_comments":{"href":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls/99/comments"},"review_comment":{"href":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/test-editor/test-editor-xtext/pulls/99/commits"},"statuses":{"href":"https://api.github.com/repos/test-editor/test-editor-xtext/statuses/6bb41b22b3e514f7c30cf343e2cbecbc2e268d31"}}}}
{"actor":{"display_login":"franzbecker"}}