Code example for CameraPosition

0
	public void whenAddedTwoCloseMarkersAndZoomedInShouldDisplayTwoMarkers() { 
 
		strategy.onAdd(marker1);
		strategy.onAdd(marker3);
 
		strategy.onCameraChange(new CameraPosition(new LatLng(0, 0), 21, 0, 0));
 
		List<Marker> markers = strategy.getDisplayedMarkers();
 
		Assert.assertNotNull(markers);
		Assert.assertEquals(2, markers.size());
		Assert.assertTrue(markers.contains(marker1));
		Assert.assertTrue(markers.contains(marker3));
	} 
 
	@Test 
	public void whenAddedTwoCloseMarkersAndRemovedThemShouldDisplayZeroMarkers() { 
 
		strategy.onAdd(marker1);
		strategy.onAdd(marker2);