Class IntersectingCircleObjectsFixture

Object
IntersectingCircleObjectsFixture

public class IntersectingCircleObjectsFixture extends Object
A fixture for generating collections of intersecting and non-intersecting circular objects.

This class provides utility methods to create object collections with specific configurations of intersecting and non-intersecting circles for testing purposes.

  • Method Details

    • generateIntersectingObjects

      public static ObjectCollection generateIntersectingObjects(int numberIntersecting, int numberNotIntersecting, boolean sameSize)
      Generates a collection of circular objects, some intersecting and some not intersecting.
      Parameters:
      numberIntersecting - the number of intersecting circles to produce
      numberNotIntersecting - the number of non-intersecting circles to produce
      sameSize - if true, all circles have the same radius (INITIAL_RADIUS); if false, the radius gradually increments
      Returns:
      an ObjectCollection containing the generated circular objects