src/test/java/de/blau/android/resources/EliTest.java
/**
     * Parse a sample ELI geojson config with meta
     */
Parse a sample ELI geojson config with meta
Parse a sample ELI geojson config with meta
@Test
    public void parseWithMeta() {
        EliFeatureCollection fc = EliFeatureCollection.fromJson(stringFromResource("/imagery_test_with_meta.geojson"));
        assertEquals(5, fc.features().size());
        Version formatVersion = fc.formatVersion();
        assertNotNull(formatVersion);
        assertEquals("1.0.0", formatVersion.toString());
        assertEquals("2020-12-06 10:02:10", fc.generated());
    }
@ Test public void parseWithMeta ( ) { EliFeatureCollection fc = EliFeatureCollection . fromJson ( stringFromResource ( "/imagery_test_with_meta.geojson" ) ) ; assertEquals ( 5 , fc . features ( ) . size ( ) ) ; Version formatVersion = fc . formatVersion ( ) ; assertNotNull ( formatVersion ) ; assertEquals ( "1.0.0" , formatVersion . toString ( ) ) ; assertEquals ( "2020-12-06 10:02:10" , fc . generated ( ) ) ; }
Parse a sample ELI geojson config with meta
Parse a sample ELI geojson config with meta