FileDocCategorySizeDatePackage
MockResponseDelivery.javaAPI DocAndroid 5.1 API1620Thu Mar 12 22:22:56 GMT 2015com.android.volley.mock

MockResponseDelivery

public class MockResponseDelivery extends Object implements com.android.volley.ResponseDelivery

Fields Summary
public boolean
postResponse_called
public boolean
postError_called
public com.android.volley.Response
responsePosted
Constructors Summary
Methods Summary
public voidpostError(com.android.volley.Request request, com.android.volley.VolleyError error)

        postError_called = true;
    
public voidpostResponse(com.android.volley.Request request, com.android.volley.Response response)

    
          
        postResponse_called = true;
        responsePosted = response;
    
public voidpostResponse(com.android.volley.Request request, com.android.volley.Response response, java.lang.Runnable runnable)

        postResponse_called = true;
        responsePosted = response;
        runnable.run();
    
public booleanwasEitherResponseCalled()


       
        return postResponse_called || postError_called;