package ol.geom;

import ol.*;

/**
 * A test case for {@link GeometryCollection}.
 * 
 * @author sbaumhekel
 */
public class GeometryCollectionTest extends BaseTestCase {

    public void test() {
	Geometry[] geoms = new Geometry[] { OLFactory.createPoint(1, 2), OLFactory.createLineString(
		new Coordinate[] { OLFactory.createCoordinate(1, 2), OLFactory.createCoordinate(2, 3) }) };
	GeometryCollection col = OLFactory.createGeometryCollection(geoms);
	assertNotNull(col);
	Geometry[] geoms2 = col.getGeometries();
	assertNotNull(geoms2);
	assertEquals(2, geoms2.length);
	Geometry g1 = geoms2[0];
	Geometry g2 = geoms2[1];
	assertNotNull(g1);
	assertNotNull(g2);
	assertEquals(Geometry.POINT, g1.getType());
	assertEquals(Geometry.LINE_STRING, g2.getType());
    }

}

@@ -21,17 +21,77 @@
 port ol.
-*
+Coordinate;%0Aimport ol.GwtOL3BaseTestCase;%0Aimport ol.OLFactory
 ;%0A%0A/**%0A 
@@ -138,17 +138,16 @@
 ion%7D.%0A *
- 
 %0A * @aut
@@ -209,16 +209,22 @@
 extends 
+GwtOL3
 BaseTest
@@ -256,17 +256,25 @@
 est() %7B%0A
-%09
+%0A        
 Geometry
@@ -362,10 +362,24 @@
 ng(%0A
-%09%09
+                
 new 
@@ -466,17 +466,25 @@
 ) %7D) %7D;%0A
-%09
+%0A        
 Geometry
@@ -543,17 +543,25 @@
 geoms);%0A
-%09
+%0A        
 assertNo
@@ -572,17 +572,25 @@
 l(col);%0A
-%09
+%0A        
 Geometry
@@ -622,17 +622,25 @@
 ries();%0A
-%09
+%0A        
 assertNo
@@ -650,25 +650,32 @@
 ll(geoms2);%0A
-%09
+        
 assertEquals
@@ -694,17 +694,25 @@
 ength);%0A
-%09
+%0A        
 Geometry
@@ -728,17 +728,24 @@
 ms2%5B0%5D;%0A
-%09
+        
 Geometry
@@ -761,17 +761,25 @@
 ms2%5B1%5D;%0A
-%09
+%0A        
 assertNo
@@ -789,17 +789,24 @@
 ll(g1);%0A
-%09
+        
 assertNo
@@ -816,17 +816,24 @@
 ll(g2);%0A
-%09
+        
 assertEq
@@ -841,22 +841,15 @@
 als(
-Geometry.POINT
+%22Point%22
 , g1
@@ -865,9 +865,16 @@
 ));%0A
-%09
+        
 asse
@@ -886,28 +886,20 @@
 als(
-Geometry.LINE_STRING
+%22LineString%22
 , g2
@@ -907,21 +907,22 @@
 getType());%0A
+%0A
     %7D%0A%0A%7D%0A

Update test for GWT 2.8