/*
 * Copyright 2010 david varnes.
 *
 * Licensed under the Apache License, version 2.0 (the "License"); 
 * you may not use this file except in compliance with the License. 
 * You may obtain a copy of the License at:
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.freeswitch.esl.client.outbound;

import org.freeswitch.esl.client.outbound.example.SimpleHangupPipelineFactory;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


public class SocketClientTest
{
    private final Logger log = LoggerFactory.getLogger( this.getClass() );

    @Test
    public void run_client() throws InterruptedException
    {
        log.info( "Test starting ..." );

        
        SocketClient client = new SocketClient( 8084, new SimpleHangupPipelineFactory() );
        
        client.start();
        
        Thread.sleep( 45000 );

        client.stop();

        
        log.info( "Test ended" );
    }
    
}

@@ -799,17 +799,698 @@
 ctory;%0A%0A
+/**%0A * This 'test' is not really a unit test, more an integration test. In order to see%0A * any result, configure a FreeSWITCH installation with an extension something like%0A * the following:%0A * %3Cpre%3E%0A    &lt;extension&gt;%0A      &lt;condition field=%22destination_number%22 expresssion=%22444%22&gt;  %0A        &lt;action application=%22socket%22 data=%22192.168.100.88:8084 async full%22/&gt;%0A      &lt;/condition&gt;%0A    &lt;/extension&gt;%0A * %3Cpre%3E%0A * Replace the ip address with the host that FreeSWITCH sees that you are running the test on, perhaps%0A * localhost.%0A * %3Cp/%3E%0A * Run the test, you have 45 seconds to make a call to extension 444 and observe the logs.%0A *  %0A * @author  david varnes%0A */
 %0A
-
 public c
@@ -1700,33 +1700,24 @@
 ng ...%22 );%0A%0A
-        %0A
         Sock
@@ -1865,24 +1865,24 @@
 ( 45000 );%0A%0A
+
         clie
@@ -1892,17 +1892,16 @@
 stop();%0A
-%0A
         

Improve Outbound test java docs