@Test public void testDlcx() { MgcpEvent evt = (MgcpEvent) mgcpProvider.createEvent(MgcpEvent.REQUEST, address); MgcpRequest msg = (MgcpRequest) evt.getMessage(); msg.setCommand(new Text("DLCX")); msg.setEndpoint(new Text("test@localhost:2427")); msg.setTxID(1); Action action = selector.getAction(evt); assertTrue("Unexpected action", action instanceof DeleteConnectionCmd); }
@After public void tearDown() { mgcpProvider.shutdown(); scheduler.stop(); }