public MockResponse enqueue ( SocketPolicy socketPolicy ) { MockResponse mockResponse = new MockResponse ( ) . setSocketPolicy ( socketPolicy ) ; mockWebServer . enqueue ( mockResponse ) ; return mockResponse ; }
Given policy will be enqueued as MockResponse