degu.test.model
Class FileStorageTester

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by degu.test.model.FileStorageTester
All Implemented Interfaces:
junit.framework.Test

public class FileStorageTester
extends junit.framework.TestCase

EJB Test Client


Field Summary
protected  FileStorageHome home
          Home interface
 
Constructor Summary
FileStorageTester()
           
FileStorageTester(java.lang.String arg0)
           
 
Method Summary
protected  FileStorageHome getHome()
          Get the home interface
protected  javax.naming.Context getInitialContext()
          Get the initial naming context
protected  void setUp()
          Set up the test case
 void testGetFileAsByteArray()
          Test for degu.model.filestorage.interfaces.FileStorage.getFileAsByteArray()
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

home

protected FileStorageHome home
Home interface

Constructor Detail

FileStorageTester

public FileStorageTester()

FileStorageTester

public FileStorageTester(java.lang.String arg0)
Method Detail

getInitialContext

protected javax.naming.Context getInitialContext()
                                          throws java.lang.Exception
Get the initial naming context

Throws:
java.lang.Exception

getHome

protected FileStorageHome getHome()
                           throws java.lang.Exception
Get the home interface

Throws:
java.lang.Exception

setUp

protected void setUp()
              throws java.lang.Exception
Set up the test case

Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testGetFileAsByteArray

public void testGetFileAsByteArray()
Test for degu.model.filestorage.interfaces.FileStorage.getFileAsByteArray()