private class RegistrationTest.UnsuccessfulStorageServer extends TestStorageServer
null
pointer and duplicate
registration tests.client_stub, command_stub, test
Constructor and Description |
---|
UnsuccessfulStorageServer()
Create the storage server.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
testDuplicateRegistration()
Tests that the naming server rejects repeat registrations of the
same storage server.
|
(package private) void |
testNullPointers()
Tests that the naming server
register method rejects
null arguments. |
copy, create, delete, read, size, start, startSkeletons, stop, write
void testDuplicateRegistration() throws TestFailed
This method is a replacement for the start
method of
the storage server.
TestFailed
- If the naming server accepts the second
registration.void testNullPointers() throws TestFailed
register
method rejects
null
arguments.
This method is a replacement for the start
method of
the storage server.
TestFailed
- If the register
method accepts
null
as an argument for any of the
formal parameters.