Package com.mysema.query.sql.spatial

Source Code of com.mysema.query.sql.spatial.SQLServerGeometryWriterTest

package com.mysema.query.sql.spatial;

import static org.junit.Assert.assertEquals;

import java.io.IOException;

import org.geolatte.geom.Geometry;
import org.junit.Test;

public class SQLServerGeometryWriterTest extends AbstractConverterTest {

    @Test
    public void RoundTrip() throws IOException {
        for (Geometry geometry : getGeometries()) {
            byte[] bytes = new SQLServerGeometryWriter().write(geometry);
            Geometry geometry2 = new SQLServerGeometryReader().read(bytes);
            assertEquals(geometry, geometry2);
        }
    }

}
TOP

Related Classes of com.mysema.query.sql.spatial.SQLServerGeometryWriterTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.