urbanairship-core/src/test/java/com/urbanairship/location/LocationRequestOptionsTest.java
@Test
    public void testLocationRequestOptionInvalidPriority() {
        exception.expect(IllegalArgumentException.class);
        exception.expectMessage("Priority can only be either " +
                "PRIORITY_HIGH_ACCURACY, PRIORITY_BALANCED_POWER_ACCURACY, " +
                "PRIORITY_LOW_POWER, or PRIORITY_NO_POWER");
        new LocationRequestOptions.Builder().setPriority(-1);
    }
/**
     * Test creating a new request options throws exceptions for invalid
     * priority.
     */
Test creating a new request options throws exceptions for invalid
priority.
Test creating a new request options throws exceptions for invalid priority .
@Test
    public void testLocationRequestOptionInvalidPriority() {
        exception.expect(IllegalArgumentException.class);
        exception.expectMessage("Priority can only be either " +
                "PRIORITY_HIGH_ACCURACY, PRIORITY_BALANCED_POWER_ACCURACY, " +
                "PRIORITY_LOW_POWER, or PRIORITY_NO_POWER");
        new LocationRequestOptions.Builder().setPriority(-1);
    }
@ Test public void testLocationRequestOptionInvalidPriority ( ) { exception . expect ( IllegalArgumentException . class ) ; exception . expectMessage ( "Priority can only be either " + "PRIORITY_HIGH_ACCURACY, PRIORITY_BALANCED_POWER_ACCURACY, " + "PRIORITY_LOW_POWER, or PRIORITY_NO_POWER" ) ; new LocationRequestOptions . Builder ( ) . setPriority ( - 1 ) ; }
Test creating a new request options throws exceptions for invalid
 priority.
Test creating a new request options throws exceptions for invalid priority .