Search in sources :

Example 1 with SocketWrapper

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);
}
Also used : Element(streamer.Element) SocketWrapper(streamer.SocketWrapper) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 Element (streamer.Element)1 SocketWrapper (streamer.SocketWrapper)1