public void testFailureBeforeOpenThrowsException() { try { channel.onFailure("for testing"); fail("Should not be able to receive onFailure without open call"); } catch (IllegalStateException expected) { // Expected. } }
public void testFailureBeforeOpenThrowsException() { try { channel.onFailure("for testing"); fail("Should not be able to receive onFailure without open call"); } catch (IllegalStateException expected) { // Expected. } }
/** * Tests a channel closes if it receives failure before channel id. */ public void testFailureBeforeChannelIdClosesChannel() { halfOpen(); channel.onFailure("for testing"); viewOpenListener.expectedCall(MockViewChannelListener.MethodCall.ON_CLOSED); }
/** * Tests a channel closes if it receives failure before channel id. */ public void testFailureBeforeChannelIdClosesChannel() { halfOpen(); channel.onFailure("for testing"); viewOpenListener.expectedCall(MockViewChannelListener.MethodCall.ON_CLOSED); }