public class TestProgram
extends java.lang.Object
| Constructor | Description |
|---|---|
TestProgram() |
| Modifier and Type | Method | Description |
|---|---|---|
(package private) static java.util.List<Shape> |
createShapeArray() |
Creates a list with various shapes.
|
static void |
main(java.lang.String[] args) |
|
(package private) static void |
printShapes(java.util.List<Shape> array,
java.lang.String label) |
prints the shapes, one per line.
|
(package private) static void |
testCircle() |
Test cases for the Circle class
|
(package private) static void |
testRectangle(Point a,
Point b,
Point c,
Point d) |
Test cases for the Rectangle class
|
(package private) static void |
testSorting() |
|
(package private) static void |
testTriangle(Point a,
Point b,
Point c) |
Test cases for the Triangle class
|
static void testTriangle(Point a, Point b, Point c)
a - initial value for the Triangle constructorb - initial value for the Triangle constructorc - initial value for the Triangle constructorstatic void testRectangle(Point a, Point b, Point c, Point d)
a - initial value for the Rectangle constructorb - initial value for the Rectangle constructorc - initial value for the Rectangle constructord - initial value for the Rectangle constructorstatic void testCircle()
static void testSorting()
static java.util.List<Shape> createShapeArray()
static void printShapes(java.util.List<Shape> array, java.lang.String label)
array - list of various shapeslabel - a label that's printed before the shapes are printed. In this case SORTED or UNSORTEDpublic static void main(java.lang.String[] args)