{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/wso2-synapse/pulls/comments/148997280","pull_request_review_id":74323115,"id":148997280,"diff_hunk":"@@ -0,0 +1,48 @@\n+/*\n+ * Licensed to the Apache Software Foundation (ASF) under one\n+ * or more contributor license agreements.  See the NOTICE file\n+ * distributed with this work for additional information\n+ * regarding copyright ownership.  The ASF licenses this file\n+ * to you under the Apache License, Version 2.0 (the\n+ * \"License\"); you may not use this file except in compliance\n+ * with the License.  You may obtain a copy of the License at\n+ *\n+ *   http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing,\n+ * software distributed under the License is distributed on an\n+ * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n+ * KIND, either express or implied.  See the License for the\n+ * specific language governing permissions and limitations\n+ * under the License.\n+ */\n+\n+package org.apache.synapse.samples.framework.tests.transport;\n+\n+import org.apache.synapse.samples.framework.Axis2BackEndServerController;\n+import org.apache.synapse.samples.framework.SampleClientResult;\n+import org.apache.synapse.samples.framework.SynapseTestCase;\n+import org.apache.synapse.samples.framework.clients.StockQuoteSampleClient;\n+\n+public class Sample266 extends SynapseTestCase {\n+\n+    public Sample266() {\n+        super(266);\n+    }\n+\n+    public void testTCPtoHTTP() throws Exception {\n+        Axis2BackEndServerController axis2Server = getAxis2Server();\n+        if (axis2Server == null) {\n+            fail(\"Failed to load the Axis2BackEndServerController\");\n+        }\n+\n+        assertEquals(0, axis2Server.getMessageCount(\"SimpleStockQuoteService\", \"placeOrder\"));\n+\n+        String addUrl = \"tcp://localhost:6060/services/StockQuoteProxy\";\n+        StockQuoteSampleClient client = getStockQuoteClient();\n+        client.placeOrder(addUrl, null, null, \"IBM\");\n+\n+        Thread.sleep(2000);","path":"modules/integration/src/test/java/org/apache/synapse/samples/framework/tests/transport/Sample266.java","position":45,"original_position":45,"commit_id":"b01ed4b20124cb56c5cf6b5994887312339c081b","original_commit_id":"b01ed4b20124cb56c5cf6b5994887312339c081b","user":{"login":"nuwanw","id":7113382,"avatar_url":"https://avatars2.githubusercontent.com/u/7113382?v=4","gravatar_id":"","url":"https://api.github.com/users/nuwanw","html_url":"https://github.com/nuwanw","followers_url":"https://api.github.com/users/nuwanw/followers","following_url":"https://api.github.com/users/nuwanw/following{/other_user}","gists_url":"https://api.github.com/users/nuwanw/gists{/gist_id}","starred_url":"https://api.github.com/users/nuwanw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuwanw/subscriptions","organizations_url":"https://api.github.com/users/nuwanw/orgs","repos_url":"https://api.github.com/users/nuwanw/repos","events_url":"https://api.github.com/users/nuwanw/events{/privacy}","received_events_url":"https://api.github.com/users/nuwanw/received_events","type":"User","site_admin":false},"body":"why sleep is needed ? can we use a iterator ","created_at":"2017-11-06T06:00:08Z","updated_at":"2017-11-06T06:00:08Z","html_url":"https://github.com/wso2/wso2-synapse/pull/916#discussion_r148997280","pull_request_url":"https://api.github.com/repos/wso2/wso2-synapse/pulls/916","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/wso2/wso2-synapse/pulls/comments/148997280"},"html":{"href":"https://github.com/wso2/wso2-synapse/pull/916#discussion_r148997280"},"pull_request":{"href":"https://api.github.com/repos/wso2/wso2-synapse/pulls/916"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/wso2-synapse/pulls/916","id":150719058,"html_url":"https://github.com/wso2/wso2-synapse/pull/916","diff_url":"https://github.com/wso2/wso2-synapse/pull/916.diff","patch_url":"https://github.com/wso2/wso2-synapse/pull/916.patch","issue_url":"https://api.github.com/repos/wso2/wso2-synapse/issues/916","number":916,"state":"open","locked":false,"title":"Add sample integration tests","user":{"login":"manoramahp","id":10743861,"avatar_url":"https://avatars3.githubusercontent.com/u/10743861?v=4","gravatar_id":"","url":"https://api.github.com/users/manoramahp","html_url":"https://github.com/manoramahp","followers_url":"https://api.github.com/users/manoramahp/followers","following_url":"https://api.github.com/users/manoramahp/following{/other_user}","gists_url":"https://api.github.com/users/manoramahp/gists{/gist_id}","starred_url":"https://api.github.com/users/manoramahp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manoramahp/subscriptions","organizations_url":"https://api.github.com/users/manoramahp/orgs","repos_url":"https://api.github.com/users/manoramahp/repos","events_url":"https://api.github.com/users/manoramahp/events{/privacy}","received_events_url":"https://api.github.com/users/manoramahp/received_events","type":"User","site_admin":false},"body":"## Purpose\r\n> Moving sample integration tests from product-ei to wso2-synapse","created_at":"2017-11-05T11:55:48Z","updated_at":"2017-11-06T06:00:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f2fb5610aeb19072467628fdbc42f7cfd830a3d7","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/wso2/wso2-synapse/pulls/916/commits","review_comments_url":"https://api.github.com/repos/wso2/wso2-synapse/pulls/916/comments","review_comment_url":"https://api.github.com/repos/wso2/wso2-synapse/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/wso2-synapse/issues/916/comments","statuses_url":"https://api.github.com/repos/wso2/wso2-synapse/statuses/b01ed4b20124cb56c5cf6b5994887312339c081b","head":{"label":"manoramahp:synapse-integration-tests","ref":"synapse-integration-tests","sha":"b01ed4b20124cb56c5cf6b5994887312339c081b","user":{"login":"manoramahp","id":10743861,"avatar_url":"https://avatars3.githubusercontent.com/u/10743861?v=4","gravatar_id":"","url":"https://api.github.com/users/manoramahp","html_url":"https://github.com/manoramahp","followers_url":"https://api.github.com/users/manoramahp/followers","following_url":"https://api.github.com/users/manoramahp/following{/other_user}","gists_url":"https://api.github.com/users/manoramahp/gists{/gist_id}","starred_url":"https://api.github.com/users/manoramahp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manoramahp/subscriptions","organizations_url":"https://api.github.com/users/manoramahp/orgs","repos_url":"https://api.github.com/users/manoramahp/repos","events_url":"https://api.github.com/users/manoramahp/events{/privacy}","received_events_url":"https://api.github.com/users/manoramahp/received_events","type":"User","site_admin":false},"repo":{"id":90339063,"name":"wso2-synapse-public","full_name":"manoramahp/wso2-synapse-public","owner":{"login":"manoramahp","id":10743861,"avatar_url":"https://avatars3.githubusercontent.com/u/10743861?v=4","gravatar_id":"","url":"https://api.github.com/users/manoramahp","html_url":"https://github.com/manoramahp","followers_url":"https://api.github.com/users/manoramahp/followers","following_url":"https://api.github.com/users/manoramahp/following{/other_user}","gists_url":"https://api.github.com/users/manoramahp/gists{/gist_id}","starred_url":"https://api.github.com/users/manoramahp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manoramahp/subscriptions","organizations_url":"https://api.github.com/users/manoramahp/orgs","repos_url":"https://api.github.com/users/manoramahp/repos","events_url":"https://api.github.com/users/manoramahp/events{/privacy}","received_events_url":"https://api.github.com/users/manoramahp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/manoramahp/wso2-synapse-public","description":null,"fork":true,"url":"https://api.github.com/repos/manoramahp/wso2-synapse-public","forks_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/forks","keys_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/keys{/key_id}","collaborators_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/teams","hooks_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/hooks","issue_events_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/issues/events{/number}","events_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/events","assignees_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/assignees{/user}","branches_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/branches{/branch}","tags_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/tags","blobs_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/git/refs{/sha}","trees_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/git/trees{/sha}","statuses_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/statuses/{sha}","languages_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/languages","stargazers_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/stargazers","contributors_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/contributors","subscribers_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/subscribers","subscription_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/subscription","commits_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/commits{/sha}","git_commits_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/git/commits{/sha}","comments_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/comments{/number}","issue_comment_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/issues/comments{/number}","contents_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/contents/{+path}","compare_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/compare/{base}...{head}","merges_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/merges","archive_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/downloads","issues_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/issues{/number}","pulls_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/pulls{/number}","milestones_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/milestones{/number}","notifications_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/labels{/name}","releases_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/releases{/id}","deployments_url":"https://api.github.com/repos/manoramahp/wso2-synapse-public/deployments","created_at":"2017-05-05T05:10:52Z","updated_at":"2017-05-05T05:11:07Z","pushed_at":"2017-11-06T04:28:53Z","git_url":"git://github.com/manoramahp/wso2-synapse-public.git","ssh_url":"git@github.com:manoramahp/wso2-synapse-public.git","clone_url":"https://github.com/manoramahp/wso2-synapse-public.git","svn_url":"https://github.com/manoramahp/wso2-synapse-public","homepage":null,"size":13940,"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,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wso2:master","ref":"master","sha":"c1e60de5d73512071d921a90b21135661ca8f990","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars3.githubusercontent.com/u/533043?v=4","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":16471584,"name":"wso2-synapse","full_name":"wso2/wso2-synapse","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars3.githubusercontent.com/u/533043?v=4","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/wso2-synapse","description":null,"fork":false,"url":"https://api.github.com/repos/wso2/wso2-synapse","forks_url":"https://api.github.com/repos/wso2/wso2-synapse/forks","keys_url":"https://api.github.com/repos/wso2/wso2-synapse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/wso2-synapse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/wso2-synapse/teams","hooks_url":"https://api.github.com/repos/wso2/wso2-synapse/hooks","issue_events_url":"https://api.github.com/repos/wso2/wso2-synapse/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/wso2-synapse/events","assignees_url":"https://api.github.com/repos/wso2/wso2-synapse/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/wso2-synapse/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/wso2-synapse/tags","blobs_url":"https://api.github.com/repos/wso2/wso2-synapse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/wso2-synapse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/wso2-synapse/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/wso2-synapse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/wso2-synapse/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/wso2-synapse/languages","stargazers_url":"https://api.github.com/repos/wso2/wso2-synapse/stargazers","contributors_url":"https://api.github.com/repos/wso2/wso2-synapse/contributors","subscribers_url":"https://api.github.com/repos/wso2/wso2-synapse/subscribers","subscription_url":"https://api.github.com/repos/wso2/wso2-synapse/subscription","commits_url":"https://api.github.com/repos/wso2/wso2-synapse/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/wso2-synapse/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/wso2-synapse/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/wso2-synapse/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/wso2-synapse/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/wso2-synapse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/wso2-synapse/merges","archive_url":"https://api.github.com/repos/wso2/wso2-synapse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/wso2-synapse/downloads","issues_url":"https://api.github.com/repos/wso2/wso2-synapse/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/wso2-synapse/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/wso2-synapse/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/wso2-synapse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/wso2-synapse/labels{/name}","releases_url":"https://api.github.com/repos/wso2/wso2-synapse/releases{/id}","deployments_url":"https://api.github.com/repos/wso2/wso2-synapse/deployments","created_at":"2014-02-03T06:28:42Z","updated_at":"2017-07-17T15:30:14Z","pushed_at":"2017-11-06T05:49:17Z","git_url":"git://github.com/wso2/wso2-synapse.git","ssh_url":"git@github.com:wso2/wso2-synapse.git","clone_url":"https://github.com/wso2/wso2-synapse.git","svn_url":"https://github.com/wso2/wso2-synapse","homepage":null,"size":13974,"stargazers_count":21,"watchers_count":21,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":260,"mirror_url":null,"archived":false,"open_issues_count":31,"forks":260,"open_issues":31,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/wso2-synapse/pulls/916"},"html":{"href":"https://github.com/wso2/wso2-synapse/pull/916"},"issue":{"href":"https://api.github.com/repos/wso2/wso2-synapse/issues/916"},"comments":{"href":"https://api.github.com/repos/wso2/wso2-synapse/issues/916/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/wso2-synapse/pulls/916/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/wso2-synapse/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/wso2-synapse/pulls/916/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/wso2-synapse/statuses/b01ed4b20124cb56c5cf6b5994887312339c081b"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"nuwanw"}}