The Meta-Environment API

nl.cwi.sen1.visplugin.barchart
Class BarChartVisualizationTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by nl.cwi.sen1.visplugin.barchart.BarChartVisualizationTest
All Implemented Interfaces:
junit.framework.Test

public class BarChartVisualizationTest
extends junit.framework.TestCase

Test class for the PieChartVisualization Plugin. Original code : PieChart plugin ( A. Belgraver, R. van Remortel )

Author:
Srinivasan Tharmarajah

Field Summary
private  BCVisualizationController m_controller
           
private  nl.cwi.sen1.relationstores.Factory m_factory
           
private  nl.cwi.sen1.relationstores.types.RTuple m_relIntStr
           
private  nl.cwi.sen1.relationstores.types.RTuple m_relStrInt
           
private  nl.cwi.sen1.relationstores.types.RTuple m_relWrong
           
private  nl.cwi.sen1.relationstores.types.RType m_typeRelIntStr
           
private  nl.cwi.sen1.relationstores.types.RType m_typeRelStrInt
           
private  nl.cwi.sen1.relationstores.types.RType m_typeRelWrong
           
private  BCVisualizationWindow m_window
           
 
Constructor Summary
BarChartVisualizationTest()
           
 
Method Summary
private  boolean isRTypeInATermArray(aterm.ATerm[] arr, nl.cwi.sen1.relationstores.types.RType type)
          Test if a specific RType is part of an ATerm array.
protected  void setUp()
          Test setup.
 void testBarChartVisualizationController()
          Test to see whether the control returns the correct type Window.
 void testControllerSupportedTypes()
          See if the controller correctly advertises a supported types.
 void testConvertRTupleToDataset()
          Test to see if RTuples are correctly converted, rel & rel.
 void testGetChartName()
          Test to see if the name for the chart is correctly found.
 void testTypeCheck()
          Test to see if the TypeCheck system works.
 
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

m_controller

private BCVisualizationController m_controller

m_window

private BCVisualizationWindow m_window

m_factory

private nl.cwi.sen1.relationstores.Factory m_factory

m_relStrInt

private nl.cwi.sen1.relationstores.types.RTuple m_relStrInt

m_relIntStr

private nl.cwi.sen1.relationstores.types.RTuple m_relIntStr

m_relWrong

private nl.cwi.sen1.relationstores.types.RTuple m_relWrong

m_typeRelStrInt

private nl.cwi.sen1.relationstores.types.RType m_typeRelStrInt

m_typeRelIntStr

private nl.cwi.sen1.relationstores.types.RType m_typeRelIntStr

m_typeRelWrong

private nl.cwi.sen1.relationstores.types.RType m_typeRelWrong
Constructor Detail

BarChartVisualizationTest

public BarChartVisualizationTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Test setup.

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

testBarChartVisualizationController

public void testBarChartVisualizationController()
Test to see whether the control returns the correct type Window.


testTypeCheck

public void testTypeCheck()
Test to see if the TypeCheck system works.


testGetChartName

public void testGetChartName()
Test to see if the name for the chart is correctly found.


testConvertRTupleToDataset

public void testConvertRTupleToDataset()
Test to see if RTuples are correctly converted, rel & rel.


testControllerSupportedTypes

public void testControllerSupportedTypes()
See if the controller correctly advertises a supported types.


isRTypeInATermArray

private boolean isRTypeInATermArray(aterm.ATerm[] arr,
                                    nl.cwi.sen1.relationstores.types.RType type)
Test if a specific RType is part of an ATerm array.

Parameters:
arr - Array of ATerms
type - RType to find in ATerm array
Returns:
true if it is in the array, false if it isn't

The Meta-Environment API