Package org.geoserver.kml

Examples of org.geoserver.kml.FeatureTimeTemplate


   
    @Test
    public void testEmpty() throws Exception {
        setupTemplate(MockData.PRIMITIVEGEOFEATURE,"time.ftl","");
       
        FeatureTimeTemplate template = new FeatureTimeTemplate();
        String[] result = template.execute( feature );
       
        assertEquals( 0, result.length );
    }
View Full Code Here


   
    @Test
    public void testTimestamp() throws Exception {
        setupTemplate(MockData.PRIMITIVEGEOFEATURE,"time.ftl","${dateProperty.value}");
       
        FeatureTimeTemplate template = new FeatureTimeTemplate();
        String[] result = template.execute( feature );
       
        assertEquals( 1, result.length );
        assertNotNull( result[0] );
    }
View Full Code Here

    }
   
    @Test
    public void testTimeSpan() throws Exception {
        setupTemplate(MockData.PRIMITIVEGEOFEATURE,"time.ftl","${dateProperty.value}||${dateProperty.value}");
        FeatureTimeTemplate template = new FeatureTimeTemplate();
        String[] result = template.execute( feature );
       
        assertEquals( 2, result.length );
        assertNotNull( result[0] );
        assertNotNull( result[1] );
    }
View Full Code Here

    }
   
    @Test
    public void testTimeSpanOpenEndedStart() throws Exception {
        setupTemplate(MockData.PRIMITIVEGEOFEATURE,"time.ftl","||${dateProperty.value}");
        FeatureTimeTemplate template = new FeatureTimeTemplate();
        String[] result = template.execute( feature );
       
        assertEquals( 2, result.length );
        assertNull( result[0] );
        assertNotNull( result[1] );
    }
View Full Code Here

    }
   
    @Test
    public void testTimeSpanOpenEndedEnd() throws Exception {
        setupTemplate(MockData.PRIMITIVEGEOFEATURE,"time.ftl","${dateProperty.value}||");
        FeatureTimeTemplate template = new FeatureTimeTemplate();
        String[] result = template.execute( feature );
       
        assertEquals( 2, result.length );
        assertNotNull( result[0] );
        assertNull( result[1] );
    }
View Full Code Here

TOP

Related Classes of org.geoserver.kml.FeatureTimeTemplate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.