@Test public void onBuild_whenJustDropoffPlaceIdProvided_shouldSucceed() throws Exception { new RideUpdateParameters.Builder().setDropoffPlaceId("home").build(); }
@Test public void build_whenBothDropoffPlaceIdAndCoordinatesProvided_shouldFail() throws Exception { exception.expect(IllegalArgumentException.class); exception.expectMessage("Exactly one of dropoff place or dropoff coordinates is required."); new RideUpdateParameters.Builder() .setDropoffCoordinates(30f, -122f) .setDropoffPlaceId("home") .build(); }