{"action":"created","comment":{"url":"https://api.github.com/repos/missioncommand/emp3-android/pulls/comments/147518423","pull_request_review_id":72632244,"id":147518423,"diff_hunk":"@@ -0,0 +1,171 @@\n+package mil.emp3.api.utils;\n+\n+import org.cmapi.primitives.GeoIconStyle;\n+import org.cmapi.primitives.GeoPoint;\n+import org.cmapi.primitives.GeoPosition;\n+import org.cmapi.primitives.IGeoAltitudeMode;\n+import org.cmapi.primitives.IGeoColor;\n+import org.cmapi.primitives.IGeoFillStyle;\n+import org.cmapi.primitives.IGeoIconStyle;\n+import org.cmapi.primitives.IGeoLabelStyle;\n+import org.cmapi.primitives.IGeoPoint;\n+import org.cmapi.primitives.IGeoPosition;\n+import org.cmapi.primitives.IGeoStrokeStyle;\n+\n+import java.util.Date;\n+import java.util.HashMap;\n+import java.util.List;\n+import java.util.UUID;\n+\n+import mil.emp3.api.Point;\n+import mil.emp3.api.enums.FeatureTypeEnum;\n+\n+import static org.junit.Assert.assertEquals;\n+import static org.junit.Assert.fail;\n+\n+/**\n+ * Created by matt.miller@rgi-corp.local on 10/27/17.\n+ */\n+\n+public class ComparisonUtils {\n+    private static final double Epsilon = 1e-8;\n+\n+    private static void compareGeoPosition(final IGeoPosition p1, final IGeoPosition p2) {\n+        if(p1 == null && p2 == null) {\n+            return;\n+        }\n+        assertEquals(p1.getLatitude(), p2.getLatitude(), Epsilon);\n+        assertEquals(p1.getLongitude(), p2.getLongitude(), Epsilon);\n+        assertEquals(p1.getAltitude(), p2.getAltitude(), Epsilon);\n+    }\n+\n+    private static void compareGeoPositionArray(final List<IGeoPosition> p1, final List<IGeoPosition> p2) {\n+        final double size = p1.size();\n+        if(size != p2.size()){\n+            fail(\"Two Geopostion Lists are of unequal length\");\n+        }\n+        for(int i = 0; i < size; i++) {\n+            compareGeoPosition(p1.get(i), p2.get(i));\n+        }\n+    }\n+\n+    private static void compareGeoColor(final IGeoColor c1, final IGeoColor c2) {\n+        assertEquals(c1.getAlpha(), c2.getAlpha(), Epsilon);\n+        assertEquals(c1.getRed(), c2.getRed());\n+        assertEquals(c1.getBlue(), c2.getBlue());\n+        assertEquals(c1.getGreen(), c2.getGreen());\n+    }\n+\n+    private static void compareFillStyle(final IGeoFillStyle f1, final IGeoFillStyle f2) {\n+        assertEquals(f1.getDescription(), f2.getDescription());\n+        compareGeoColor(f1.getFillColor(), f2.getFillColor());\n+        assertEquals(f1.getFillPattern(), f2.getFillPattern());\n+    }\n+\n+    private static void compareStrokeStyle(final IGeoStrokeStyle s1, final IGeoStrokeStyle s2) {\n+        assertEquals(s1.getStipplingFactor(), s2.getStipplingFactor());\n+        assertEquals(s1.getStipplingPattern(), s2.getStipplingPattern());\n+        compareGeoColor(s1.getStrokeColor(), s2.getStrokeColor());\n+        assertEquals(s1.getStrokeWidth(), s2.getStrokeWidth(), Epsilon);\n+    }\n+\n+    private static void compareIconStyle(final IGeoIconStyle i1, final IGeoIconStyle i2) {\n+        assertEquals(i1.getOffSetX(), i2.getOffSetX(), Epsilon);\n+        assertEquals(i1.getOffSetY(), i2.getOffSetY(), Epsilon);\n+        assertEquals(i1.getSize(), i2.getSize(), Epsilon);\n+    }\n+\n+    private static void compareLabelStyle(final IGeoLabelStyle l1, final IGeoLabelStyle l2) {\n+        compareGeoColor(l1.getColor(), l2.getColor());\n+        assertEquals(l1.getFontFamily(), l2.getFontFamily());\n+        assertEquals(l1.getJustification(), l2.getJustification());\n+        compareGeoColor(l1.getOutlineColor(), l2.getOutlineColor());\n+        assertEquals(l1.getSize(), l2.getSize(), Epsilon);\n+        assertEquals(l1.getTypeface(), l2.getTypeface());\n+    }\n+\n+    private static void compareGeoPoint(final IGeoPoint p1, final IGeoPoint p2) {\n+        assertEquals(p1.getTimeStamp(), p2.getTimeStamp());\n+        assertEquals(p1.getTimeSpans(), p2.getTimeSpans());\n+        assertEquals(p1.getTessellate(), p2.getTessellate());\n+        compareStrokeStyle(p1.getStrokeStyle(), p2.getStrokeStyle());\n+        assertEquals(p1.getReadOnly(), p2.getReadOnly());\n+        assertEquals(p1.getProperties(), p2.getProperties());\n+        compareGeoPositionArray(p1.getPositions(), p2.getPositions());\n+        assertEquals(p1.getPathType(), p2.getPathType());\n+        assertEquals(p1.getName(), p2.getName());\n+        compareLabelStyle(p1.getLabelStyle(), p2.getLabelStyle());\n+        compareFillStyle(p1.getFillStyle(), p2.getFillStyle());\n+        assertEquals(p1.getExtrude(), p2.getExtrude());\n+        assertEquals(p1.getDescription(), p2.getDescription());\n+        assertEquals(p1.getDataProviderId(), p2.getDataProviderId());\n+        assertEquals(p1.getChildren(), p2.getChildren());\n+        assertEquals(p1.getBuffer(), p2.getBuffer(), Epsilon);\n+        assertEquals(p1.getAzimuth(), p2.getAzimuth(), Epsilon);\n+        assertEquals(p1.getAltitudeMode(), p2.getAltitudeMode());\n+        assertEquals(p1.getIconURI(), p2.getIconURI());\n+        compareIconStyle(p1.getIconStyle(), p2.getIconStyle());\n+    }\n+\n+    public  static void validatePoint(final Point point,\n+                               final double iconScale,","path":"sdk/sdk-view/src/test/java/mil/emp3/api/utils/ComparisonUtils.java","position":111,"original_position":111,"commit_id":"55f2caac858c948407162a7a96cbed47f93e843c","original_commit_id":"55f2caac858c948407162a7a96cbed47f93e843c","user":{"login":"JACochran","id":8645492,"avatar_url":"https://avatars2.githubusercontent.com/u/8645492?v=4","gravatar_id":"","url":"https://api.github.com/users/JACochran","html_url":"https://github.com/JACochran","followers_url":"https://api.github.com/users/JACochran/followers","following_url":"https://api.github.com/users/JACochran/following{/other_user}","gists_url":"https://api.github.com/users/JACochran/gists{/gist_id}","starred_url":"https://api.github.com/users/JACochran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JACochran/subscriptions","organizations_url":"https://api.github.com/users/JACochran/orgs","repos_url":"https://api.github.com/users/JACochran/repos","events_url":"https://api.github.com/users/JACochran/events{/privacy}","received_events_url":"https://api.github.com/users/JACochran/received_events","type":"User","site_admin":false},"body":"line up parameters please","created_at":"2017-10-27T21:14:32Z","updated_at":"2017-10-27T21:15:57Z","html_url":"https://github.com/missioncommand/emp3-android/pull/319#discussion_r147518423","pull_request_url":"https://api.github.com/repos/missioncommand/emp3-android/pulls/319","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/missioncommand/emp3-android/pulls/comments/147518423"},"html":{"href":"https://github.com/missioncommand/emp3-android/pull/319#discussion_r147518423"},"pull_request":{"href":"https://api.github.com/repos/missioncommand/emp3-android/pulls/319"}}},"pull_request":{"url":"https://api.github.com/repos/missioncommand/emp3-android/pulls/319","id":148504142,"html_url":"https://github.com/missioncommand/emp3-android/pull/319","diff_url":"https://github.com/missioncommand/emp3-android/pull/319.diff","patch_url":"https://github.com/missioncommand/emp3-android/pull/319.patch","issue_url":"https://api.github.com/repos/missioncommand/emp3-android/issues/319","number":319,"state":"open","locked":false,"title":"#310 unit test point","user":{"login":"matt-miller-rgi","id":30054719,"avatar_url":"https://avatars3.githubusercontent.com/u/30054719?v=4","gravatar_id":"","url":"https://api.github.com/users/matt-miller-rgi","html_url":"https://github.com/matt-miller-rgi","followers_url":"https://api.github.com/users/matt-miller-rgi/followers","following_url":"https://api.github.com/users/matt-miller-rgi/following{/other_user}","gists_url":"https://api.github.com/users/matt-miller-rgi/gists{/gist_id}","starred_url":"https://api.github.com/users/matt-miller-rgi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matt-miller-rgi/subscriptions","organizations_url":"https://api.github.com/users/matt-miller-rgi/orgs","repos_url":"https://api.github.com/users/matt-miller-rgi/repos","events_url":"https://api.github.com/users/matt-miller-rgi/events{/privacy}","received_events_url":"https://api.github.com/users/matt-miller-rgi/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-10-24T20:27:15Z","updated_at":"2017-10-27T21:15:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/missioncommand/emp3-android/pulls/319/commits","review_comments_url":"https://api.github.com/repos/missioncommand/emp3-android/pulls/319/comments","review_comment_url":"https://api.github.com/repos/missioncommand/emp3-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/missioncommand/emp3-android/issues/319/comments","statuses_url":"https://api.github.com/repos/missioncommand/emp3-android/statuses/55f2caac858c948407162a7a96cbed47f93e843c","head":{"label":"missioncommand:#310_unit_test_point","ref":"#310_unit_test_point","sha":"55f2caac858c948407162a7a96cbed47f93e843c","user":{"login":"missioncommand","id":5940653,"avatar_url":"https://avatars2.githubusercontent.com/u/5940653?v=4","gravatar_id":"","url":"https://api.github.com/users/missioncommand","html_url":"https://github.com/missioncommand","followers_url":"https://api.github.com/users/missioncommand/followers","following_url":"https://api.github.com/users/missioncommand/following{/other_user}","gists_url":"https://api.github.com/users/missioncommand/gists{/gist_id}","starred_url":"https://api.github.com/users/missioncommand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/missioncommand/subscriptions","organizations_url":"https://api.github.com/users/missioncommand/orgs","repos_url":"https://api.github.com/users/missioncommand/repos","events_url":"https://api.github.com/users/missioncommand/events{/privacy}","received_events_url":"https://api.github.com/users/missioncommand/received_events","type":"Organization","site_admin":false},"repo":{"id":80471762,"name":"emp3-android","full_name":"missioncommand/emp3-android","owner":{"login":"missioncommand","id":5940653,"avatar_url":"https://avatars2.githubusercontent.com/u/5940653?v=4","gravatar_id":"","url":"https://api.github.com/users/missioncommand","html_url":"https://github.com/missioncommand","followers_url":"https://api.github.com/users/missioncommand/followers","following_url":"https://api.github.com/users/missioncommand/following{/other_user}","gists_url":"https://api.github.com/users/missioncommand/gists{/gist_id}","starred_url":"https://api.github.com/users/missioncommand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/missioncommand/subscriptions","organizations_url":"https://api.github.com/users/missioncommand/orgs","repos_url":"https://api.github.com/users/missioncommand/repos","events_url":"https://api.github.com/users/missioncommand/events{/privacy}","received_events_url":"https://api.github.com/users/missioncommand/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/missioncommand/emp3-android","description":"Extensible Map Platform (EMP) Android Development Kit","fork":false,"url":"https://api.github.com/repos/missioncommand/emp3-android","forks_url":"https://api.github.com/repos/missioncommand/emp3-android/forks","keys_url":"https://api.github.com/repos/missioncommand/emp3-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/missioncommand/emp3-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/missioncommand/emp3-android/teams","hooks_url":"https://api.github.com/repos/missioncommand/emp3-android/hooks","issue_events_url":"https://api.github.com/repos/missioncommand/emp3-android/issues/events{/number}","events_url":"https://api.github.com/repos/missioncommand/emp3-android/events","assignees_url":"https://api.github.com/repos/missioncommand/emp3-android/assignees{/user}","branches_url":"https://api.github.com/repos/missioncommand/emp3-android/branches{/branch}","tags_url":"https://api.github.com/repos/missioncommand/emp3-android/tags","blobs_url":"https://api.github.com/repos/missioncommand/emp3-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/missioncommand/emp3-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/missioncommand/emp3-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/missioncommand/emp3-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/missioncommand/emp3-android/statuses/{sha}","languages_url":"https://api.github.com/repos/missioncommand/emp3-android/languages","stargazers_url":"https://api.github.com/repos/missioncommand/emp3-android/stargazers","contributors_url":"https://api.github.com/repos/missioncommand/emp3-android/contributors","subscribers_url":"https://api.github.com/repos/missioncommand/emp3-android/subscribers","subscription_url":"https://api.github.com/repos/missioncommand/emp3-android/subscription","commits_url":"https://api.github.com/repos/missioncommand/emp3-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/missioncommand/emp3-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/missioncommand/emp3-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/missioncommand/emp3-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/missioncommand/emp3-android/contents/{+path}","compare_url":"https://api.github.com/repos/missioncommand/emp3-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/missioncommand/emp3-android/merges","archive_url":"https://api.github.com/repos/missioncommand/emp3-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/missioncommand/emp3-android/downloads","issues_url":"https://api.github.com/repos/missioncommand/emp3-android/issues{/number}","pulls_url":"https://api.github.com/repos/missioncommand/emp3-android/pulls{/number}","milestones_url":"https://api.github.com/repos/missioncommand/emp3-android/milestones{/number}","notifications_url":"https://api.github.com/repos/missioncommand/emp3-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/missioncommand/emp3-android/labels{/name}","releases_url":"https://api.github.com/repos/missioncommand/emp3-android/releases{/id}","deployments_url":"https://api.github.com/repos/missioncommand/emp3-android/deployments","created_at":"2017-01-30T22:48:50Z","updated_at":"2017-05-04T19:32:21Z","pushed_at":"2017-10-27T21:13:20Z","git_url":"git://github.com/missioncommand/emp3-android.git","ssh_url":"git@github.com:missioncommand/emp3-android.git","clone_url":"https://github.com/missioncommand/emp3-android.git","svn_url":"https://github.com/missioncommand/emp3-android","homepage":"","size":49872,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":28,"forks":2,"open_issues":28,"watchers":2,"default_branch":"development"}},"base":{"label":"missioncommand:development","ref":"development","sha":"bb824a41e3a25efc1a3f99131db607639d58d9d3","user":{"login":"missioncommand","id":5940653,"avatar_url":"https://avatars2.githubusercontent.com/u/5940653?v=4","gravatar_id":"","url":"https://api.github.com/users/missioncommand","html_url":"https://github.com/missioncommand","followers_url":"https://api.github.com/users/missioncommand/followers","following_url":"https://api.github.com/users/missioncommand/following{/other_user}","gists_url":"https://api.github.com/users/missioncommand/gists{/gist_id}","starred_url":"https://api.github.com/users/missioncommand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/missioncommand/subscriptions","organizations_url":"https://api.github.com/users/missioncommand/orgs","repos_url":"https://api.github.com/users/missioncommand/repos","events_url":"https://api.github.com/users/missioncommand/events{/privacy}","received_events_url":"https://api.github.com/users/missioncommand/received_events","type":"Organization","site_admin":false},"repo":{"id":80471762,"name":"emp3-android","full_name":"missioncommand/emp3-android","owner":{"login":"missioncommand","id":5940653,"avatar_url":"https://avatars2.githubusercontent.com/u/5940653?v=4","gravatar_id":"","url":"https://api.github.com/users/missioncommand","html_url":"https://github.com/missioncommand","followers_url":"https://api.github.com/users/missioncommand/followers","following_url":"https://api.github.com/users/missioncommand/following{/other_user}","gists_url":"https://api.github.com/users/missioncommand/gists{/gist_id}","starred_url":"https://api.github.com/users/missioncommand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/missioncommand/subscriptions","organizations_url":"https://api.github.com/users/missioncommand/orgs","repos_url":"https://api.github.com/users/missioncommand/repos","events_url":"https://api.github.com/users/missioncommand/events{/privacy}","received_events_url":"https://api.github.com/users/missioncommand/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/missioncommand/emp3-android","description":"Extensible Map Platform (EMP) Android Development Kit","fork":false,"url":"https://api.github.com/repos/missioncommand/emp3-android","forks_url":"https://api.github.com/repos/missioncommand/emp3-android/forks","keys_url":"https://api.github.com/repos/missioncommand/emp3-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/missioncommand/emp3-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/missioncommand/emp3-android/teams","hooks_url":"https://api.github.com/repos/missioncommand/emp3-android/hooks","issue_events_url":"https://api.github.com/repos/missioncommand/emp3-android/issues/events{/number}","events_url":"https://api.github.com/repos/missioncommand/emp3-android/events","assignees_url":"https://api.github.com/repos/missioncommand/emp3-android/assignees{/user}","branches_url":"https://api.github.com/repos/missioncommand/emp3-android/branches{/branch}","tags_url":"https://api.github.com/repos/missioncommand/emp3-android/tags","blobs_url":"https://api.github.com/repos/missioncommand/emp3-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/missioncommand/emp3-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/missioncommand/emp3-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/missioncommand/emp3-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/missioncommand/emp3-android/statuses/{sha}","languages_url":"https://api.github.com/repos/missioncommand/emp3-android/languages","stargazers_url":"https://api.github.com/repos/missioncommand/emp3-android/stargazers","contributors_url":"https://api.github.com/repos/missioncommand/emp3-android/contributors","subscribers_url":"https://api.github.com/repos/missioncommand/emp3-android/subscribers","subscription_url":"https://api.github.com/repos/missioncommand/emp3-android/subscription","commits_url":"https://api.github.com/repos/missioncommand/emp3-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/missioncommand/emp3-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/missioncommand/emp3-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/missioncommand/emp3-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/missioncommand/emp3-android/contents/{+path}","compare_url":"https://api.github.com/repos/missioncommand/emp3-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/missioncommand/emp3-android/merges","archive_url":"https://api.github.com/repos/missioncommand/emp3-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/missioncommand/emp3-android/downloads","issues_url":"https://api.github.com/repos/missioncommand/emp3-android/issues{/number}","pulls_url":"https://api.github.com/repos/missioncommand/emp3-android/pulls{/number}","milestones_url":"https://api.github.com/repos/missioncommand/emp3-android/milestones{/number}","notifications_url":"https://api.github.com/repos/missioncommand/emp3-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/missioncommand/emp3-android/labels{/name}","releases_url":"https://api.github.com/repos/missioncommand/emp3-android/releases{/id}","deployments_url":"https://api.github.com/repos/missioncommand/emp3-android/deployments","created_at":"2017-01-30T22:48:50Z","updated_at":"2017-05-04T19:32:21Z","pushed_at":"2017-10-27T21:13:20Z","git_url":"git://github.com/missioncommand/emp3-android.git","ssh_url":"git@github.com:missioncommand/emp3-android.git","clone_url":"https://github.com/missioncommand/emp3-android.git","svn_url":"https://github.com/missioncommand/emp3-android","homepage":"","size":49872,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":28,"forks":2,"open_issues":28,"watchers":2,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/missioncommand/emp3-android/pulls/319"},"html":{"href":"https://github.com/missioncommand/emp3-android/pull/319"},"issue":{"href":"https://api.github.com/repos/missioncommand/emp3-android/issues/319"},"comments":{"href":"https://api.github.com/repos/missioncommand/emp3-android/issues/319/comments"},"review_comments":{"href":"https://api.github.com/repos/missioncommand/emp3-android/pulls/319/comments"},"review_comment":{"href":"https://api.github.com/repos/missioncommand/emp3-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/missioncommand/emp3-android/pulls/319/commits"},"statuses":{"href":"https://api.github.com/repos/missioncommand/emp3-android/statuses/55f2caac858c948407162a7a96cbed47f93e843c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"JACochran"}}