/*
 * algorithms  Copyright (C) 2015 Ratchet Robotics
 *  Licensed under the BSD license.
 */

import org.junit.Test;
import static org.junit.Assert.*;
import org.ratchetrobotics.algorithms.mapping.FieldMap;


public class FieldMapTest {
    @Test
    public void itShouldNotBarfOnValidInput() {
        String someGeoJSON = "{ \"type\": \"FeatureCollection\",\n" +
                "  \"features\": [\n" +
                "    { \"type\": \"Feature\",\n" +
                "      \"geometry\": {\"type\": \"Point\", \"coordinates\": [102.0, 0.5]},\n" +
                "      \"properties\": {\"prop0\": \"value0\"}\n" +
                "      },\n" +
                "    { \"type\": \"Feature\",\n" +
                "      \"geometry\": {\n" +
                "        \"type\": \"LineString\",\n" +
                "        \"coordinates\": [\n" +
                "          [102.0, 0.0], [103.0, 1.0], [104.0, 0.0], [105.0, 1.0]\n" +
                "          ]\n" +
                "        },\n" +
                "      \"properties\": {\n" +
                "        \"prop0\": \"value0\",\n" +
                "        \"prop1\": 0.0\n" +
                "        }\n" +
                "     }\n" +
                "     ]\n" +
                "   }";
        FieldMap aFieldMap = new FieldMap(someGeoJSON);
        assertNotNull(aFieldMap.getFeatureCollection());
    }
}

@@ -115,42 +115,8 @@
 st;%0A
-import static org.junit.Assert.*;%0A
 impo
@@ -168,16 +168,92 @@
 ldMap;%0A%0A
+import java.io.IOException;%0A%0Aimport static org.junit.Assert.assertNotNull;%0A%0A
 %0Apublic 
@@ -328,16 +328,35 @@
 dInput()
+ throws IOException
  %7B%0A     
@@ -1163,53 +1163,8 @@
 %22 +%0A
-                %22        %5C%22prop1%5C%22: 0.0%5Cn%22 +%0A
     

Tweak FieldMapTest so it works with IOExceptions