urbanairship-core/src/test/java/com/urbanairship/location/LocationRequestOptionsTest.java
@Test
    public void testParseJson() throws JsonException {
        LocationRequestOptions original = new LocationRequestOptions.Builder()
                .setPriority(LocationRequestOptions.PRIORITY_LOW_POWER)
                .setMinDistance(44.4f)
                .setMinTime(1111, TimeUnit.MILLISECONDS)
                .create();
        
        LocationRequestOptions fromJson = LocationRequestOptions.parseJson(original.toJsonValue().toString());
        assertEquals(original, fromJson);
    }
/**
     * Test creating a LocationRequestOptions from a JsonString.
     */
Test creating a LocationRequestOptions from a JsonString.
Test creating a LocationRequestOptions from a JsonString .
@Test
    public void testParseJson() throws JsonException {
        LocationRequestOptions original = new LocationRequestOptions.Builder()
                .setPriority(LocationRequestOptions.PRIORITY_LOW_POWER)
                .setMinDistance(44.4f)
                .setMinTime(1111, TimeUnit.MILLISECONDS)
                .create();
        LocationRequestOptions fromJson = LocationRequestOptions.parseJson(original.toJsonValue().toString());
        assertEquals(original, fromJson);
    }
@ Test public void testParseJson ( ) throws JsonException { LocationRequestOptions original = new LocationRequestOptions . Builder ( ) . setPriority ( LocationRequestOptions . PRIORITY_LOW_POWER ) . setMinDistance ( 44.4f ) . setMinTime ( 1111 , TimeUnit . MILLISECONDS ) . create ( ) ; LocationRequestOptions fromJson = LocationRequestOptions . parseJson ( original . toJsonValue ( ) . toString ( ) ) ; assertEquals ( original , fromJson ) ; }
Test creating a LocationRequestOptions from a JsonString.
Test creating a LocationRequestOptions from a JsonString .