mil.dod.th.ose.core/test/mil/dod/th/ose/core/types/factory/TestSpatialTypesFactory.java
@Test
    public void testNewCoordWithAltAndEllipse()
    {
        Coordinates coords = SpatialTypesFactory.newCoordinates(5.0, 6.0, 9.0, 
                SpatialTypesFactory.newEllipse(1.0, 2.0, 3.0));
        assertThat(coords.getLongitude().getValue(), closeTo(5.0, 0.00001));
        assertThat(coords.getLatitude().getValue(), closeTo(6.0, 0.00001));
        assertThat(coords.getAltitude().getValue(), closeTo(9.0, 0.00001));
        assertThat(coords.getEllipseRegion().getSemiMajorAxis().getValue(), closeTo(1.0, 0.00001));
        assertThat(coords.getEllipseRegion().getSemiMinorAxis().getValue(), closeTo(2.0, 0.00001));
        assertThat(coords.getEllipseRegion().getRotation().getValue(), closeTo(3.0, 0.00001));
    }
/**
     * Verify coordinates is created with correct longitude, latitude, altitude and ellipse.
     */
Verify coordinates is created with correct longitude, latitude, altitude and ellipse.
Verify coordinates is created with correct longitude latitude altitude and ellipse .
@Test
    public void testNewCoordWithAltAndEllipse()
    {
        Coordinates coords = SpatialTypesFactory.newCoordinates(5.0, 6.0, 9.0, 
                SpatialTypesFactory.newEllipse(1.0, 2.0, 3.0));
        assertThat(coords.getLongitude().getValue(), closeTo(5.0, 0.00001));
        assertThat(coords.getLatitude().getValue(), closeTo(6.0, 0.00001));
        assertThat(coords.getAltitude().getValue(), closeTo(9.0, 0.00001));
        assertThat(coords.getEllipseRegion().getSemiMajorAxis().getValue(), closeTo(1.0, 0.00001));
        assertThat(coords.getEllipseRegion().getSemiMinorAxis().getValue(), closeTo(2.0, 0.00001));
        assertThat(coords.getEllipseRegion().getRotation().getValue(), closeTo(3.0, 0.00001));
    }
@ Test public void testNewCoordWithAltAndEllipse ( ) { Coordinates coords = SpatialTypesFactory . newCoordinates ( 5.0 , 6.0 , 9.0 , SpatialTypesFactory . newEllipse ( 1.0 , 2.0 , 3.0 ) ) ; assertThat ( coords . getLongitude ( ) . getValue ( ) , closeTo ( 5.0 , 0.00001 ) ) ; assertThat ( coords . getLatitude ( ) . getValue ( ) , closeTo ( 6.0 , 0.00001 ) ) ; assertThat ( coords . getAltitude ( ) . getValue ( ) , closeTo ( 9.0 , 0.00001 ) ) ; assertThat ( coords . getEllipseRegion ( ) . getSemiMajorAxis ( ) . getValue ( ) , closeTo ( 1.0 , 0.00001 ) ) ; assertThat ( coords . getEllipseRegion ( ) . getSemiMinorAxis ( ) . getValue ( ) , closeTo ( 2.0 , 0.00001 ) ) ; assertThat ( coords . getEllipseRegion ( ) . getRotation ( ) . getValue ( ) , closeTo ( 3.0 , 0.00001 ) ) ; }
Verify coordinates is created with correct longitude, latitude, altitude and ellipse.
Verify coordinates is created with correct longitude latitude altitude and ellipse .