public void testCloseWithoutOpen() { close(); viewOpenListener.expectedNothing(); }
public void testMultipleClose() { open(); viewOpenListener.clear(); close(); viewOpenListener.expectedCall(MockViewChannelListener.MethodCall.ON_CLOSED); close(); viewOpenListener.expectedNothing(); }
public void testMultipleClose() { open(); viewOpenListener.clear(); close(); viewOpenListener.expectedCall(MockViewChannelListener.MethodCall.ON_CLOSED); close(); viewOpenListener.expectedNothing(); }
/** * Tests that closing the channel prevents updates that arrive later from * being passed to the channel listener. */ public void testCloseMasksFutureUpdatesFromOpenListener() { open(); close(); viewOpenListener.clear(); respondWithEmptyUpdate(WAVELET_ID); viewOpenListener.expectedNothing(); }
public void testOpenRpcOnFailureAndThenTerminationWithoutCloseTriggersOneFailureAndClose() { open(); viewOpenListener.clear(); terminateOpenRpcWithFailure("WAVE_SERVER_ERROR"); viewOpenListener.expectedCall(MockViewChannelListener.MethodCall.ON_CLOSED); terminateOpenRpcWithError(); viewOpenListener.expectedNothing(); }
/** * Tests that closing the channel prevents updates that arrive later from * being passed to the channel listener. */ public void testCloseMasksFutureUpdatesFromOpenListener() { open(); close(); viewOpenListener.clear(); respondWithEmptyUpdate(WAVELET_ID); viewOpenListener.expectedNothing(); }
public void testOpenRpcOnFailureAndThenTerminationWithoutCloseTriggersOneFailureAndClose() { open(); viewOpenListener.clear(); terminateOpenRpcWithFailure("WAVE_SERVER_ERROR"); viewOpenListener.expectedCall(MockViewChannelListener.MethodCall.ON_CLOSED); terminateOpenRpcWithError(); viewOpenListener.expectedNothing(); }
public void testCloseWithoutOpen() { close(); viewOpenListener.expectedNothing(); }