public class RegistrationTest extends StorageTest
This test starts a special testing naming server, creates and populates temporary directory, and starts the storage server in that directory. It then commands the storage server to connect to the naming server, checking that the storage server transmits the correct directory listing and removes files from the directory as directed by the naming server. It also checks that the storage server has correctly pruned empty directories.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
notice
Test notice.
|
static java.lang.Class[] |
prerequisites
Prerequisites.
|
client_stub, command_stub, directory, naming_server, naming_stub
Constructor and Description |
---|
RegistrationTest()
Creates a
RegistrationTest object. |
Modifier and Type | Method and Description |
---|---|
protected void |
perform()
Runs the core of the test.
|
clean, initialize
cleanupFailure, cleanupSuccess, failure, success, task, task
public static final java.lang.String notice
public static final java.lang.Class[] prerequisites
protected void perform() throws TestFailed
perform
in class Test
TestFailed
- If the test fails.