assertEquals( pipe.getAvailableDirections(), new HashSet<>( Arrays.asList( PERPENDICULAR_DIRECTION.UP, PERPENDICULAR_DIRECTION.DOWN ) ) );
}
@Test
public void junctionHitTest() throws Exception {
Junction junction = new JunctionImpl( new Point( 0, 0 ), new HashSet<>(
Arrays.asList( PERPENDICULAR_DIRECTION.LEFT, PERPENDICULAR_DIRECTION.RIGHT, PERPENDICULAR_DIRECTION.DOWN )
) );
assertTrue( junction.contains( new Point( 0, 0 ) ) );
assertFalse( junction.contains( new Point( 1, 0 ) ) );
assertFalse( junction.contains( new Point( 0, 1 ) ) );
assertEquals( junction.getAvailableDirections(), new HashSet<>( Arrays.asList( PERPENDICULAR_DIRECTION.LEFT, PERPENDICULAR_DIRECTION.RIGHT,
PERPENDICULAR_DIRECTION.DOWN ) ) );
}