j3d.org Code

org.j3d.geom
Class TestBoxGenerator

java.lang.Object
  extended byTestCase
      extended byorg.j3d.geom.TestBoxGenerator

public class TestBoxGenerator
extends TestCase

A test case to check the functionality of the BoxGenerator 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.

Version:
$Revision: 1.2 $
Author:
Justin Couch
See Also:
Serialized Form

Constructor Summary
TestBoxGenerator(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 Box generator with different constructors and have it give us the right information for vertex counts.
 void testNormalArray()
          Test that the size of the array generated for coordinates is correct.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestBoxGenerator

public TestBoxGenerator(java.lang.String name)
Create an instance of the test case for this particular test name.

Parameters:
name - The name of the test method to be run
Method Detail

suite

public static Test suite()
Fetch the suite of tests for this test class to perform.

Returns:
A collection of all the tests to be run

testCreate

public void testCreate()
Test that we can create the Box generator with different constructors and have it give us the right information for vertex counts.


testCoordinateArray

public void testCoordinateArray()
Test that the size of the array generated for coordinates is correct. This also makes sure that the calculation routines do not generate errors either


testNormalArray

public void testNormalArray()
Test that the size of the array generated for coordinates is correct. This also makes sure that the calculation routines do not generate errors either


main

public static void main(java.lang.String[] argv)
Main method to kick everything off with.


j3d.org Code

Latest Info from http://code.j3d.org/
Copyright © 2001 - j3d.org