Search in sources :

Example 6 with GeometryOperator

use of org.codice.alliance.libs.klv.GeometryOperator in project alliance by codice.

the class LineStringMetacardUpdaterTest method testGetGeometryFunction.

@Test
public void testGetGeometryFunction() {
    GeometryOperator function = mock(GeometryOperator.class);
    lineStringMetacardUpdater = new LineStringMetacardUpdater(attrName, function);
    assertThat(lineStringMetacardUpdater.getGeometryOperator(), is(function));
}
Also used : GeometryOperator(org.codice.alliance.libs.klv.GeometryOperator) Test(org.junit.Test)

Example 7 with GeometryOperator

use of org.codice.alliance.libs.klv.GeometryOperator in project alliance by codice.

the class LocationMetacardUpdaterTest method testGetGeometryFunction.

@Test
public void testGetGeometryFunction() {
    GeometryOperator preUnionGeometryOperator = mock(GeometryOperator.class);
    GeometryOperator postUnionGeometryOperator = mock(GeometryOperator.class);
    LocationMetacardUpdater updater = new LocationMetacardUpdater(preUnionGeometryOperator, postUnionGeometryOperator);
    assertThat(updater.getPreUnionGeometryOperator(), is(preUnionGeometryOperator));
    assertThat(updater.getPostUnionGeometryOperator(), is(postUnionGeometryOperator));
}
Also used : GeometryOperator(org.codice.alliance.libs.klv.GeometryOperator) Test(org.junit.Test)

Aggregations

GeometryOperator (org.codice.alliance.libs.klv.GeometryOperator)7 Test (org.junit.Test)6 GeometryFactory (com.vividsolutions.jts.geom.GeometryFactory)3 Metacard (ddf.catalog.data.Metacard)3 AttributeImpl (ddf.catalog.data.impl.AttributeImpl)3 Context (org.codice.alliance.video.stream.mpegts.Context)3 Geometry (com.vividsolutions.jts.geom.Geometry)2 WKTReader (com.vividsolutions.jts.io.WKTReader)2 CatalogFramework (ddf.catalog.CatalogFramework)1 CreateStorageRequest (ddf.catalog.content.operation.CreateStorageRequest)1 AttributeDescriptor (ddf.catalog.data.AttributeDescriptor)1 MetacardType (ddf.catalog.data.MetacardType)1 CreateRequest (ddf.catalog.operation.CreateRequest)1 CreateResponse (ddf.catalog.operation.CreateResponse)1 Update (ddf.catalog.operation.Update)1 UpdateResponse (ddf.catalog.operation.UpdateResponse)1 Subject (ddf.security.Subject)1 File (java.io.File)1 URI (java.net.URI)1 GeometryOperatorList (org.codice.alliance.libs.klv.GeometryOperatorList)1