Code example for Bundle

Methods: containsKeygetParcelable

0
        assertTrue(request != null);
 
        Bundle parameters = request.getParameters();
        assertTrue(parameters != null);
 
        assertTrue(parameters.containsKey("picture"));
        assertEquals(image, parameters.getParcelable("picture"));
        assertEquals("me/photos", request.getGraphPath());
    } 
 
    @SmallTest 
    @MediumTest 
    @LargeTest 
    public void testCreatePlacesSearchRequestWithLocation() { 
        Location location = new Location("");
        location.setLatitude(47.6204);
        location.setLongitude(-122.3491);
 
        Request request = Request.newPlacesSearchRequest(null, location, 1000, 50, null, null);
 
        assertTrue(request != null);