|
The Meta-Environment API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase nl.cwi.sen1.visplugin.graphplugin.GraphVisualizationTest
public class GraphVisualizationTest
Test class for the GraphChartVisualization Plugin. Parts of the code copied and adapted from the PieCharVisualizationTest.
Field Summary | |
---|---|
private GraphVisualizationController |
m_controller
|
private nl.cwi.sen1.relationstores.Factory |
m_factory
|
private nl.cwi.sen1.relationstores.types.RTuple |
m_relIntInt
|
private nl.cwi.sen1.relationstores.types.RTuple |
m_relStrStr
|
private nl.cwi.sen1.relationstores.types.RType |
m_typeRelIntInt
|
private nl.cwi.sen1.relationstores.types.RType |
m_typeRelStrStr
|
private GraphVisualizationWindow |
m_window
|
Constructor Summary | |
---|---|
GraphVisualizationTest()
|
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 |
testControllerSupportedTypes()
See if the controller correctly advertises a supported types. |
void |
testGetChartName()
Test to see if the name for the chart is correctly found. |
void |
testPieChartVisualizationController()
Test to see whether the control returns the correct type Window. |
void |
testTypeCheck()
Test to see if the supported types 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 |
---|
private GraphVisualizationController m_controller
private GraphVisualizationWindow m_window
private nl.cwi.sen1.relationstores.Factory m_factory
private nl.cwi.sen1.relationstores.types.RTuple m_relStrStr
private nl.cwi.sen1.relationstores.types.RTuple m_relIntInt
private nl.cwi.sen1.relationstores.types.RType m_typeRelStrStr
private nl.cwi.sen1.relationstores.types.RType m_typeRelIntInt
Constructor Detail |
---|
public GraphVisualizationTest()
Method Detail |
---|
protected void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
public void testPieChartVisualizationController()
public void testTypeCheck()
public void testGetChartName()
public void testControllerSupportedTypes()
private boolean isRTypeInATermArray(aterm.ATerm[] arr, nl.cwi.sen1.relationstores.types.RType type)
arr
- Array of ATermstype
- RType to find in ATerm array
|
The Meta-Environment API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |