Class A1Test

java.lang.Object
  |
  +--A1Test

public class A1Test
extends java.lang.Object

Perform some basic tests on A1Driver, Space, and Point


Field Summary
static A1Driver a1
           
 
Constructor Summary
A1Test()
           
 
Method Summary
static void main(java.lang.String[] args)
          Run the tests.
static void test1()
          Test reading individual points from standard input, and printing the space in order of the distance from the viewpoint.
static void test2()
          Test the load method in A1Driver, and test that changing the view point results in a correct reordering of the points in space.
static void test3()
          Test the get method from A1Driver
static void test4()
          Test the samePlane method in each dimension.
static void test5()
          Test the write method in A1Driver by writing to a file and reloading the points.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

a1

public static A1Driver a1
Constructor Detail

A1Test

public A1Test()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Run the tests.

java.io.IOException

test1

public static void test1()
                  throws java.io.IOException
Test reading individual points from standard input, and printing the space in order of the distance from the viewpoint.

java.io.IOException

test2

public static void test2()
                  throws java.io.IOException
Test the load method in A1Driver, and test that changing the view point results in a correct reordering of the points in space.

java.io.IOException

test3

public static void test3()
                  throws java.io.IOException
Test the get method from A1Driver

java.io.IOException

test4

public static void test4()
                  throws java.io.IOException
Test the samePlane method in each dimension.

java.io.IOException

test5

public static void test5()
                  throws java.io.IOException
Test the write method in A1Driver by writing to a file and reloading the points.

java.io.IOException