{"action":"created","comment":{"url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/pulls/comments/111887805","pull_request_review_id":33158786,"id":111887805,"diff_hunk":"@@ -0,0 +1,105 @@\n+package org.jboss.tools.fuse.ui.bot.test;\n+\n+import static org.junit.Assert.assertTrue;\n+\n+import java.io.File;\n+\n+import org.jboss.reddeer.common.logging.Logger;\n+import org.jboss.reddeer.common.wait.AbstractWait;\n+import org.jboss.reddeer.common.wait.TimePeriod;\n+import org.jboss.reddeer.common.wait.WaitUntil;\n+import org.jboss.reddeer.common.wait.WaitWhile;\n+import org.jboss.reddeer.core.condition.ShellWithTextIsAvailable;\n+import org.jboss.reddeer.core.handler.ShellHandler;\n+import org.jboss.reddeer.eclipse.wst.server.ui.view.ServersView;\n+import org.jboss.reddeer.junit.runner.RedDeerSuite;\n+import org.jboss.reddeer.requirements.cleanworkspace.CleanWorkspaceRequirement.CleanWorkspace;\n+import org.jboss.reddeer.requirements.openperspective.OpenPerspectiveRequirement.OpenPerspective;\n+import org.jboss.reddeer.swt.impl.button.PushButton;\n+import org.jboss.reddeer.swt.impl.button.RadioButton;\n+import org.jboss.reddeer.swt.impl.text.DefaultText;\n+import org.jboss.tools.common.reddeer.FileUtils;\n+import org.jboss.tools.fuse.reddeer.perspectives.FuseIntegrationPerspective;\n+import org.jboss.tools.runtime.reddeer.preference.FuseServerRuntimePreferencePage;\n+import org.jboss.tools.runtime.reddeer.preference.JBossRuntimeDetection;\n+import org.jboss.tools.runtime.reddeer.wizard.DownloadRuntimesWizard;\n+import org.junit.Before;\n+import org.junit.Test;\n+import org.junit.runner.RunWith;\n+\n+/**\n+ * Class contains test cases on a variety of server feature requests\n+ * \n+ * @author djelinek\n+ */\n+@CleanWorkspace\n+@OpenPerspective(FuseIntegrationPerspective.class)\n+@RunWith(RedDeerSuite.class)\n+public class FeaturesServerTest extends DefaultTest {\n+\n+\tprotected Logger log = Logger.getLogger(CamelEditorTest.class);\n+\n+\t@Before\n+\tpublic void clean() {\n+\t\t// clean previous runtime installations\n+\t\tFileUtils.deleteDir(new File(getPath() + \"target/temp_install/jboss-fuse-6.3.0.redhat-187\"));\n+\t\t// close all shells\n+\t\tShellHandler.getInstance().closeAllNonWorbenchShells();\n+\t}\n+\n+\t/**\n+\t * <p>\n+\t * Fuse runtime detection never makes a server\n+\t * <p>\n+\t * <b>Link: </b>\n+\t * <a href=\"https://issues.jboss.org/browse/FUSETOOLS-2176\">https://issues.jboss.org/browse/FUSETOOLS-2176</a>\n+\t */\n+\t@Test\n+\tpublic void issue_2176() {\n+\t\tdownloadRuntime(\"JBoss Fuse 6.3.0\");\n+\t\tassertTrue(\"Server was not created in view\", new ServersView().getServers().size() == 1);\n+\t\tFuseServerRuntimePreferencePage runtimePref = new FuseServerRuntimePreferencePage();\n+\t\truntimePref.open();\n+\t\tassertTrue(\"Server runtime was not created\", runtimePref.getServerRuntimes().size() == 1);\n+\t}\n+\n+\t/**\n+\t * Downloads/installs new runtime into temp/temp_install folder\n+\t * \n+\t * @param name\n+\t *            String name of runtime\n+\t */\n+\tprivate void downloadRuntime(String name) {\n+\t\tJBossRuntimeDetection prefPage = new JBossRuntimeDetection();\n+\t\tprefPage.open();\n+\t\tDownloadRuntimesWizard runtimeWiz = prefPage.downloadRuntime();\n+\t\truntimeWiz.selectRuntime(name);\n+\t\truntimeWiz.next();\n+\t\tnew PushButton(\"Add...\").click();\n+\t\tnew DefaultText(0).setText(\"aqtwrdnr\");","path":"tests/org.jboss.tools.fuse.ui.bot.test/src/org/jboss/tools/fuse/ui/bot/test/FeaturesServerTest.java","position":79,"original_position":79,"commit_id":"296f5ae89d04380e75485ceba9f255b348569724","original_commit_id":"296f5ae89d04380e75485ceba9f255b348569724","user":{"login":"apodhrad","id":2270674,"avatar_url":"https://avatars3.githubusercontent.com/u/2270674?v=3","gravatar_id":"","url":"https://api.github.com/users/apodhrad","html_url":"https://github.com/apodhrad","followers_url":"https://api.github.com/users/apodhrad/followers","following_url":"https://api.github.com/users/apodhrad/following{/other_user}","gists_url":"https://api.github.com/users/apodhrad/gists{/gist_id}","starred_url":"https://api.github.com/users/apodhrad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apodhrad/subscriptions","organizations_url":"https://api.github.com/users/apodhrad/orgs","repos_url":"https://api.github.com/users/apodhrad/repos","events_url":"https://api.github.com/users/apodhrad/events{/privacy}","received_events_url":"https://api.github.com/users/apodhrad/received_events","type":"User","site_admin":false},"body":"Please use labels instead of indices. If this is not possible, please explain why.","created_at":"2017-04-18T07:35:40Z","updated_at":"2017-04-18T07:38:22Z","html_url":"https://github.com/jbosstools/jbosstools-integration-stack-tests/pull/894#discussion_r111887805","pull_request_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/pulls/894","_links":{"self":{"href":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/pulls/comments/111887805"},"html":{"href":"https://github.com/jbosstools/jbosstools-integration-stack-tests/pull/894#discussion_r111887805"},"pull_request":{"href":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/pulls/894"}}},"pull_request":{"url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/pulls/894","id":115738872,"html_url":"https://github.com/jbosstools/jbosstools-integration-stack-tests/pull/894","diff_url":"https://github.com/jbosstools/jbosstools-integration-stack-tests/pull/894.diff","patch_url":"https://github.com/jbosstools/jbosstools-integration-stack-tests/pull/894.patch","issue_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/issues/894","number":894,"state":"open","locked":false,"title":"JBTIS-940: Create a test for checking whether a runtime detection als…","user":{"login":"djelinek","id":18696866,"avatar_url":"https://avatars0.githubusercontent.com/u/18696866?v=3","gravatar_id":"","url":"https://api.github.com/users/djelinek","html_url":"https://github.com/djelinek","followers_url":"https://api.github.com/users/djelinek/followers","following_url":"https://api.github.com/users/djelinek/following{/other_user}","gists_url":"https://api.github.com/users/djelinek/gists{/gist_id}","starred_url":"https://api.github.com/users/djelinek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djelinek/subscriptions","organizations_url":"https://api.github.com/users/djelinek/orgs","repos_url":"https://api.github.com/users/djelinek/repos","events_url":"https://api.github.com/users/djelinek/events{/privacy}","received_events_url":"https://api.github.com/users/djelinek/received_events","type":"User","site_admin":false},"body":"…o creates a server","created_at":"2017-04-13T11:42:40Z","updated_at":"2017-04-18T07:38:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"169ea5ac8202ce926f9b493cf87b129a029c8bc4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/pulls/894/commits","review_comments_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/pulls/894/comments","review_comment_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/issues/894/comments","statuses_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/statuses/296f5ae89d04380e75485ceba9f255b348569724","head":{"label":"djelinek:JBTIS-940","ref":"JBTIS-940","sha":"296f5ae89d04380e75485ceba9f255b348569724","user":{"login":"djelinek","id":18696866,"avatar_url":"https://avatars0.githubusercontent.com/u/18696866?v=3","gravatar_id":"","url":"https://api.github.com/users/djelinek","html_url":"https://github.com/djelinek","followers_url":"https://api.github.com/users/djelinek/followers","following_url":"https://api.github.com/users/djelinek/following{/other_user}","gists_url":"https://api.github.com/users/djelinek/gists{/gist_id}","starred_url":"https://api.github.com/users/djelinek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djelinek/subscriptions","organizations_url":"https://api.github.com/users/djelinek/orgs","repos_url":"https://api.github.com/users/djelinek/repos","events_url":"https://api.github.com/users/djelinek/events{/privacy}","received_events_url":"https://api.github.com/users/djelinek/received_events","type":"User","site_admin":false},"repo":{"id":57198433,"name":"jbosstools-integration-stack-tests","full_name":"djelinek/jbosstools-integration-stack-tests","owner":{"login":"djelinek","id":18696866,"avatar_url":"https://avatars0.githubusercontent.com/u/18696866?v=3","gravatar_id":"","url":"https://api.github.com/users/djelinek","html_url":"https://github.com/djelinek","followers_url":"https://api.github.com/users/djelinek/followers","following_url":"https://api.github.com/users/djelinek/following{/other_user}","gists_url":"https://api.github.com/users/djelinek/gists{/gist_id}","starred_url":"https://api.github.com/users/djelinek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djelinek/subscriptions","organizations_url":"https://api.github.com/users/djelinek/orgs","repos_url":"https://api.github.com/users/djelinek/repos","events_url":"https://api.github.com/users/djelinek/events{/privacy}","received_events_url":"https://api.github.com/users/djelinek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/djelinek/jbosstools-integration-stack-tests","description":null,"fork":true,"url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests","forks_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/forks","keys_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/teams","hooks_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/hooks","issue_events_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/issues/events{/number}","events_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/events","assignees_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/assignees{/user}","branches_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/branches{/branch}","tags_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/tags","blobs_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/languages","stargazers_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/stargazers","contributors_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/contributors","subscribers_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/subscribers","subscription_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/subscription","commits_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/contents/{+path}","compare_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/merges","archive_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/downloads","issues_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/issues{/number}","pulls_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/labels{/name}","releases_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/releases{/id}","deployments_url":"https://api.github.com/repos/djelinek/jbosstools-integration-stack-tests/deployments","created_at":"2016-04-27T08:47:54Z","updated_at":"2016-04-27T08:47:57Z","pushed_at":"2017-04-13T11:26:22Z","git_url":"git://github.com/djelinek/jbosstools-integration-stack-tests.git","ssh_url":"git@github.com:djelinek/jbosstools-integration-stack-tests.git","clone_url":"https://github.com/djelinek/jbosstools-integration-stack-tests.git","svn_url":"https://github.com/djelinek/jbosstools-integration-stack-tests","homepage":null,"size":8860,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"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":"jbosstools:master","ref":"master","sha":"b00ec9997356ec9fd41524d555007f16a12fa453","user":{"login":"jbosstools","id":619871,"avatar_url":"https://avatars0.githubusercontent.com/u/619871?v=3","gravatar_id":"","url":"https://api.github.com/users/jbosstools","html_url":"https://github.com/jbosstools","followers_url":"https://api.github.com/users/jbosstools/followers","following_url":"https://api.github.com/users/jbosstools/following{/other_user}","gists_url":"https://api.github.com/users/jbosstools/gists{/gist_id}","starred_url":"https://api.github.com/users/jbosstools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbosstools/subscriptions","organizations_url":"https://api.github.com/users/jbosstools/orgs","repos_url":"https://api.github.com/users/jbosstools/repos","events_url":"https://api.github.com/users/jbosstools/events{/privacy}","received_events_url":"https://api.github.com/users/jbosstools/received_events","type":"Organization","site_admin":false},"repo":{"id":13466009,"name":"jbosstools-integration-stack-tests","full_name":"jbosstools/jbosstools-integration-stack-tests","owner":{"login":"jbosstools","id":619871,"avatar_url":"https://avatars0.githubusercontent.com/u/619871?v=3","gravatar_id":"","url":"https://api.github.com/users/jbosstools","html_url":"https://github.com/jbosstools","followers_url":"https://api.github.com/users/jbosstools/followers","following_url":"https://api.github.com/users/jbosstools/following{/other_user}","gists_url":"https://api.github.com/users/jbosstools/gists{/gist_id}","starred_url":"https://api.github.com/users/jbosstools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbosstools/subscriptions","organizations_url":"https://api.github.com/users/jbosstools/orgs","repos_url":"https://api.github.com/users/jbosstools/repos","events_url":"https://api.github.com/users/jbosstools/events{/privacy}","received_events_url":"https://api.github.com/users/jbosstools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jbosstools/jbosstools-integration-stack-tests","description":null,"fork":false,"url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests","forks_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/forks","keys_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/teams","hooks_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/hooks","issue_events_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/issues/events{/number}","events_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/events","assignees_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/assignees{/user}","branches_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/branches{/branch}","tags_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/tags","blobs_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/languages","stargazers_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/stargazers","contributors_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/contributors","subscribers_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/subscribers","subscription_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/subscription","commits_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/contents/{+path}","compare_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/merges","archive_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/downloads","issues_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/issues{/number}","pulls_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/labels{/name}","releases_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/releases{/id}","deployments_url":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/deployments","created_at":"2013-10-10T08:33:17Z","updated_at":"2016-10-24T12:31:45Z","pushed_at":"2017-04-18T07:27:00Z","git_url":"git://github.com/jbosstools/jbosstools-integration-stack-tests.git","ssh_url":"git@github.com:jbosstools/jbosstools-integration-stack-tests.git","clone_url":"https://github.com/jbosstools/jbosstools-integration-stack-tests.git","svn_url":"https://github.com/jbosstools/jbosstools-integration-stack-tests","homepage":null,"size":8878,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":15,"forks":23,"open_issues":15,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/pulls/894"},"html":{"href":"https://github.com/jbosstools/jbosstools-integration-stack-tests/pull/894"},"issue":{"href":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/issues/894"},"comments":{"href":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/issues/894/comments"},"review_comments":{"href":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/pulls/894/comments"},"review_comment":{"href":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/pulls/894/commits"},"statuses":{"href":"https://api.github.com/repos/jbosstools/jbosstools-integration-stack-tests/statuses/296f5ae89d04380e75485ceba9f255b348569724"}}}}
{"actor":{"display_login":"apodhrad"}}