public class PhysicalFileFactoryTest extends junit.framework.TestCase
BankleitzahlenVerzeichnis
implementations.Constructor and Description |
---|
PhysicalFileFactoryTest() |
Modifier and Type | Method and Description |
---|---|
PhysicalFileFactory |
getPhysicalFileFactory()
Gets the
PhysicalFileFactory implementation tests are performed with. |
void |
setPhysicalFileFactory(PhysicalFileFactory value)
Sets the
PhysicalFileFactory implementation tests are performed with. |
void |
testAnalyseNoLength()
Test the
PhysicalFileFactory.analyse(FileOperations) method to correctly analyze an empty file by
throwing a PhysicalFileExceptin . |
void |
testAnalyseNull()
Test the
PhysicalFileFactory.analyse(FileOperations) method to handle illegal arguments correctly. |
void |
testCreate()
Tests the
PhysicalFileFactory.createPhysicalFile(FileOperations,int) method to return a working
PhysicalFile instance for the tape and disk format. |
void |
testCreateIllegalArguments()
Tests the
PhysicalFileFactory.createPhysicalFile(FileOperations,int) method to handle illegal arguments
correctly by throwing a corresponding NullPointerException or IllegalArgumentException . |
void |
testGetPhysicalFileNoLength()
Test the
PhysicalFileFactory.getPhysicalFile(FileOperations) method to return en empty
PhysicalFile for a given FileOperations instance of no length. |
void |
testGetPhysicalFileNull()
Test the
PhysicalFileFactory.getPhysicalFile(FileOperations) method to handle illegal arguments
correctly. |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
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
public PhysicalFileFactoryTest()
public PhysicalFileFactory getPhysicalFileFactory()
PhysicalFileFactory
implementation tests are performed with.PhysicalFileFactory
implementation tests are performed with.public final void setPhysicalFileFactory(PhysicalFileFactory value)
PhysicalFileFactory
implementation tests are performed with.value
- the PhysicalFileFactory
implementation to perform tests with.public void testAnalyseNoLength() throws Exception
PhysicalFileFactory.analyse(FileOperations)
method to correctly analyze an empty file by
throwing a PhysicalFileExceptin
.Exception
public void testAnalyseNull() throws Exception
PhysicalFileFactory.analyse(FileOperations)
method to handle illegal arguments correctly.Exception
public void testCreate() throws Exception
PhysicalFileFactory.createPhysicalFile(FileOperations,int)
method to return a working
PhysicalFile
instance for the tape and disk format.Exception
public void testCreateIllegalArguments() throws Exception
PhysicalFileFactory.createPhysicalFile(FileOperations,int)
method to handle illegal arguments
correctly by throwing a corresponding NullPointerException
or IllegalArgumentException
.Exception
public void testGetPhysicalFileNoLength() throws Exception
PhysicalFileFactory.getPhysicalFile(FileOperations)
method to return en empty
PhysicalFile
for a given FileOperations
instance of no length.Exception
public void testGetPhysicalFileNull() throws Exception
PhysicalFileFactory.getPhysicalFile(FileOperations)
method to handle illegal arguments
correctly.Exception
Copyright © 2005–2014 jDTAUS. All rights reserved.