|
The Meta-Environment API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
nl.cwi.sen1.visbase.rstorecontainer.RStoreContainerTest
public class RStoreContainerTest
JUnit Testcase used to test RStoreContainer. Some tests depend on the file.
Field Summary | |
---|---|
private RStoreContainer |
m_container
|
private static org.apache.commons.logging.Log |
m_log
|
private static java.lang.String |
NAME_OF_TESTFILE
|
private static java.lang.String |
NAME_OF_UPDATED_TESTFILE
|
Constructor Summary | |
---|---|
RStoreContainerTest()
|
Method Summary | |
---|---|
private java.io.File |
getTestFile()
Returns a File reference to a test file. |
private java.io.File |
getUpdatedTestFile()
Returns a File reference to a test file that is a updated version of the default test file. |
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testGetLoadedRStoresMap()
Very simple test to make sure that the Map containing the loaded RStores is never null. |
void |
testGetName()
Simple getter test |
void |
testGetPureFactory()
Very simple test to make sure that the Factory is never null |
void |
testInputStreamFromFile()
Opens the reference to the Test File (DTF). |
void |
testMainWithoutToolbusConnection()
Tests the static main method that is called by the ToolBus Java connector. |
void |
testParseRstore()
Parses the RStore data from the test file and checks the expected values. |
void |
testRcGetFactDataWithoutToolbusConnection()
Tests the rcGetFactData method without having an actual connection with the Toolbus. |
void |
testRcGetRstoreFactsWithoutToolbusConnection()
Tests the rcGetRstoreFacts method without having an actual connection with the Toolbus. |
void |
testRcLoadRstoreWithoutToolbusConnection()
Tests the rcLoadRstore method without having an actual connection with the Toolbus. |
void |
testRcUnLoadRstoreWithoutToolbusConnection()
Tests the rcUnloadRstore method without having an actual connection with the Toolbus. |
void |
testRecTerminateWithoutToolbusConnection()
Only calls the recTerminate method |
void |
testRegisterRStore()
Creates a RStore and tries to register it. |
void |
testSendFactUpdatedEvents()
Only tests null input exceptions |
void |
testToolbusConstructorWithoutToolbusConnection()
Tests the constructor that is used to make a connection with the ToolBus. |
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 |
Field Detail |
---|
private RStoreContainer m_container
private static final org.apache.commons.logging.Log m_log
private static final java.lang.String NAME_OF_TESTFILE
private static final java.lang.String NAME_OF_UPDATED_TESTFILE
Constructor Detail |
---|
public RStoreContainerTest()
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 testInputStreamFromFile() throws java.lang.Exception
java.lang.Exception
public void testParseRstore() throws java.lang.Exception
java.lang.Exception
public void testRegisterRStore() throws java.lang.Exception
java.lang.Exception
public void testGetLoadedRStoresMap()
public void testRcLoadRstoreWithoutToolbusConnection()
public void testRcGetRstoreFactsWithoutToolbusConnection()
public void testRcGetFactDataWithoutToolbusConnection()
public void testRcUnLoadRstoreWithoutToolbusConnection()
public void testToolbusConstructorWithoutToolbusConnection()
public void testMainWithoutToolbusConnection()
public void testRecTerminateWithoutToolbusConnection()
public void testGetPureFactory()
private java.io.File getTestFile()
private java.io.File getUpdatedTestFile()
getTestFile()
public void testGetName()
public void testSendFactUpdatedEvents()
|
The Meta-Environment API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |