The Meta-Environment API

nl.cwi.sen1.visbase.factbrowser
Class FactBrowserTest

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

public class FactBrowserTest
extends junit.framework.TestCase

This is the class which tests the toolbus interfaces as far as is possible.
Classes not tested FactBrowserDemo - This class was not tested because it only contains visual items FactBrowserTif - This class was not tested because toolbus generated file FactBrowserTool - This class was not tested because toolbus generated file FactBrowserBridge - This class was not tested because toolbus generated file
methods not tested FactBrowser.fbShowRstoreFacts - Not tested because of complex RStoreFacts which must be composed FactBrowser.recAckEvent - This is a blank method simply for toolbus compatibility FactBrowser.recTerminate - This is a method which is called when the toolbus is terminating FactBrowser.initStudioPlugin - Can only be tested when connected to the MetaStudio FactBrowser.initFactBrowserLayout - This is a visual method so can only be tested with a visual environment FactBrowser.openRstore - Can only be tested when connected to the MetaStudio FactBrowser.connectPanelWithMenu - Can only be tested when connected to the MetaStudio

Author:
Renze de Vries

Field Summary
private  FactBrowser factBrowser
           
private  nl.cwi.sen1.relationstores.Factory factory
           
private  aterm.pure.PureFactory pureFactory
           
 
Constructor Summary
FactBrowserTest()
           
 
Method Summary
protected  void setUp()
          This method sets up the Unit Test so the nessecary factory instances are present.
 void testAddVisualisation()
          This method tests if it is possible to add a visualisation plugin to the FactBrowser
 void testFactory()
          This method tests is the initialisations in the "SetUp" are working as should be.
 void testMouseClicked()
          This test checks if the retrieval of data is succesfull when a double click should happen.
 void testToolName()
          Test if the correct toolname is given for the FactBrowser
 void testVisualisationWindow()
          Test it the visualisationWindow will create
 
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

pureFactory

private aterm.pure.PureFactory pureFactory

factory

private nl.cwi.sen1.relationstores.Factory factory

factBrowser

private FactBrowser factBrowser
Constructor Detail

FactBrowserTest

public FactBrowserTest()
Method Detail

setUp

protected void setUp()
This method sets up the Unit Test so the nessecary factory instances are present.

Overrides:
setUp in class junit.framework.TestCase

testToolName

public void testToolName()
Test if the correct toolname is given for the FactBrowser


testFactory

public void testFactory()
This method tests is the initialisations in the "SetUp" are working as should be.


testAddVisualisation

public void testAddVisualisation()
This method tests if it is possible to add a visualisation plugin to the FactBrowser


testVisualisationWindow

public void testVisualisationWindow()
Test it the visualisationWindow will create


testMouseClicked

public void testMouseClicked()
This test checks if the retrieval of data is succesfull when a double click should happen. It cannot simulate the mouseclick itself but does do the same interanlly as the mouseClicked method.


The Meta-Environment API