use of streamer.SocketWrapper in project cloudstack by apache.
the class ClientTest method testAssemblePipelineWhenMainElementIsNull.
@Test(expected = NullPointerException.class)
public void testAssemblePipelineWhenMainElementIsNull() throws Exception {
SocketWrapper socketMock = mock(SocketWrapper.class);
when(socketMock.getId()).thenReturn("socket");
Whitebox.setInternalState(Client.class, "socket", socketMock);
Element main = null;
Client.assemblePipeline(main);
}
Aggregations