|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.ourgrid.gridmachine.useragent.UserAgentServerImplTest
public class UserAgentServerImplTest
Constructor Summary | |
---|---|
UserAgentServerImplTest(java.lang.String name)
This method constructs a new instance of this TestCase. |
Method Summary | |
---|---|
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testBadExecute()
This method test the execution of a wrong command. |
void |
testChangeFilePermissions()
|
void |
testCreatePlaypen()
Test the createPlaypen() method by a UA constructed using the default constructor |
void |
testCreateStorageTwoUAOnePort()
Try to create two User Agents using the same port number and perform some operations using one of the UAs created. |
void |
testDestroyPlaypen()
Try to destroy a playpen in several situations! |
void |
testFileExists()
This method tests the behavior of testing the existence of a remote file using an UA. |
void |
testGetFile()
Test the get file method using an UserAgent created by default constructor! |
void |
testGetFileDoesNotExist()
Test the get file method using an UserAgent created by default constructor! |
void |
testGetRemoteFileDigest()
This method tests the checksum generation is correct |
void |
testGetRemoteFileLength()
This test verifies if the remote file length determination works on several situations: - File has size Zero. |
void |
testGoodExecute()
This method test the execution of a correct command. |
void |
testPutFileCommon()
Test the putFile() method in a common situation. |
void |
testPutFileDefaultConstructor()
Test the put file method using an UserAgent created by default constructor! |
void |
testPutFileOnUnauthorizedArea()
The the putFile() method when is intended to create a file on unauthorized area |
void |
testPutNullFile()
This method tests the Put File Method by trying the extreme situations! |
void |
testStartAndStopReplica()
Testing the start and stop replica at a gum. |
void |
testUaKill()
Use a inner thread object to test the kill method. |
void |
testUserAgentAttatchment()
Test the object creation and its attatchment on a port. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface junit.framework.Test |
---|
countTestCases, run |
Constructor Detail |
---|
public UserAgentServerImplTest(java.lang.String name)
name
- The name of the TestCase class.Method Detail |
---|
protected void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
protected void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
public void testGetRemoteFileLength()
public void testUserAgentAttatchment() throws java.lang.Exception
java.lang.Exception
public void testPutNullFile() throws java.lang.Exception
java.lang.Exception
public void testPutFileOnUnauthorizedArea()
public void testPutFileCommon() throws java.lang.Exception
java.lang.Exception
public void testPutFileDefaultConstructor() throws java.lang.Exception
java.lang.Exception
public void testGetFile() throws java.lang.Exception
java.lang.Exception
public void testGetFileDoesNotExist() throws java.lang.Exception
java.lang.Exception
public void testCreateStorageTwoUAOnePort() throws java.lang.Exception
java.lang.Exception
public void testCreatePlaypen() throws java.lang.Exception
java.lang.Exception
- If some error occurs during the test.public void testChangeFilePermissions() throws java.lang.Exception
java.lang.Exception
public void testDestroyPlaypen() throws java.lang.Exception
java.lang.Exception
- if some unexpected error occurs.public void testFileExists() throws java.lang.Exception
java.lang.Exception
- if an unexpected error occurspublic void testGetRemoteFileDigest() throws java.lang.Exception
java.lang.Exception
public void testGoodExecute() throws java.lang.Exception
java.lang.Exception
public void testBadExecute() throws java.lang.Exception
java.lang.Exception
public void testUaKill() throws java.lang.Exception
java.lang.Exception
public void testStartAndStopReplica() throws java.lang.Exception
java.lang.Exception
- If any exception happen.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |