test_class.declarator: timer
test_class.modifier: private
test_class.original_string: private Timer timer;
test_class.type: Timer
test_class.var_name: timer
test_class.declarator: transmittor
test_class.modifier: private
test_class.original_string: private EndpointImpl transmittor;
test_class.type: EndpointImpl
test_class.var_name: transmittor
test_class.declarator: echo
test_class.modifier: private
test_class.original_string: private EndpointImpl echo;
test_class.type: EndpointImpl
test_class.var_name: echo
test_class.declarator: playerFactory
test_class.modifier: private
test_class.original_string: private AudioPlayerFactory playerFactory;
test_class.type: AudioPlayerFactory
test_class.var_name: playerFactory
test_class.declarator: sinkFactory
test_class.modifier: private
test_class.original_string: private TestSinkFactory sinkFactory;
test_class.type: TestSinkFactory
test_class.var_name: sinkFactory
test_class.declarator: echoFactory
test_class.modifier: private
test_class.original_string: private EchoFactory echoFactory;
test_class.type: EchoFactory
test_class.var_name: echoFactory
test_class.declarator: channelFactory
test_class.modifier: private
test_class.original_string: private ChannelFactory channelFactory;
test_class.type: ChannelFactory
test_class.var_name: channelFactory
test_class.declarator: semaphore
test_class.modifier: private
test_class.original_string: private Semaphore semaphore;
test_class.type: Semaphore
test_class.var_name: semaphore
test_class.declarator: res
test_class.modifier: private
test_class.original_string: private boolean res;
test_class.type: boolean
test_class.var_name: res
test_class.declarator: count
test_class.modifier: private
test_class.original_string: private int count;
test_class.type: int
test_class.var_name: count
test_class.file: servers/media/core/server-impl/src/test/java/org/mobicents/media/server/impl/resource/echo/EchoTest.java
test_class.identifier: EchoTest
test_case.body: @Test
      public void testTransmission() throws Exception {
          Connection connection1 = echo.createLocalConnection(ConnectionMode.SEND_RECV);
          Connection connection2 = transmittor.createLocalConnection(ConnectionMode.SEND_RECV);
          
          connection2.setOtherParty(connection1);
          
          Component c = transmittor.getComponent("audio.player");
              AudioPlayer player = (AudioPlayer)c;
          URL url = EchoTest.class.getClassLoader().getResource(
  		 "org/mobicents/media/server/impl/addf8-Alaw-GW.wav");
          player.setURL(url.toExternalForm());
          player.addListener(new PlayerListener());
          player.start();
  
          semaphore.tryAcquire(10, TimeUnit.SECONDS);
          assertTrue("Expected other number of packets", Math.abs(150 - count) < 10);
          
          assertEquals(true, echo.isInUse());
          assertEquals(true, transmittor.isInUse());
          
          echo.deleteConnection(connection1.getId());
          transmittor.deleteConnection(connection2.getId());
          
          assertEquals(false, echo.isInUse());
          assertEquals(false, transmittor.isInUse());
          
      }
test_case.class_method_signature: EchoTest.testTransmission()
test_case.full_signature: @Test public void testTransmission()
test_case.identifier: testTransmission
test_case.invocations: createLocalConnection createLocalConnection setOtherParty getComponent getResource getClassLoader setURL toExternalForm addListener start tryAcquire assertTrue abs assertEquals isInUse assertEquals isInUse deleteConnection getId deleteConnection getId assertEquals isInUse assertEquals isInUse
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testTransmission()
focal_class.declarator: sink
focal_class.modifier: private
focal_class.original_string: private EchoSink sink;
focal_class.type: EchoSink
focal_class.var_name: sink
focal_class.declarator: source
focal_class.modifier: private
focal_class.original_string: private EchoSource source;
focal_class.type: EchoSource
focal_class.var_name: source
focal_class.file: servers/media/core/server-impl/src/main/java/org/mobicents/media/server/impl/resource/echo/Echo.java
focal_class.identifier: Echo
focal_class.interfaces: implements ResourceGroup
focal_class.class_method_signature: Echo.Echo(String name)
focal_class.full_signature: public  Echo(String name)
focal_class.identifier: Echo
focal_class.modifiers: public
focal_class.parameters: (String name)
focal_class.signature:  Echo(String name)
focal_class.class_method_signature: Echo.getSink()
focal_class.full_signature: public MediaSink getSink()
focal_class.identifier: getSink
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: MediaSink
focal_class.signature: MediaSink getSink()
focal_class.class_method_signature: Echo.getSource()
focal_class.full_signature: public MediaSource getSource()
focal_class.identifier: getSource
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: MediaSource
focal_class.signature: MediaSource getSource()
focal_class.class_method_signature: Echo.start()
focal_class.full_signature: public void start()
focal_class.identifier: start
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void start()
focal_class.class_method_signature: Echo.stop()
focal_class.full_signature: public void stop()
focal_class.identifier: stop
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void stop()
focal_class.superclass: extends BaseComponent
focal_method.body: public void start() {
          sink.start();
          source.start();
      }
focal_method.class_method_signature: Echo.start()
focal_method.full_signature: public void start()
focal_method.identifier: start
focal_method.invocations: start start
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void start()