public void testThreadUnSubscribe() { ThreadedClient client = new ThreadedClient(SUB_PORT); try { client.subscribe(REMOTE_HOST, REMOTE_PORT, REMOTE_TABLE_NAME, new SampleMessageHandler(), 0); } catch (Exception ex) { Console.WriteLine(ex.ToString()); Console.Write(ex.StackTrace); Assert.Fail(ex.Message); } ThreadedClient client1 = new ThreadedClient(SUB_PORT); try { client1.unsubscribe(REMOTE_HOST, REMOTE_PORT, REMOTE_TABLE_NAME); } catch (Exception e) { Assert.Fail(e.Message); } }
public void testUnsubscribe() { ThreadedClient client = new ThreadedClient(SUB_PORT); client.unsubscribe(REMOTE_HOST, REMOTE_PORT, REMOTE_TABLE_NAME); }