// Path: src/main/java/com/github/thealchemist/pg_hibernate/types/Point.java
// public class Point implements Serializable, Cloneable {
// 
// 	private final double x;
// 	private final double y;
// 
// 	public Point( double x, double y ) {
// 		this.x = x;
// 		this.y = y;
// 	}
// 
// 	public double getX() {
// 		return x;
// 	}
// 
// 	public double getY() {
// 		return y;
// 	}
// 
// 	public Point2D asPoint2D() {
// 		return new Point2D.Double(x, y);
// 	}
// 
// 	public boolean equals( Object obj ) {
// 		if (obj instanceof Point) {
// 			return x == ((Point) obj).x && y == ((Point) obj).y;
// 		}
// 		return super.equals(obj);
// 	}
// 
// 	public int hashCode() {
// 		return (int) x * 31 + (int) y;
// 	}
// 
// 	public Object clone() throws CloneNotSupportedException {
// 		return super.clone();
// 	}
// }


import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.jdbc.Sql;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.*;
import com.github.thealchemist.pg_hibernate.spring.LineSegmentTypeEntity;
import com.github.thealchemist.pg_hibernate.types.LineSegment;
import com.github.thealchemist.pg_hibernate.types.Point;
package com.github.thealchemist.pg_hibernate;




/**
 * @author Jesse Costello-Good, The Alchemist
 */

@RunWith(SpringJUnit4ClassRunner.class)
public class LineSegmentTypeTest extends HibernateTest {

	private static final double X1 = 54;
	private static final double Y1 = 5.6667;
	private static final double X2 = 1.342366234;
	private static final double Y2 = 0.0001;

	@Override
    @Test
	public void testSet() throws Exception {
// Path: src/main/java/com/github/thealchemist/pg_hibernate/types/Point.java
// public class Point implements Serializable, Cloneable {
// 
// 	private final double x;
// 	private final double y;
// 
// 	public Point( double x, double y ) {
// 		this.x = x;
// 		this.y = y;
// 	}
// 
// 	public double getX() {
// 		return x;
// 	}
// 
// 	public double getY() {
// 		return y;
// 	}
// 
// 	public Point2D asPoint2D() {
// 		return new Point2D.Double(x, y);
// 	}
// 
// 	public boolean equals( Object obj ) {
// 		if (obj instanceof Point) {
// 			return x == ((Point) obj).x && y == ((Point) obj).y;
// 		}
// 		return super.equals(obj);
// 	}
// 
// 	public int hashCode() {
// 		return (int) x * 31 + (int) y;
// 	}
// 
// 	public Object clone() throws CloneNotSupportedException {
// 		return super.clone();
// 	}
// }


// Path: src/test/java/com/github/thealchemist/pg_hibernate/LineSegmentTypeTest.java
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.jdbc.Sql;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.*;
import com.github.thealchemist.pg_hibernate.spring.LineSegmentTypeEntity;
import com.github.thealchemist.pg_hibernate.types.LineSegment;
import com.github.thealchemist.pg_hibernate.types.Point;

package com.github.thealchemist.pg_hibernate;




/**
 * @author Jesse Costello-Good, The Alchemist
 */

@RunWith(SpringJUnit4ClassRunner.class)
public class LineSegmentTypeTest extends HibernateTest {

	private static final double X1 = 54;
	private static final double Y1 = 5.6667;
	private static final double X2 = 1.342366234;
	private static final double Y2 = 0.0001;

	@Override
    @Test
	public void testSet() throws Exception {
		LineSegment line = new LineSegment(new Point(X1, Y1), new Point(X2, Y2));