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