src/test/java/eu/digitisation/layout/BoundingBoxTest.java
@Test
    public void testToPolygon() {
        System.out.println("toPolygon");
         Polygon expResult = new BoundingBox(0, 0, 20, 20).asPolygon();
        BoundingBox instance = new BoundingBox(0, 0, 10, 20);
        instance.add(new BoundingBox(10, 10, 20, 20));   
      
        assertEquals(expResult.getBounds(), instance);
    }
/**
     * Test of asPolygon method, of class BoundingBox.
     */
Test of asPolygon method, of class BoundingBox.
Test of asPolygon method of class BoundingBox .
@Test
    public void testToPolygon() {
        System.out.println("toPolygon");
         Polygon expResult = new BoundingBox(0, 0, 20, 20).asPolygon();
        BoundingBox instance = new BoundingBox(0, 0, 10, 20);
        instance.add(new BoundingBox(10, 10, 20, 20));   
        assertEquals(expResult.getBounds(), instance);
    }
@ Test public void testToPolygon ( ) { System . out . println ( "toPolygon" ) ; Polygon expResult = new BoundingBox ( 0 , 0 , 20 , 20 ) . asPolygon ( ) ; BoundingBox instance = new BoundingBox ( 0 , 0 , 10 , 20 ) ; instance . add ( new BoundingBox ( 10 , 10 , 20 , 20 ) ) ; assertEquals ( expResult . getBounds ( ) , instance ) ; }
Test of asPolygon method, of class BoundingBox.
Test of asPolygon method of class BoundingBox .