public List < MockResponse > enqueue ( String ... paths ) { if ( paths == null ) { return null ; } List < MockResponse > mockResponseList = new ArrayList <> ( ) ; for ( String path : paths ) { Fixture fixture = Fixture . parseFrom ( path , parser ) ; MockResponse mockResponse = fixture . toMockResponse ( ) ; mockWebServer . enqueue ( mockResponse ) ; mockResponseList . add ( mockResponse ) ; } return mockResponseList ; }
Given paths will be parsed to fixtures and added to the queue . Can be multiple