|
||||||||||
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.test.UserAgentClientTest
public class UserAgentClientTest
Tests just a little part of the UserAgentClient class, exactly at methods where exists some information process. This little test range is because of the tested class functions just like a proxy to GridMachines.
Field Summary | |
---|---|
static java.lang.String |
TEST_ALL_TEST_TYPE
|
Constructor Summary | |
---|---|
UserAgentClientTest(java.lang.String name)
Creates a default Processor object that will be used at all the test without tests. |
Method Summary | |
---|---|
protected void |
setUp()
Set up the environment to run one test! |
protected void |
tearDown()
Clean what it have to clean! |
void |
testGetFile()
Tests the GetFile method... |
void |
testPutAndStoreFilesWithGuMTypeLinux()
Tests if a put and store file occurs with success in a linux GuM. |
void |
testPutAndStoreFilesWithGuMTypeWindows()
Tests if a put and store file occurs with success in a windows GuM. |
void |
testPutFile_MultipleOfReadBlock_Size()
Tests if the putFile algorithm is fragmenting correctly the file! In this case test for a file that has exactly the lenght of the block and 2 times it. |
void |
testPutFile_Size0()
Tests if the putFile algorithm is fragmenting correctly the file! In this case test for an empty file. |
void |
testPutFileStreamCloseWithException()
Tests if the stream is closed. |
void |
testPutFileStreamCloseWithoutException()
Tests if the stream is closed. |
void |
testRealGetFile()
Tests the GetFile method... |
void |
testRealPutFile_MultipleOfReadBlock_Size()
Tests if the putFile algorithm is fragmenting correctly the file! In this case test for a file that has exactly the lenght of the block and 2 times it. |
void |
testRealPutFile_Size0()
Tests if the putFile algorithm is fragmenting correctly the file! In this case test for an empty file. |
void |
testRealPutFileStreamCloseWithException()
Tests if the stream is closed. |
void |
testRealPutFileStreamCloseWithoutException()
Tests if the stream is closed. |
void |
testRealStoreCloseWithException()
Tests if the RandomAccessFile is not open when File does not exist. |
void |
testRealStoreCloseWithoutException()
Tests if the RandomAccessFile is closed and the FileLock is not released. |
void |
testStoreCloseWithException()
Tests if the RandomAccessFile is not open when File does not exist. |
void |
testStoreCloseWithoutException()
Tests if the RandomAccessFile is closed and the FileLock is not released. |
void |
testUserAgerClient()
|
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 |
Field Detail |
---|
public static final java.lang.String TEST_ALL_TEST_TYPE
Constructor Detail |
---|
public UserAgentClientTest(java.lang.String name)
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 testUserAgerClient() throws java.lang.Exception
java.lang.Exception
public void testPutFile_Size0() throws UnavailableGumException, FileTransferException, java.rmi.RemoteException
UnavailableGumException
FileTransferException
java.rmi.RemoteException
public void testPutFile_MultipleOfReadBlock_Size() throws java.io.IOException
java.io.IOException
public void testPutFileStreamCloseWithException() throws java.io.IOException
java.io.IOException
public void testPutFileStreamCloseWithoutException() throws java.io.IOException
java.io.IOException
public void testGetFile() throws java.rmi.RemoteException
java.rmi.RemoteException
public void testStoreCloseWithoutException() throws java.io.IOException, UnableToExecuteException, UnavailableGumException, FileTransferException, java.io.FileNotFoundException
java.io.IOException
UnavailableGumException
java.io.FileNotFoundException
FileTransferException
UnableToExecuteException
public void testPutAndStoreFilesWithGuMTypeWindows() throws UnableToExecuteException, UnavailableGumException, FileTransferException, java.io.FileNotFoundException, java.rmi.RemoteException
java.io.FileNotFoundException
UnavailableGumException
FileTransferException
java.io.FileNotFoundException
UnableToExecuteException
java.rmi.RemoteException
public void testPutAndStoreFilesWithGuMTypeLinux() throws UnableToExecuteException, UnavailableGumException, FileTransferException, java.io.FileNotFoundException, java.rmi.RemoteException
java.io.FileNotFoundException
UnavailableGumException
FileTransferException
java.io.FileNotFoundException
UnableToExecuteException
java.rmi.RemoteException
public void testStoreCloseWithException() throws java.rmi.RemoteException
java.rmi.RemoteException
public void testRealPutFile_Size0() throws java.rmi.RemoteException, java.io.IOException, UnavailableGumException, FileTransferException
UnavailableGumException
FileTransferException
java.rmi.RemoteException
java.io.IOException
public void testRealPutFile_MultipleOfReadBlock_Size() throws java.io.IOException
java.io.IOException
public void testRealPutFileStreamCloseWithException() throws java.io.IOException
java.io.IOException
public void testRealPutFileStreamCloseWithoutException() throws java.io.IOException
java.io.IOException
public void testRealGetFile() throws java.rmi.RemoteException
java.rmi.RemoteException
public void testRealStoreCloseWithoutException() throws java.io.IOException, UnableToExecuteException, UnavailableGumException, FileTransferException, java.io.FileNotFoundException
java.io.IOException
UnavailableGumException
java.io.FileNotFoundException
FileTransferException
UnableToExecuteException
public void testRealStoreCloseWithException() throws java.lang.Exception
java.rmi.RemoteException
UnavailableGumException
java.io.FileNotFoundException
FileTransferException
UnableToExecuteException
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |