Skip to content

Commit

Permalink
#136 Fixed the tests for the new version of ObjectNode
Browse files Browse the repository at this point in the history
  • Loading branch information
prmr committed Dec 3, 2015
1 parent 3ce21c5 commit da5a028
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/ca/mcgill/cs/stg/jetuml/graph/TestObjectNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ public void testDefault()
{
assertEquals(new Rectangle2D.Double(0, 0, 80, 60), aObject1.getBounds());
assertEquals(0,aObject1.getChildren().size());
assertEquals(new Point2D.Double(80,0), aObject1.getConnectionPoint(Direction.EAST));
assertEquals(new Point2D.Double(0,0), aObject1.getConnectionPoint(Direction.WEST));
assertEquals(new Point2D.Double(0,0), aObject1.getConnectionPoint(Direction.NORTH));
assertEquals(new Point2D.Double(0,0), aObject1.getConnectionPoint(Direction.SOUTH));
assertEquals(new Point2D.Double(80,30), aObject1.getConnectionPoint(Direction.EAST));
assertEquals(new Point2D.Double(0,30), aObject1.getConnectionPoint(Direction.WEST));
assertEquals(new Point2D.Double(40,0), aObject1.getConnectionPoint(Direction.NORTH));
assertEquals(new Point2D.Double(40,60), aObject1.getConnectionPoint(Direction.SOUTH));
assertEquals("", aObject1.getName().toString());
assertEquals(new Rectangle2D.Double(0, 0, 80, 60), aObject1.getShape().getBounds());
}
Expand Down Expand Up @@ -107,10 +107,10 @@ public void testClone()
ObjectNode clone = aObject1.clone();
assertEquals(new Rectangle2D.Double(0, 0, 80, 60), clone.getBounds());
assertEquals(0,clone.getChildren().size());
assertEquals(new Point2D.Double(80,0), clone.getConnectionPoint(Direction.EAST));
assertEquals(new Point2D.Double(0,0), clone.getConnectionPoint(Direction.WEST));
assertEquals(new Point2D.Double(0,0), clone.getConnectionPoint(Direction.NORTH));
assertEquals(new Point2D.Double(0,0), clone.getConnectionPoint(Direction.SOUTH));
assertEquals(new Point2D.Double(80,30), clone.getConnectionPoint(Direction.EAST));
assertEquals(new Point2D.Double(0,30), clone.getConnectionPoint(Direction.WEST));
assertEquals(new Point2D.Double(40,0), clone.getConnectionPoint(Direction.NORTH));
assertEquals(new Point2D.Double(40,60), clone.getConnectionPoint(Direction.SOUTH));
assertEquals("o1", clone.getName().toString());
assertEquals(new Rectangle2D.Double(0, 0, 80, 60), clone.getShape().getBounds());

Expand Down

0 comments on commit da5a028

Please sign in to comment.