package me.itszooti.geojson;

import org.junit.Test;
import static org.hamcrest.MatcherAssert.*;
import static org.hamcrest.Matchers.*;

public class GeoJSONEncoderTest {

	@Test
	public void encodePoint() {
		assertThat(true, equalTo(false));
	}
	
	@Test
	public void encodeMultiPoint() {
		assertThat(true, equalTo(false));
	}
	
	@Test
	public void encodeLineString() {
		assertThat(true, equalTo(false));
	}
	
	@Test
	public void encodeMultiLineString() {
		assertThat(true, equalTo(false));
	}
	
	@Test
	public void encodePolygon() {
		assertThat(true, equalTo(false));
	}
	
	@Test
	public void encodeMultiPolygon() {
		assertThat(true, equalTo(false));
	}
	
	@Test
	public void encodeGeometryCollection() {
		assertThat(true, equalTo(false));
	}
	
	@Test
	public void encodeMassiveGeometryCollection() {
		assertThat(true, equalTo(false));
	}
	
	@Test
	public void encodeFeature() {
		assertThat(true, equalTo(false));
	}
	
	@Test
	public void encodeFeatureCollection() {
		assertThat(true, equalTo(false));
	}
	
}

@@ -34,21 +34,51 @@
 ort 
-org.junit.Tes
+static org.hamcrest.MatcherAssert.assertTha
 t;%0Ai
@@ -114,16 +114,17 @@
 cher
-Assert.*
+s.equalTo
 ;%0Aim
@@ -161,115 +161,1053 @@
 ers.
-*;%0A%0Apublic class GeoJSONEncoderTest %7B%0A%0A%09@Test%0A%09public void encodePoint() %7B%0A%09%09assertThat(true, equalTo(false
+instanceOf;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport com.google.gson.JsonArray;%0Aimport com.google.gson.JsonElement;%0Aimport com.google.gson.JsonObject;%0Aimport com.google.gson.JsonParser;%0Apublic class GeoJSONEncoderTest %7B%0A%0A%09private GeoJSONEncoder encoder;%0A%09private JsonParser jsonParser;%0A%09%0A%09@Before%0A%09public void before() %7B%0A%09%09encoder = new GeoJSONEncoder();%0A%09%09jsonParser = new JsonParser();%0A%09%7D%0A%09%0A%09@Test%0A%09public void encodePoint() %7B%0A%09%09GeoPoint point = new GeoPoint(new GeoPosition(100.0, 0.0));%0A%09%09String json = encoder.encode(point);%0A%09%09JsonElement element = jsonParser.parse(json);%0A%09%09assertThat(element, instanceOf(JsonObject.class));%0A%09%09JsonObject object = element.getAsJsonObject();%0A%09%09assertThat(object.getAsJsonPrimitive(%22type%22).getAsString(), equalTo(%22Point%22));%0A%09%09assertThat(object.has(%22coordinates%22), equalTo(true));%0A%09%09JsonArray coords = object.getAsJsonArray(%22coordinates%22);%0A%09%09assertThat(coords.size(), equalTo(2));%0A%09%09assertThat(coords.get(0).getAsDouble(), equalTo(100.0));%0A%09%09assertThat(coords.get(0).getAsDouble(), equalTo(0.0
 ));%0A

Add GeoPoint encoding test