/** Test of intersectsOnYAxis method, of class Figure. */
  @Test
  public void testIntersectsOnYAxis() {
    for (Object[] data : intersectsOnYAxisData) {
      System.out.println("Figure.intersecsOnYAxis " + getTestCaseName(data));
      boolean expected = getExpectedValue(data);
      Figure targetFigure = new FigureStub(getVertices(data));
      Figure otherFigure = new FigureStub(getOtherVertices(data));

      // Act
      boolean result = targetFigure.intersectsOnYAxis(otherFigure);

      // Assert
      assertEquals(expected, result);
    }
  }
  /** Test of getArea method, of class Figure. */
  @Test
  public void testGetArea() {
    // Arrange
    for (Object[] data : areaData) {
      System.out.println("Figure.getArea " + getTestCaseName(data));
      int expected = getExpectedValue(data);
      Figure target = new FigureStub(getVertices(data));

      // Act
      int result = target.getArea();

      // Assert
      assertEquals(expected, result);
    }
  }
  /** Test of isWithinBounds method, of class Figure. */
  @Test
  public void testIsWithinBounds() {
    // Arrange
    for (Object[] data : isWithinBoundsData) {
      System.out.println("Figure.isWithinBounds " + getTestCaseName(data));
      boolean expected = getExpectedValue(data);
      Figure targetFigure = new FigureStub(getVertices(data));
      Figure otherFigure = new FigureStub(getOtherVertices(data));

      // Act
      boolean result = targetFigure.isWithinBounds(otherFigure);

      // Assert
      assertEquals(expected, result);
    }
  }
  /** Test of compareTo method, of class Figure. */
  @Test
  public void testCompareTo() {
    // Arrange
    for (Object[] data : compareToData) {
      System.out.println("Figure.compareTo " + getTestCaseName(data));
      int expected = getExpectedValue(data);
      Figure targetFigure = new FigureStub(getVertices(data));
      Figure otherFigure = new FigureStub(getOtherVertices(data));

      // Act
      int result = targetFigure.compareTo(otherFigure);

      // Assert
      assertEquals(expected, result);
    }
  }