Code example for MockContext

0
     
    private SendRequestCallbackHandler target;
     
    @Override 
    protected void setUp() { 
        target = new SendRequestCallbackHandler(new MockContext());
    } 
     
    @Override 
    protected void tearDown() { 
        target = null;
    } 
     
    public void testSimple() throws Exception { 
        Bundle bundle = new Bundle();
        bundle.putString("request_member", "123,456");
        bundle.putString("request_id", "requestId1");
         
        target.onComplete(bundle);
         
Stop searching for code, let great code find you!  Add Codota to your java IDE