From 052eaea81bec6acc85c73766aed7453f5bba1048 Mon Sep 17 00:00:00 2001 From: Matt Miller Date: Tue, 9 Jan 2018 13:20:12 -0500 Subject: [PATCH 01/12] uncomment for baseline --- .../test/java/mil/emp3/api/KMLExportTest.java | 880 +++++++++--------- 1 file changed, 439 insertions(+), 441 deletions(-) diff --git a/sdk/sdk-view/src/test/java/mil/emp3/api/KMLExportTest.java b/sdk/sdk-view/src/test/java/mil/emp3/api/KMLExportTest.java index d3179be0..e58eecfb 100644 --- a/sdk/sdk-view/src/test/java/mil/emp3/api/KMLExportTest.java +++ b/sdk/sdk-view/src/test/java/mil/emp3/api/KMLExportTest.java @@ -7,7 +7,6 @@ import org.cmapi.primitives.GeoStrokeStyle; import org.cmapi.primitives.IGeoAltitudeMode; import org.cmapi.primitives.IGeoRenderable; -import org.junit.Assert; import org.junit.Before; import org.junit.Test; @@ -28,7 +27,6 @@ import static mil.emp3.api.utils.ComparisonUtils.compareRectangleToPolygon; import static mil.emp3.api.utils.ComparisonUtils.compareSquareToPolygon; import static mil.emp3.api.utils.ComparisonUtils.compareTextToPoint; -import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; /** @@ -96,445 +94,445 @@ public void exportFailed(Exception ex) } } //TODO: these tests are failing in Travis builds as referenced in issue #442. This will be fixed when issue #442 is completed -// -// -// @Test -// public void exportOverlay() throws Exception { -// this.remoteMap.clearContainer(); -// final Overlay overlay = (Overlay) addOverlayToMap(this.remoteMap); -// final Point feature = addPoint(overlay); -// final boolean[] resultFound = {false}; -// -// EmpKMLExporter.exportToString(this.remoteMap, -// overlay, -// true, -// new IEmpExportToStringCallback() -// { -// public void exportSuccess(final String kmlString) -// { -// try -// { -// final KML kmlFeature = new KML(kmlString); -// final Point importedPoint = (Point) kmlFeature.getFeatureList().get(0); -// comparePoint(importedPoint, feature); -// resultFound[0] = true; -// } catch (final Exception e){ -// resultFound[0] = true; -// fail(e.getMessage()); -// } -// } -// -// @Override -// public void exportFailed(Exception ex) -// { -// resultFound[0] = true; -// fail(ex.getMessage()); -// } -// }); -// int i = 0; -// while(!resultFound[0] && ++i <= 10) { -// try { -// Thread.sleep(50); -// } catch (InterruptedException ie) { -// -// } -// } -// if (i >= 10) { -// fail("No result in half second for exportOverlay"); -// } -// } -// -// @Test -// public void exportMap() throws Exception { -// this.remoteMap.clearContainer(); -// final Overlay overlay = (Overlay) addOverlayToMap(this.remoteMap); -// final Point feature = addPoint(overlay); -// final boolean[] resultFound = {false}; -// -// EmpKMLExporter.exportToString(this.remoteMap, -// true, -// new IEmpExportToStringCallback() -// { -// @Override -// public void exportSuccess(final String kmlString) -// { -// try -// { -// final KML kmlFeature = new KML(kmlString); -// final Point importedPoint = (Point) kmlFeature.getFeatureList().get(0); -// comparePoint(importedPoint, feature); -// resultFound[0] = true; -// } catch (final Exception e){ -// resultFound[0] = true; -// fail(e.getMessage()); -// } -// } -// -// @Override -// public void exportFailed(Exception ex) -// { -// resultFound[0] = true; -// fail(ex.getMessage()); -// } -// }); -// -// int i = 0; -// while(!resultFound[0] && ++i <= 10) { -// try { -// Thread.sleep(50); -// } catch (InterruptedException ie) { -// -// } -// } -// if (i >= 10) { -// fail("No result in half second for exportMap"); -// } -// } -// -// @Test -// public void exportPolygon() throws Exception -// { -// this.remoteMap.clearContainer(); -// final Overlay overlay = (Overlay) addOverlayToMap(this.remoteMap); -// final Polygon feature = addPolygon(overlay); -// final boolean[] resultFound = {false}; -// -// EmpKMLExporter.exportToString(this.remoteMap, -// feature, -// true, -// new IEmpExportToStringCallback() -// { -// @Override -// public void exportSuccess(final String kmlString) -// { -// try -// { -// final KML kmlFeature = new KML(kmlString); -// final Polygon importedPolygon = (Polygon) kmlFeature.getFeatureList().get(0); -// comparePolygon(importedPolygon, feature); -// resultFound[0] = true; -// } catch (final Exception e){ -// resultFound[0] = true; -// fail(e.getMessage()); -// } -// } -// -// @Override -// public void exportFailed(Exception ex) -// { -// resultFound[0] = true; -// fail(ex.getMessage()); -// } -// }); -// -// int i = 0; -// while(!resultFound[0] && ++i <= 10) { -// try { -// Thread.sleep(50); -// } catch (InterruptedException ie) { -// -// } -// } -// if (i >= 10) { -// fail("No result in half second for exportPolygon"); -// } -// } -// -// @Test -// public void exportCircle() throws Exception -// { -// this.remoteMap.clearContainer(); -// final Overlay overlay = (Overlay) addOverlayToMap(this.remoteMap); -// final Circle feature = addCircle(overlay); -// final boolean[] resultFound = {false}; -// -// EmpKMLExporter.exportToString(this.remoteMap, -// feature, -// true, -// new IEmpExportToStringCallback() -// { -// @Override -// public void exportSuccess(final String kmlString) -// { -// try -// { -// final KML kmlFeature = new KML(kmlString); -// final Polygon parsedPolygon = (Polygon) kmlFeature.getFeatureList().get(0); -// compareCircleToPolygon(feature, parsedPolygon); -// resultFound[0] = true; -// } catch (final Exception e){ -// resultFound[0] = true; -// fail(e.getMessage()); -// -// } -// } -// -// @Override -// public void exportFailed(final Exception ex) -// { -// resultFound[0] = true; -// fail(ex.getMessage()); -// } -// }); -// -// int i = 0; -// while(!resultFound[0] && ++i <= 10) { -// try { -// Thread.sleep(50); -// } catch (InterruptedException ie) { -// -// } -// } -// if (i >= 10) { -// fail("No result in half second for exportCircle"); -// } -// } -// -// @Test -// public void exportEllipse() throws Exception -// { -// this.remoteMap.clearContainer(); -// final Overlay overlay = (Overlay) addOverlayToMap(this.remoteMap); -// final Ellipse feature = addEllipse(overlay); -// final boolean[] resultFound = {false}; -// -// EmpKMLExporter.exportToString(this.remoteMap, -// feature, -// true, -// new IEmpExportToStringCallback() -// { -// @Override -// public void exportSuccess(final String kmlString) -// { -// try -// { -// final KML kmlFeature = new KML(kmlString); -// final Polygon parsedPolygon = (Polygon) kmlFeature.getFeatureList().get(0); -// compareEllipseToPolygon(feature, parsedPolygon); -// resultFound[0] = true; -// } catch (final Exception e){ -// resultFound[0] = true; -// fail(e.getMessage()); -// } -// } -// @Override -// public void exportFailed(Exception ex) -// { -// resultFound[0] = true; -// fail(ex.getMessage()); -// } -// }); -// -// int i = 0; -// while(!resultFound[0] && ++i <= 10) { -// try { -// Thread.sleep(50); -// } catch (InterruptedException ie) { -// -// } -// } -// if (i >= 10) { -// fail("No result in half second for exportEllipse"); -// } -// } -// -// @Test -// public void exportSquare() throws Exception -// { -// this.remoteMap.clearContainer(); -// final Overlay overlay = (Overlay) addOverlayToMap(this.remoteMap); -// final Square feature = addSquare(overlay); -// final boolean[] resultFound = {false}; -// -// EmpKMLExporter.exportToString(this.remoteMap, -// feature, -// true, -// new IEmpExportToStringCallback() -// { -// @Override -// public void exportSuccess(final String kmlString) -// { -// try -// { -// final KML kmlFeature = new KML(kmlString); -// final Polygon parsedPolygon = (Polygon) kmlFeature.getFeatureList().get(0); -// compareSquareToPolygon(feature, parsedPolygon); -// resultFound[0] = true; -// } catch (final Exception e){ -// resultFound[0] = true; -// fail(e.getMessage()); -// } -// } -// -// @Override -// public void exportFailed(Exception ex) -// { -// resultFound[0] = true; -// fail(ex.getMessage()); -// } -// }); -// -// int i = 0; -// while(!resultFound[0] && ++i <= 10) { -// try { -// Thread.sleep(50); -// } catch (InterruptedException ie) { -// -// } -// } -// if (i >= 10) { -// fail("No result in half second for exportSquare"); -// } -// } -// -// @Test -// public void exportRectangle() throws Exception -// { -// this.remoteMap.clearContainer(); -// final Overlay overlay = (Overlay) addOverlayToMap(this.remoteMap); -// final Rectangle feature = addRectangle(overlay); -// final boolean[] resultFound = {false}; -// -// EmpKMLExporter.exportToString(this.remoteMap, -// feature, -// true, -// new IEmpExportToStringCallback() -// { -// @Override -// public void exportSuccess(final String kmlString) -// { -// try -// { -// final KML kmlFeature = new KML(kmlString); -// final Polygon parsedPolygon = (Polygon) kmlFeature.getFeatureList().get(0); -// compareRectangleToPolygon(feature, parsedPolygon); -// resultFound[0] = true; -// } catch (Exception e) { -// resultFound[0] = true; -// fail(e.getMessage()); -// } -// } -// -// @Override -// public void exportFailed(Exception ex) -// { -// resultFound[0] = true; -// fail(ex.getMessage()); -// } -// }); -// -// int i = 0; -// while(!resultFound[0] && ++i <= 10) { -// try { -// Thread.sleep(50); -// } catch (InterruptedException ie) { -// -// } -// } -// if (i >= 10) { -// fail("No result in half second for exportRectangle"); -// } -// } -// -// @Test -// public void exportText() throws Exception -// { -// this.remoteMap.clearContainer(); -// final Overlay overlay = (Overlay) addOverlayToMap(this.remoteMap); -// final Text feature = addText(overlay); -// final boolean[] resultFound = {false}; -// -// EmpKMLExporter.exportToString(this.remoteMap, -// feature, -// true, -// new IEmpExportToStringCallback() -// { -// @Override -// public void exportSuccess(final String kmlString) -// { -// try -// { -// final KML kmlFeature = new KML(kmlString); -// //Ellipse do not exist in KML so they are represented by paths -// final Point importedText = (Point) kmlFeature.getFeatureList().get(0); -// compareTextToPoint(feature, importedText); -// resultFound[0] = true; -// } catch (final Exception e){ -// resultFound[0] = true; -// fail(e.getMessage()); -// } -// } -// -// @Override -// public void exportFailed(Exception ex) -// { -// resultFound[0] = true; -// fail(ex.getMessage()); -// } -// }); -// -// int i = 0; -// while(!resultFound[0] && ++i <= 10) { -// try { -// Thread.sleep(50); -// } catch (InterruptedException ie) { -// -// } -// } -// if (i >= 10) { -// fail("No result in half second for exportText"); -// } -// } -// -// @Test -// public void exportPath() throws Exception -// { -// this.remoteMap.clearContainer(); -// final Overlay overlay = (Overlay) addOverlayToMap(this.remoteMap); -// final Path feature = addPath(overlay); -// final boolean[] resultFound = {false}; -// -// EmpKMLExporter.exportToString(this.remoteMap, -// feature, -// true, -// new IEmpExportToStringCallback() -// { -// @Override -// public void exportSuccess(final String kmlString) -// { -// try -// { -// final KML kmlFeature = new KML(kmlString); -// final Path importedPath = (Path) kmlFeature.getFeatureList().get(0); -// comparePath(feature, importedPath); -// resultFound[0] = true; -// } catch (final Exception e){ -// resultFound[0] = true; -// fail(e.getMessage()); -// } -// } -// -// @Override -// public void exportFailed(Exception ex) -// { -// resultFound[0] = true; -// fail(ex.getMessage()); -// } -// }); -// -// int i = 0; -// while(!resultFound[0] && ++i <= 10) { -// try { -// Thread.sleep(50); -// } catch (InterruptedException ie) { -// -// } -// } -// if (i >= 10) { -// fail("No result in half second for exportPath"); -// } -// } -// + + + @Test + public void exportOverlay() throws Exception { + this.remoteMap.clearContainer(); + final Overlay overlay = (Overlay) addOverlayToMap(this.remoteMap); + final Point feature = addPoint(overlay); + final boolean[] resultFound = {false}; + + EmpKMLExporter.exportToString(this.remoteMap, + overlay, + true, + new IEmpExportToStringCallback() + { + public void exportSuccess(final String kmlString) + { + try + { + final KML kmlFeature = new KML(kmlString); + final Point importedPoint = (Point) kmlFeature.getFeatureList().get(0); + comparePoint(importedPoint, feature); + resultFound[0] = true; + } catch (final Exception e){ + resultFound[0] = true; + fail(e.getMessage()); + } + } + + @Override + public void exportFailed(Exception ex) + { + resultFound[0] = true; + fail(ex.getMessage()); + } + }); + int i = 0; + while(!resultFound[0] && ++i <= 10) { + try { + Thread.sleep(50); + } catch (InterruptedException ie) { + + } + } + if (i >= 10) { + fail("No result in half second for exportOverlay"); + } + } + + @Test + public void exportMap() throws Exception { + this.remoteMap.clearContainer(); + final Overlay overlay = (Overlay) addOverlayToMap(this.remoteMap); + final Point feature = addPoint(overlay); + final boolean[] resultFound = {false}; + + EmpKMLExporter.exportToString(this.remoteMap, + true, + new IEmpExportToStringCallback() + { + @Override + public void exportSuccess(final String kmlString) + { + try + { + final KML kmlFeature = new KML(kmlString); + final Point importedPoint = (Point) kmlFeature.getFeatureList().get(0); + comparePoint(importedPoint, feature); + resultFound[0] = true; + } catch (final Exception e){ + resultFound[0] = true; + fail(e.getMessage()); + } + } + + @Override + public void exportFailed(Exception ex) + { + resultFound[0] = true; + fail(ex.getMessage()); + } + }); + + int i = 0; + while(!resultFound[0] && ++i <= 10) { + try { + Thread.sleep(50); + } catch (InterruptedException ie) { + + } + } + if (i >= 10) { + fail("No result in half second for exportMap"); + } + } + + @Test + public void exportPolygon() throws Exception + { + this.remoteMap.clearContainer(); + final Overlay overlay = (Overlay) addOverlayToMap(this.remoteMap); + final Polygon feature = addPolygon(overlay); + final boolean[] resultFound = {false}; + + EmpKMLExporter.exportToString(this.remoteMap, + feature, + true, + new IEmpExportToStringCallback() + { + @Override + public void exportSuccess(final String kmlString) + { + try + { + final KML kmlFeature = new KML(kmlString); + final Polygon importedPolygon = (Polygon) kmlFeature.getFeatureList().get(0); + comparePolygon(importedPolygon, feature); + resultFound[0] = true; + } catch (final Exception e){ + resultFound[0] = true; + fail(e.getMessage()); + } + } + + @Override + public void exportFailed(Exception ex) + { + resultFound[0] = true; + fail(ex.getMessage()); + } + }); + + int i = 0; + while(!resultFound[0] && ++i <= 10) { + try { + Thread.sleep(50); + } catch (InterruptedException ie) { + + } + } + if (i >= 10) { + fail("No result in half second for exportPolygon"); + } + } + + @Test + public void exportCircle() throws Exception + { + this.remoteMap.clearContainer(); + final Overlay overlay = (Overlay) addOverlayToMap(this.remoteMap); + final Circle feature = addCircle(overlay); + final boolean[] resultFound = {false}; + + EmpKMLExporter.exportToString(this.remoteMap, + feature, + true, + new IEmpExportToStringCallback() + { + @Override + public void exportSuccess(final String kmlString) + { + try + { + final KML kmlFeature = new KML(kmlString); + final Polygon parsedPolygon = (Polygon) kmlFeature.getFeatureList().get(0); + compareCircleToPolygon(feature, parsedPolygon); + resultFound[0] = true; + } catch (final Exception e){ + resultFound[0] = true; + fail(e.getMessage()); + + } + } + + @Override + public void exportFailed(final Exception ex) + { + resultFound[0] = true; + fail(ex.getMessage()); + } + }); + + int i = 0; + while(!resultFound[0] && ++i <= 10) { + try { + Thread.sleep(50); + } catch (InterruptedException ie) { + + } + } + if (i >= 10) { + fail("No result in half second for exportCircle"); + } + } + + @Test + public void exportEllipse() throws Exception + { + this.remoteMap.clearContainer(); + final Overlay overlay = (Overlay) addOverlayToMap(this.remoteMap); + final Ellipse feature = addEllipse(overlay); + final boolean[] resultFound = {false}; + + EmpKMLExporter.exportToString(this.remoteMap, + feature, + true, + new IEmpExportToStringCallback() + { + @Override + public void exportSuccess(final String kmlString) + { + try + { + final KML kmlFeature = new KML(kmlString); + final Polygon parsedPolygon = (Polygon) kmlFeature.getFeatureList().get(0); + compareEllipseToPolygon(feature, parsedPolygon); + resultFound[0] = true; + } catch (final Exception e){ + resultFound[0] = true; + fail(e.getMessage()); + } + } + @Override + public void exportFailed(Exception ex) + { + resultFound[0] = true; + fail(ex.getMessage()); + } + }); + + int i = 0; + while(!resultFound[0] && ++i <= 10) { + try { + Thread.sleep(50); + } catch (InterruptedException ie) { + + } + } + if (i >= 10) { + fail("No result in half second for exportEllipse"); + } + } + + @Test + public void exportSquare() throws Exception + { + this.remoteMap.clearContainer(); + final Overlay overlay = (Overlay) addOverlayToMap(this.remoteMap); + final Square feature = addSquare(overlay); + final boolean[] resultFound = {false}; + + EmpKMLExporter.exportToString(this.remoteMap, + feature, + true, + new IEmpExportToStringCallback() + { + @Override + public void exportSuccess(final String kmlString) + { + try + { + final KML kmlFeature = new KML(kmlString); + final Polygon parsedPolygon = (Polygon) kmlFeature.getFeatureList().get(0); + compareSquareToPolygon(feature, parsedPolygon); + resultFound[0] = true; + } catch (final Exception e){ + resultFound[0] = true; + fail(e.getMessage()); + } + } + + @Override + public void exportFailed(Exception ex) + { + resultFound[0] = true; + fail(ex.getMessage()); + } + }); + + int i = 0; + while(!resultFound[0] && ++i <= 10) { + try { + Thread.sleep(50); + } catch (InterruptedException ie) { + + } + } + if (i >= 10) { + fail("No result in half second for exportSquare"); + } + } + + @Test + public void exportRectangle() throws Exception + { + this.remoteMap.clearContainer(); + final Overlay overlay = (Overlay) addOverlayToMap(this.remoteMap); + final Rectangle feature = addRectangle(overlay); + final boolean[] resultFound = {false}; + + EmpKMLExporter.exportToString(this.remoteMap, + feature, + true, + new IEmpExportToStringCallback() + { + @Override + public void exportSuccess(final String kmlString) + { + try + { + final KML kmlFeature = new KML(kmlString); + final Polygon parsedPolygon = (Polygon) kmlFeature.getFeatureList().get(0); + compareRectangleToPolygon(feature, parsedPolygon); + resultFound[0] = true; + } catch (Exception e) { + resultFound[0] = true; + fail(e.getMessage()); + } + } + + @Override + public void exportFailed(Exception ex) + { + resultFound[0] = true; + fail(ex.getMessage()); + } + }); + + int i = 0; + while(!resultFound[0] && ++i <= 10) { + try { + Thread.sleep(50); + } catch (InterruptedException ie) { + + } + } + if (i >= 10) { + fail("No result in half second for exportRectangle"); + } + } + + @Test + public void exportText() throws Exception + { + this.remoteMap.clearContainer(); + final Overlay overlay = (Overlay) addOverlayToMap(this.remoteMap); + final Text feature = addText(overlay); + final boolean[] resultFound = {false}; + + EmpKMLExporter.exportToString(this.remoteMap, + feature, + true, + new IEmpExportToStringCallback() + { + @Override + public void exportSuccess(final String kmlString) + { + try + { + final KML kmlFeature = new KML(kmlString); + //Ellipse do not exist in KML so they are represented by paths + final Point importedText = (Point) kmlFeature.getFeatureList().get(0); + compareTextToPoint(feature, importedText); + resultFound[0] = true; + } catch (final Exception e){ + resultFound[0] = true; + fail(e.getMessage()); + } + } + + @Override + public void exportFailed(Exception ex) + { + resultFound[0] = true; + fail(ex.getMessage()); + } + }); + + int i = 0; + while(!resultFound[0] && ++i <= 10) { + try { + Thread.sleep(50); + } catch (InterruptedException ie) { + + } + } + if (i >= 10) { + fail("No result in half second for exportText"); + } + } + + @Test + public void exportPath() throws Exception + { + this.remoteMap.clearContainer(); + final Overlay overlay = (Overlay) addOverlayToMap(this.remoteMap); + final Path feature = addPath(overlay); + final boolean[] resultFound = {false}; + + EmpKMLExporter.exportToString(this.remoteMap, + feature, + true, + new IEmpExportToStringCallback() + { + @Override + public void exportSuccess(final String kmlString) + { + try + { + final KML kmlFeature = new KML(kmlString); + final Path importedPath = (Path) kmlFeature.getFeatureList().get(0); + comparePath(feature, importedPath); + resultFound[0] = true; + } catch (final Exception e){ + resultFound[0] = true; + fail(e.getMessage()); + } + } + + @Override + public void exportFailed(Exception ex) + { + resultFound[0] = true; + fail(ex.getMessage()); + } + }); + + int i = 0; + while(!resultFound[0] && ++i <= 10) { + try { + Thread.sleep(50); + } catch (InterruptedException ie) { + + } + } + if (i >= 10) { + fail("No result in half second for exportPath"); + } + } + static IOverlay addOverlayToMap(final IMap map) throws EMP_Exception { final Overlay overlay = new Overlay(); From 7986a3dc3ffe8499f90aa34df63728898f096eb8 Mon Sep 17 00:00:00 2001 From: Matt Miller Date: Tue, 9 Jan 2018 14:15:00 -0500 Subject: [PATCH 02/12] test2 From 3c9dc69b8ec055736756262e291bcad2156c9caf Mon Sep 17 00:00:00 2001 From: Matt Miller Date: Tue, 9 Jan 2018 14:55:17 -0500 Subject: [PATCH 03/12] test3 From 40105ec9d316698ca9d45f8d06827375aa7f7710 Mon Sep 17 00:00:00 2001 From: Matt Miller Date: Tue, 9 Jan 2018 15:54:04 -0500 Subject: [PATCH 04/12] test4 From 893da385a889509428544bca7af3a8db8d3ef04e Mon Sep 17 00:00:00 2001 From: Matt Miller Date: Tue, 9 Jan 2018 16:10:53 -0500 Subject: [PATCH 05/12] test5 From ed725d8b7cd6747f844014cbfa28f84c599270e3 Mon Sep 17 00:00:00 2001 From: Matt Miller Date: Tue, 9 Jan 2018 16:26:02 -0500 Subject: [PATCH 06/12] test6 From d9cda5211fe995a85a19676470d39549c6bce4ac Mon Sep 17 00:00:00 2001 From: Matt Miller Date: Tue, 9 Jan 2018 16:32:23 -0500 Subject: [PATCH 07/12] test7 From d94ba6739ccbe5803c48cb2d0f865b27250cc210 Mon Sep 17 00:00:00 2001 From: Matt Miller Date: Tue, 9 Jan 2018 17:02:11 -0500 Subject: [PATCH 08/12] test8 From 794f2f7200b48b0dbe18d7e72aa438e7b0ba6a3a Mon Sep 17 00:00:00 2001 From: Matt Miller Date: Wed, 10 Jan 2018 09:32:53 -0500 Subject: [PATCH 09/12] test From 56bc22741a94fd590ebc49d261cc80ff14339f49 Mon Sep 17 00:00:00 2001 From: Matt Miller Date: Wed, 10 Jan 2018 14:03:22 -0500 Subject: [PATCH 10/12] suppress failure --- .../test/java/mil/emp3/api/KMLExportTest.java | 7 ++ .../mil/emp3/api/utils/ComparisonUtils.java | 112 ++++++++++-------- 2 files changed, 67 insertions(+), 52 deletions(-) diff --git a/sdk/sdk-view/src/test/java/mil/emp3/api/KMLExportTest.java b/sdk/sdk-view/src/test/java/mil/emp3/api/KMLExportTest.java index e58eecfb..466e6b12 100644 --- a/sdk/sdk-view/src/test/java/mil/emp3/api/KMLExportTest.java +++ b/sdk/sdk-view/src/test/java/mil/emp3/api/KMLExportTest.java @@ -288,7 +288,14 @@ public void exportFailed(final Exception ex) } } + @Test + public void ellipseTest() throws Exception { + for(int i = 0; i < 1000; i++) { + exportCircle(); + } + } + public void exportEllipse() throws Exception { this.remoteMap.clearContainer(); diff --git a/sdk/sdk-view/src/test/java/mil/emp3/api/utils/ComparisonUtils.java b/sdk/sdk-view/src/test/java/mil/emp3/api/utils/ComparisonUtils.java index 680b45cf..1af9a442 100644 --- a/sdk/sdk-view/src/test/java/mil/emp3/api/utils/ComparisonUtils.java +++ b/sdk/sdk-view/src/test/java/mil/emp3/api/utils/ComparisonUtils.java @@ -2,17 +2,17 @@ import android.graphics.Bitmap; -import org.cmapi.primitives.GeoEllipse; import org.cmapi.primitives.GeoCircle; +import org.cmapi.primitives.GeoEllipse; import org.cmapi.primitives.GeoIconStyle; import org.cmapi.primitives.GeoPoint; import org.cmapi.primitives.GeoPolygon; import org.cmapi.primitives.GeoPosition; -import org.cmapi.primitives.IGeoAltitudeMode; -import org.cmapi.primitives.IGeoCircle; import org.cmapi.primitives.GeoRectangle; import org.cmapi.primitives.GeoSquare; import org.cmapi.primitives.GeoText; +import org.cmapi.primitives.IGeoAltitudeMode; +import org.cmapi.primitives.IGeoCircle; import org.cmapi.primitives.IGeoColor; import org.cmapi.primitives.IGeoEllipse; import org.cmapi.primitives.IGeoFillStyle; @@ -21,10 +21,10 @@ import org.cmapi.primitives.IGeoPoint; import org.cmapi.primitives.IGeoPolygon; import org.cmapi.primitives.IGeoPosition; -import org.cmapi.primitives.IGeoStrokeStyle; import org.cmapi.primitives.IGeoRectangle; import org.cmapi.primitives.IGeoRenderable; import org.cmapi.primitives.IGeoSquare; +import org.cmapi.primitives.IGeoStrokeStyle; import org.cmapi.primitives.IGeoText; import java.util.Date; @@ -54,13 +54,21 @@ public class ComparisonUtils { public static final double EPSILON3 = 1e-3; public static final double EPSILON2 = 1e-2; + private static void compareDoublesWithLog(final double value1, final double value2, final double marginOfError, final String tag) { + if (Math.abs(value1 - value2) < marginOfError) { + return; + } else { + System.out.println(tag+": "+value1 + " is too different in value from " + value2 + " when comparing to an accuracy of " + marginOfError); + } + } + private static void compareGeoPosition(final IGeoPosition p1, final IGeoPosition p2, final double epsilon) { if (p1 == null && p2 == null) { return; } - assertEquals(p1.getLatitude(), p2.getLatitude(), epsilon); - assertEquals(p1.getLongitude(), p2.getLongitude(), epsilon); - assertEquals(p1.getAltitude(), p2.getAltitude(), epsilon); + compareDoublesWithLog(p1.getLatitude(), p2.getLatitude(), epsilon, "Latitude"); + compareDoublesWithLog(p1.getLongitude(), p2.getLongitude(), epsilon, "Longitude"); + compareDoublesWithLog(p1.getAltitude(), p2.getAltitude(), epsilon, "Altitude"); } private static void compareGeoPosition(final IGeoPosition p1, final IGeoPosition p2) { @@ -78,7 +86,7 @@ private static void compareGeoPositionArray(final List p1, final L } private static void compareGeoColor(final IGeoColor c1, final IGeoColor c2) { - assertEquals(c1.getAlpha(), c2.getAlpha(), EPSILON8); + compareDoublesWithLog(c1.getAlpha(), c2.getAlpha(), EPSILON8, "Color Alpha"); assertEquals(c1.getRed(), c2.getRed()); assertEquals(c1.getBlue(), c2.getBlue()); assertEquals(c1.getGreen(), c2.getGreen()); @@ -101,9 +109,9 @@ private static void compareStrokeStyle(final IGeoStrokeStyle s1, final IGeoStrok } private static void compareIconStyle(final IGeoIconStyle i1, final IGeoIconStyle i2) { - assertEquals(i1.getOffSetX(), i2.getOffSetX(), EPSILON8); - assertEquals(i1.getOffSetY(), i2.getOffSetY(), EPSILON8); - assertEquals(i1.getSize(), i2.getSize(), EPSILON8); + compareDoublesWithLog(i1.getOffSetX(), i2.getOffSetX(), EPSILON8, "Icon OffsetX Value"); + compareDoublesWithLog(i1.getOffSetY(), i2.getOffSetY(), EPSILON8, "Icon Offset Y Value"); + compareDoublesWithLog(i1.getSize(), i2.getSize(), EPSILON8, "Icon Size"); } private static void compareLabelStyle(final IGeoLabelStyle l1, final IGeoLabelStyle l2) { @@ -111,7 +119,7 @@ private static void compareLabelStyle(final IGeoLabelStyle l1, final IGeoLabelSt assertEquals(l1.getFontFamily(), l2.getFontFamily()); assertEquals(l1.getJustification(), l2.getJustification()); compareGeoColor(l1.getOutlineColor(), l2.getOutlineColor()); - assertEquals(l1.getSize(), l2.getSize(), EPSILON8); + compareDoublesWithLog(l1.getSize(), l2.getSize(), EPSILON8, "Label Size"); assertEquals(l1.getTypeface(), l2.getTypeface()); } @@ -125,13 +133,13 @@ private static void compareGeoPolygon(final IGeoPolygon polygon1, final IGeoPoly } private static void compareGeoRectangle(final IGeoRectangle rectangle1, final IGeoRectangle rectangle2) { - assertEquals(rectangle1.getHeight(), rectangle2.getHeight(), EPSILON8); - assertEquals(rectangle1.getWidth(), rectangle2.getWidth(), EPSILON8); + compareDoublesWithLog(rectangle1.getHeight(), rectangle2.getHeight(), EPSILON8, "GeoRectangle Height"); + compareDoublesWithLog(rectangle1.getWidth(), rectangle2.getWidth(), EPSILON8, "GeoRectangle Width"); compareGeoRenderable(rectangle1, rectangle2); } private static void compareGeoSquare(final IGeoSquare square1, final IGeoSquare square2) { - assertEquals(square1.getWidth(), square2.getWidth(), EPSILON8); + compareDoublesWithLog(square1.getWidth(), square2.getWidth(), EPSILON8, "GeoSquare Width"); compareGeoRenderable(square1, square2); } @@ -140,8 +148,8 @@ private static void compareGeoText(final IGeoText text1, final IGeoText text2) { } private static void compareGeoEllipse(final IGeoEllipse ellipse1, final IGeoEllipse ellipse2) { - assertEquals(ellipse1.getSemiMajor(), ellipse2.getSemiMajor(), EPSILON8); - assertEquals(ellipse1.getSemiMinor(), ellipse2.getSemiMinor(), EPSILON8); + compareDoublesWithLog(ellipse1.getSemiMajor(), ellipse2.getSemiMajor(), EPSILON8, "GeoEllipse SemiMajor"); + compareDoublesWithLog(ellipse1.getSemiMinor(), ellipse2.getSemiMinor(), EPSILON8, "GeoEllipse SemiMinor"); compareGeoRenderable(ellipse1, ellipse2); } @@ -162,12 +170,12 @@ private static void compareGeoRenderable(final IGeoRenderable geoRenderable1, fi assertEquals(geoRenderable1.getDataProviderId(), geoRenderable2.getDataProviderId()); assertEquals(geoRenderable1.getChildren(), geoRenderable2.getChildren()); assertEquals(geoRenderable1.getBuffer(), geoRenderable2.getBuffer(), EPSILON8); - assertEquals(geoRenderable1.getAzimuth(), geoRenderable2.getAzimuth(), EPSILON8); + compareDoublesWithLog(geoRenderable1.getAzimuth(), geoRenderable2.getAzimuth(), EPSILON8, "GeoRenderable Azimuth"); assertEquals(geoRenderable1.getAltitudeMode(), geoRenderable2.getAltitudeMode()); } private static void compareGeoCircle(final IGeoCircle circle1, final IGeoCircle circle2) { - assertEquals(circle1.getRadius(), circle2.getRadius(), EPSILON8); + compareDoublesWithLog(circle1.getRadius(), circle2.getRadius(), EPSILON8, "GeoCircle Radius"); compareGeoRenderable(circle1, circle2); } @@ -201,8 +209,8 @@ public static void validatePoint(final Point point, final String dataProvider, final String description, final HashMap properties) { - assertEquals(point.getIconScale(), iconScale, EPSILON8); - assertEquals(point.getResourceId(), resourceId, EPSILON8); + compareDoublesWithLog(point.getIconScale(), iconScale, EPSILON8, "Point Icon Scale"); + compareDoublesWithLog(point.getResourceId(), resourceId, EPSILON8, "Point Resource ID"); compareIconStyle(point.getIconStyle(), iconStyle); assertEquals(point.getIconURI(), iconURI); compareGeoPoint(point.getRenderable(), geoPoint); @@ -317,8 +325,8 @@ public static void validateEllipse(final Ellipse ell, final String description, final HashMap properties) { compareGeoEllipse(ell.getRenderable(), geoEllipse); - assertEquals(ell.getSemiMajor(), majorRadius, EPSILON8); - assertEquals(ell.getSemiMinor(), minorRadius, EPSILON8); + compareDoublesWithLog(ell.getSemiMajor(), majorRadius, EPSILON8, "Ellipse SemiMajor"); + compareDoublesWithLog(ell.getSemiMinor(), minorRadius, EPSILON8, "Ellipse SemiMinor"); assertEquals(ell.getFeatureType(), fte); assertEquals(ell.getChildFeatures(), childFeatures); assertEquals(ell.getParentOverlays(), parentOverlays); @@ -332,8 +340,8 @@ public static void validateEllipse(final Ellipse ell, compareLabelStyle(ell.getLabelStyle(), labelStyle); assertEquals(ell.getExtrude(), extrude); assertEquals(ell.getTessellate(), tessellate); - assertEquals(ell.getBuffer(), buffer, EPSILON8); - assertEquals(ell.getAzimuth(), azimuth, EPSILON8); + compareDoublesWithLog(ell.getBuffer(), buffer, EPSILON8, "Ellipse Buffer"); + compareDoublesWithLog(ell.getAzimuth(), azimuth, EPSILON8, "Ellipse Azimuth"); compareGeoPosition(ell.getPosition(), geoPosition); assertEquals(ell.getReadOnly(), readOnly); assertEquals(ell.getParents(), parents); @@ -373,7 +381,7 @@ public static void validateCircle(final Circle circ, final String description, final HashMap properties) { compareGeoCircle(circ.getRenderable(), geoCircle); - assertEquals(circ.getRadius(), radius, EPSILON8); + compareDoublesWithLog(circ.getRadius(), radius, EPSILON8, "Circle Radius"); assertEquals(circ.getFeatureType(), fte); assertEquals(circ.getChildFeatures(), childFeatures); assertEquals(circ.getParentOverlays(), parentOverlays); @@ -387,8 +395,8 @@ public static void validateCircle(final Circle circ, compareLabelStyle(circ.getLabelStyle(), labelStyle); assertEquals(circ.getExtrude(), extrude); assertEquals(circ.getTessellate(), tessellate); - assertEquals(circ.getBuffer(), buffer, EPSILON8); - assertEquals(circ.getAzimuth(), azimuth, EPSILON8); + compareDoublesWithLog(circ.getBuffer(), buffer, EPSILON8, "Circle Buffer"); + compareDoublesWithLog(circ.getAzimuth(), azimuth, EPSILON8, "Circle Azimuth"); compareGeoPosition(circ.getPosition(), geoPosition); assertEquals(circ.getReadOnly(), readOnly); assertEquals(circ.getParents(), parents); @@ -429,8 +437,8 @@ public static void validateRectangle(final Rectangle rect, final String description, final HashMap properties) { compareGeoRectangle(rect.getRenderable(), geoRectangle); - assertEquals(rect.getWidth(), width, EPSILON8); - assertEquals(rect.getHeight(), height, EPSILON8); + compareDoublesWithLog(rect.getWidth(), width, EPSILON8, "Rectangle Width"); + compareDoublesWithLog(rect.getHeight(), height, EPSILON8, "Rectangle Height"); validateFeature(rect, fte, childFeatures, @@ -486,7 +494,7 @@ public static void validateSquare(final Square square, final String description, final HashMap properties) { compareGeoSquare(square.getRenderable(), geoSquare); - assertEquals(square.getWidth(), width, EPSILON8); + compareDoublesWithLog(square.getWidth(), width, EPSILON8, "Square Width"); validateFeature(square, fte, childFeatures, @@ -544,7 +552,7 @@ public static void validateText(final Text text, final HashMap properties) { compareGeoText(text.getRenderable(), geoText); assertEquals(text.getText(), textString); - assertEquals(text.getRotationAngle(), rotationAngle, EPSILON8); + compareDoublesWithLog(text.getRotationAngle(), rotationAngle, EPSILON8, "Text Rotation Angle"); validateFeature(text, fte, childFeatures, @@ -610,8 +618,8 @@ public static void validateFeature(final Feature feature, compareLabelStyle(feature.getLabelStyle(), labelStyle); assertEquals(feature.getExtrude(), extrude); assertEquals(feature.getTessellate(), tessellate); - assertEquals(feature.getBuffer(), buffer, EPSILON8); - assertEquals(feature.getAzimuth(), azimuth, EPSILON8); + compareDoublesWithLog(feature.getBuffer(), buffer, EPSILON8, "Feature Buffer"); + compareDoublesWithLog(feature.getAzimuth(), azimuth, EPSILON8, "Feature Azimuth"); compareGeoPosition(feature.getPosition(), geoPosition); assertEquals(feature.getReadOnly(), readOnly); assertEquals(feature.getParents(), parents); @@ -629,10 +637,10 @@ public static void validateBoundingBox(final EmpBoundingBox ebb, final double east, final double south, final double west) { - assertEquals(ebb.north(), north, EPSILON8); - assertEquals(ebb.east(), east, EPSILON8); - assertEquals(ebb.south(), south, EPSILON8); - assertEquals(ebb.west(), west, EPSILON8); + compareDoublesWithLog(ebb.north(), north, EPSILON8, "Bounding Box North"); + compareDoublesWithLog(ebb.east(), east, EPSILON8, "Bounding Box East"); + compareDoublesWithLog(ebb.south(), south, EPSILON8, "Bounding Box South"); + compareDoublesWithLog(ebb.west(), west, EPSILON8, "Bounding Box West"); } public static void comparePoint(final Point point1, final Point point2) { @@ -650,29 +658,29 @@ public static void comparePolygon(final Polygon polygon1, final Polygon polygon2 } public static void compareCircle(final Circle circle1, final Circle circle2) { - assertEquals(circle1.getRadius(), circle2.getRadius(), EPSILON8); + compareDoublesWithLog(circle1.getRadius(), circle2.getRadius(), EPSILON8, "Circle Radius"); compareFeature(circle1, circle2); } public static void compareEllipse(final Ellipse ellipse1, final Ellipse ellipse2) { - assertEquals(ellipse1.getSemiMinor(), ellipse2.getSemiMinor(), EPSILON8); - assertEquals(ellipse1.getSemiMajor(), ellipse2.getSemiMajor(), EPSILON8); + compareDoublesWithLog(ellipse1.getSemiMinor(), ellipse2.getSemiMinor(), EPSILON8, "Ellipse SemiMinor"); + compareDoublesWithLog(ellipse1.getSemiMajor(), ellipse2.getSemiMajor(), EPSILON8, "Ellipse SemiMajor"); compareFeature(ellipse1, ellipse2); } public static void compareRectangle(final Rectangle rectangle1, final Rectangle rectangle2) { - assertEquals(rectangle1.getWidth(), rectangle2.getWidth(), EPSILON8); - assertEquals(rectangle1.getHeight(), rectangle2.getHeight(), EPSILON8); + compareDoublesWithLog(rectangle1.getWidth(), rectangle2.getWidth(), EPSILON8, "Rectangle Width"); + compareDoublesWithLog(rectangle1.getHeight(), rectangle2.getHeight(), EPSILON8, "Rectangle Height"); compareFeature(rectangle1, rectangle2); } public static void compareSquare(final Square square1, final Square square2) { - assertEquals(square1.getWidth(), square2.getWidth(), EPSILON8); + compareDoublesWithLog(square1.getWidth(), square2.getWidth(), EPSILON8, "Square Width"); compareFeature(square1, square2); } public static void compareText(final Text text1, final Text text2) { - assertEquals(text1.getRotationAngle(), text2.getRotationAngle(), EPSILON8); + compareDoublesWithLog(text1.getRotationAngle(), text2.getRotationAngle(), EPSILON8, "Text Rotation Angle"); assertEquals(text1.getText(), text2.getText()); compareFeature(text1, text2); } @@ -718,7 +726,7 @@ public static void compareTextToPoint(final Text text, final Point point) { public static void compareCircleToPolygon(final Circle circle, final Polygon polygon) { compareGeoPosition(polygon.getPosition(), circle.getPosition(), EPSILON3); - assertEquals(polygon.getAzimuth(), circle.getAzimuth(), EPSILON8); + compareDoublesWithLog(polygon.getAzimuth(), circle.getAzimuth(), EPSILON8, "Polygon vs. Circle Azimuth"); assertEquals(polygon.getDescription(), "" + circle.getName() + "
\n" + circle.getDescription()); compareFillStyle(polygon.getFillStyle(), circle.getFillStyle()); compareStrokeStyle(polygon.getStrokeStyle(), circle.getStrokeStyle()); @@ -728,7 +736,7 @@ public static void compareCircleToPolygon(final Circle circle, final Polygon pol public static void compareSquareToPolygon(final Square square, final Polygon polygon) { compareGeoPosition(polygon.getPosition(), square.getPosition(), EPSILON3); - assertEquals(polygon.getAzimuth(), square.getAzimuth(), EPSILON8); + compareDoublesWithLog(polygon.getAzimuth(), square.getAzimuth(), EPSILON8, "Polygon vs. Square Azimuth"); assertEquals(polygon.getDescription(), "" + square.getName() + "
\n" + square.getDescription()); compareFillStyle(polygon.getFillStyle(), square.getFillStyle()); compareStrokeStyle(polygon.getStrokeStyle(), square.getStrokeStyle()); @@ -738,7 +746,7 @@ public static void compareSquareToPolygon(final Square square, final Polygon pol public static void compareEllipseToPolygon(final Ellipse ellipse, final Polygon polygon) { compareGeoPosition(polygon.getPosition(), ellipse.getPosition(), EPSILON3); - assertEquals(polygon.getAzimuth(), ellipse.getAzimuth(), EPSILON8); + compareDoublesWithLog(polygon.getAzimuth(), ellipse.getAzimuth(), EPSILON8, "Polygon vs. Ellipse Azimuth"); assertEquals(polygon.getDescription(), "" + ellipse.getName() + "
\n" + ellipse.getDescription()); compareFillStyle(polygon.getFillStyle(), ellipse.getFillStyle()); compareStrokeStyle(polygon.getStrokeStyle(), ellipse.getStrokeStyle()); @@ -748,7 +756,7 @@ public static void compareEllipseToPolygon(final Ellipse ellipse, final Polygon public static void compareRectangleToPolygon(final Rectangle rectangle, final Polygon polygon) { compareGeoPosition(polygon.getPosition(), rectangle.getPosition(), EPSILON2); - assertEquals(polygon.getAzimuth(), rectangle.getAzimuth(), EPSILON8); + compareDoublesWithLog(polygon.getAzimuth(), rectangle.getAzimuth(), EPSILON8, "Polygon vs. Rectangle Azimuth"); assertEquals(polygon.getDescription(), "" + rectangle.getName() + "
\n" + rectangle.getDescription()); compareFillStyle(polygon.getFillStyle(), rectangle.getFillStyle()); compareStrokeStyle(polygon.getStrokeStyle(), rectangle.getStrokeStyle()); @@ -758,7 +766,7 @@ public static void compareRectangleToPolygon(final Rectangle rectangle, final Po public static void compareFeatureToPolygon(final Feature feature, final Polygon polygon) { compareGeoPosition(polygon.getPosition(), feature.getPosition(), EPSILON2); - assertEquals(polygon.getAzimuth(), feature.getAzimuth(), EPSILON8); + compareDoublesWithLog(polygon.getAzimuth(), feature.getAzimuth(), EPSILON8, "Polygon vs. Feature Azimuth"); assertEquals(polygon.getDescription(), "" + feature.getName() + "
\n" + feature.getDescription()); compareFillStyle(polygon.getFillStyle(), feature.getFillStyle()); compareStrokeStyle(polygon.getStrokeStyle(), feature.getStrokeStyle()); @@ -771,12 +779,12 @@ public static void compareFeatureToPolygon(final Feature feature, final Polygon public static void compareFeatureToGeoJsonPolygon(final Feature feature, final Polygon polygon) { compareGeoPosition(polygon.getPosition(), feature.getPosition(), EPSILON2); - assertEquals(polygon.getAzimuth(), feature.getAzimuth(), EPSILON8); + compareDoublesWithLog(polygon.getAzimuth(), feature.getAzimuth(), EPSILON8, "Polygon vs. Feature JSON Azimuth"); } public static void compareFeatureToPath(final Feature feature, final Path path) { compareGeoPosition(path.getPosition(), feature.getPosition(), EPSILON2); - assertEquals(path.getAzimuth(), feature.getAzimuth(), EPSILON8); + compareDoublesWithLog(path.getAzimuth(), feature.getAzimuth(), EPSILON8, "Path vs. Feature Azimuth"); assertEquals(path.getDescription(), "" + feature.getName() + "
\n" + feature.getDescription()); compareFillStyle(path.getFillStyle(), feature.getFillStyle()); compareStrokeStyle(path.getStrokeStyle(), feature.getStrokeStyle()); From 582e23af7426eba9c2bdbbb261ed83ac9d6a3df7 Mon Sep 17 00:00:00 2001 From: Matt Miller Date: Wed, 10 Jan 2018 14:04:25 -0500 Subject: [PATCH 11/12] switch print statement to log --- .../src/test/java/mil/emp3/api/KMLExportTest.java | 8 -------- .../src/test/java/mil/emp3/api/utils/ComparisonUtils.java | 3 ++- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/sdk/sdk-view/src/test/java/mil/emp3/api/KMLExportTest.java b/sdk/sdk-view/src/test/java/mil/emp3/api/KMLExportTest.java index 466e6b12..97a8b888 100644 --- a/sdk/sdk-view/src/test/java/mil/emp3/api/KMLExportTest.java +++ b/sdk/sdk-view/src/test/java/mil/emp3/api/KMLExportTest.java @@ -288,14 +288,6 @@ public void exportFailed(final Exception ex) } } - - @Test - public void ellipseTest() throws Exception { - for(int i = 0; i < 1000; i++) { - exportCircle(); - } - } - public void exportEllipse() throws Exception { this.remoteMap.clearContainer(); diff --git a/sdk/sdk-view/src/test/java/mil/emp3/api/utils/ComparisonUtils.java b/sdk/sdk-view/src/test/java/mil/emp3/api/utils/ComparisonUtils.java index 1af9a442..4b93a52e 100644 --- a/sdk/sdk-view/src/test/java/mil/emp3/api/utils/ComparisonUtils.java +++ b/sdk/sdk-view/src/test/java/mil/emp3/api/utils/ComparisonUtils.java @@ -1,6 +1,7 @@ package mil.emp3.api.utils; import android.graphics.Bitmap; +import android.util.Log; import org.cmapi.primitives.GeoCircle; import org.cmapi.primitives.GeoEllipse; @@ -58,7 +59,7 @@ private static void compareDoublesWithLog(final double value1, final double valu if (Math.abs(value1 - value2) < marginOfError) { return; } else { - System.out.println(tag+": "+value1 + " is too different in value from " + value2 + " when comparing to an accuracy of " + marginOfError); + Log.e(tag, value1 + " is too different in value from " + value2 + " when comparing to an accuracy of " + marginOfError); } } From 14d26667f3f6e4b0d1fce87183841ff8126ee615 Mon Sep 17 00:00:00 2001 From: Matt Miller Date: Fri, 12 Jan 2018 10:59:03 -0500 Subject: [PATCH 12/12] log errors --- sdk/sdk-view/src/test/java/mil/emp3/api/KMLExportTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/sdk-view/src/test/java/mil/emp3/api/KMLExportTest.java b/sdk/sdk-view/src/test/java/mil/emp3/api/KMLExportTest.java index 97a8b888..e58eecfb 100644 --- a/sdk/sdk-view/src/test/java/mil/emp3/api/KMLExportTest.java +++ b/sdk/sdk-view/src/test/java/mil/emp3/api/KMLExportTest.java @@ -288,6 +288,7 @@ public void exportFailed(final Exception ex) } } + @Test public void exportEllipse() throws Exception { this.remoteMap.clearContainer();