|
j3d.org Code | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectTestCase
org.j3d.geom.TestSphereGenerator
A test case to check the functionality of the SphereGenerator implementation.
The test aims to check the basic calculation routines to make sure there are no array overruns and the geometry is updated correctly. It does not do a check on the coordinates generated. That is a visual test and is performed by the example code.
| Constructor Summary | |
TestSphereGenerator(java.lang.String name)
Create an instance of the test case for this particular test name. |
|
| Method Summary | |
static void |
main(java.lang.String[] argv)
Main method to kick everything off with. |
static Test |
suite()
Fetch the suite of tests for this test class to perform. |
void |
testCoordinateArray()
Test that the size of the array generated for coordinates is correct. |
void |
testCreate()
Test that we can create the Sphere generator with different constructors and have it give us the right information for vertex counts. |
void |
testInvalidFacets()
Test to see how the facet handling works. |
void |
testNormalArray()
Test that the size of the array generated for coordinates is correct. |
void |
testValidFacets()
Test to makes sure the vertex count has been updated properly and the generated array lengths are correct. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TestSphereGenerator(java.lang.String name)
name - The name of the test method to be run| Method Detail |
public static Test suite()
public void testCreate()
public void testCoordinateArray()
public void testNormalArray()
public void testInvalidFacets()
public void testValidFacets()
public static void main(java.lang.String[] argv)
|
j3d.org Code | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||