Package edu.pdx.cs.joy.family
Class RemoteTestCase
java.lang.Object
edu.pdx.cs.joy.family.RemoteTestCase
- Direct Known Subclasses:
RemoteFamilyTreeTest,RemotePersonTest
This is the abstract superclass for all of the remote family
tree tests.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassertEquals(Date d1, Date d2) Asserts the equality of two dates.protected voidbind(RemoteFamilyTree tree) Convenience method that binds a givenRemoteFamilyTreeinto the RMI namespace.static voidA JUnit failure that is caused by an exception.protected StringReturns the name that theRemoteFamilyTreeis bound into in the RMI namespace.protected RemoteFamilyTreegetTree()Returns theRemoteFamilyTreeused by this testvoidCreates an emptyRemoteFamilyTreeand binds it into the RMI namespace.voidtearDown()Unbinds the remote family tree from the RMI namespaceprotected voidunbind()Convenience method that unbinds and shuts down the remote family tree from the RMI namespace.
-
Constructor Details
-
RemoteTestCase
public RemoteTestCase()
-
-
Method Details
-
setUp
Creates an emptyRemoteFamilyTreeand binds it into the RMI namespace. -
tearDown
Unbinds the remote family tree from the RMI namespace -
getFamilyName
Returns the name that theRemoteFamilyTreeis bound into in the RMI namespace. -
getTree
Returns theRemoteFamilyTreeused by this test -
bind
Convenience method that binds a givenRemoteFamilyTreeinto the RMI namespace. -
unbind
Convenience method that unbinds and shuts down the remote family tree from the RMI namespace. -
assertEquals
Asserts the equality of two dates. Only takes the month, day, and year into account. -
fail
A JUnit failure that is caused by an exception. This method provides us with a nice strack trace for the failure.- Since:
- Winter 2004
-