@Test public void shouldHaveVerticalAngle() throws Exception { Segment segment = new Segment(new Point(0, 0), new Point(0, 1)); assertThat(segment.getAngle(), CoreMatchers.instanceOf(Vertical.class)); }
public Angle getAngle() { return angle; }
Segment { public Angle getAngle() { return angle; } }
Segment { public Angle getAngle() { return angle; } Segment(Point a, Point b); }
Segment { public Angle getAngle() { return angle; } Segment(Point a, Point b); Angle getAngle(); }
Segment { public Angle getAngle() { return angle; } Segment(Point a, Point b); Angle getAngle();  }