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=new MockResponse();
    if (fixture.statusCode != 0) {
      mockResponse.setResponseCode(fixture.statusCode);
    }
    if (fixture.body != null) {
      mockResponse.setBody(fixture.body);
    }
    if (fixture.delay != 0) {
      mockWebServer.setDispatcher(new DelayedDispatcher(fixture.delay,TimeUnit.MILLISECONDS));
    }
    if (fixture.headers != null) {
      for (      String header : fixture.headers) {
        mockResponse.addHeader(header);
      }
    }
    mockWebServer.enqueue(mockResponse);
    mockResponseList.add(mockResponse);
  }
  return mockResponseList;
}

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 = new MockResponse ( ) ; if ( fixture . statusCode != 0 ) { mockResponse . setResponseCode ( fixture . statusCode ) ; } if ( fixture . body != null ) { mockResponse . setBody ( fixture . body ) ; } if ( fixture . delay != 0 ) { mockWebServer . setDispatcher ( new DelayedDispatcher ( fixture . delay , TimeUnit . MILLISECONDS ) ) ; } if ( fixture . headers != null ) { for ( String header : fixture . headers ) { mockResponse . addHeader ( header ) ; } } mockWebServer . enqueue ( mockResponse ) ; mockResponseList . add ( mockResponse ) ; } return mockResponseList ; }
given paths will be parsed to fixtures and added to the queue . can be multiple
