urbanairship-core/src/test/java/com/urbanairship/location/LocationRequestOptionsTest.java
@Test
    public void testLocationRequestOptionInvalidMinDistance() {
        exception.expect(IllegalArgumentException.class);
        exception.expectMessage("minDistance must be greater or equal to 0");
        new LocationRequestOptions.Builder().setMinDistance(-1);
    }
/**
     * Test creating a new request options throws exceptions for invalid
     * minDistance.
     */
Test creating a new request options throws exceptions for invalid
minDistance.
Test creating a new request options throws exceptions for invalid minDistance .
@Test
    public void testLocationRequestOptionInvalidMinDistance() {
        exception.expect(IllegalArgumentException.class);
        exception.expectMessage("minDistance must be greater or equal to 0");
        new LocationRequestOptions.Builder().setMinDistance(-1);
    }
@ Test public void testLocationRequestOptionInvalidMinDistance ( ) { exception . expect ( IllegalArgumentException . class ) ; exception . expectMessage ( "minDistance must be greater or equal to 0" ) ; new LocationRequestOptions . Builder ( ) . setMinDistance ( - 1 ) ; }
Test creating a new request options throws exceptions for invalid
 minDistance.
Test creating a new request options throws exceptions for invalid minDistance .