The Meta-Environment API

nl.cwi.sen1.visbase.factbrowser.data
Class FactBrowserDataTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by nl.cwi.sen1.visbase.factbrowser.data.FactBrowserDataTest
All Implemented Interfaces:
junit.framework.Test

public class FactBrowserDataTest
extends junit.framework.TestCase

This is the class for JUnit testing of the FactBrowser system. It tests the in memory data structure and also tests the creation of the visualisation component;

Author:
Renze de Vries

Field Summary
private  FactBrowserDataManager dataManager
           
 
Constructor Summary
FactBrowserDataTest()
           
 
Method Summary
 void testCreateRStore()
          This method is here pure for testing of the RStore creation
 void testDataManager()
          For the FactBrowser testing it is very important to test if the datamanger which manages the in memory data tree is present and will initialize.
 void testFactNode()
          This method tests the creation of a fact node and the coupling of this fact node to the RStore parent.
 void testFactNodeConstructor()
          This tests the constructor checking if the factname and factype are correctly initialized
 void testFactTypes()
          This method will test if the RStoreFactType registration is working and it will test for different type of scenarios from nullpointers to string equality and testing the size of the initial plugin container
 void testResetDataManager()
          This test checks if the reset of the dataManager works and checks it
 void testVisualisations()
          This node tests the registration of the VisualisationPlugins.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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

dataManager

private FactBrowserDataManager dataManager
Constructor Detail

FactBrowserDataTest

public FactBrowserDataTest()
Method Detail

testDataManager

public void testDataManager()
For the FactBrowser testing it is very important to test if the datamanger which manages the in memory data tree is present and will initialize.


testCreateRStore

public void testCreateRStore()
This method is here pure for testing of the RStore creation


testFactTypes

public void testFactTypes()
This method will test if the RStoreFactType registration is working and it will test for different type of scenarios from nullpointers to string equality and testing the size of the initial plugin container


testFactNode

public void testFactNode()
This method tests the creation of a fact node and the coupling of this fact node to the RStore parent. It will test the basic properties of the FactNode and if the RStore registers the FactNode properly.


testFactNodeConstructor

public void testFactNodeConstructor()
This tests the constructor checking if the factname and factype are correctly initialized


testVisualisations

public void testVisualisations()
This node tests the registration of the VisualisationPlugins. It is basicly a test of all combined tests in this class. If this works all the tests should work in this class.


testResetDataManager

public void testResetDataManager()
This test checks if the reset of the dataManager works and checks it


The Meta-Environment API