|
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.datatypes.FactInfoTest
public class FactInfoTest
Tests the FactInfo class.
Field Summary | |
---|---|
private FactInfo |
m_factInfo
|
private static org.apache.commons.logging.Log |
m_log
|
private static int |
RSTORE_ID
|
private static java.lang.String |
RSTORE_NAME
|
private static java.lang.String |
RSTORE_TYPE
|
Constructor Summary | |
---|---|
FactInfoTest()
|
Method Summary | |
---|---|
static nl.cwi.sen1.relationstores.types.RTuple |
getTestRTuple(java.lang.String name)
Creates a dummy RTuple. |
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testConstructFromAtermList()
Tests the Constructor used to parse ATermList data. |
void |
testConstructFromRTuple()
Tests the Constructor used to parse RTuple data (this code is actually also indirectly tested from the RStoreContainerTest). |
void |
testGetId()
Simple getter test. |
void |
testGetName()
Simple getter test. |
void |
testGetRType()
Simple getter test. |
void |
testGetType()
Simple getter test. |
void |
testToAtermList()
Tests the code that creates an AtermList. |
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 FactInfo m_factInfo
private static final org.apache.commons.logging.Log m_log
private static final int RSTORE_ID
private static final java.lang.String RSTORE_NAME
private static final java.lang.String RSTORE_TYPE
Constructor Detail |
---|
public FactInfoTest()
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 testGetId()
public void testGetName()
public void testGetType()
public void testGetRType()
public void testToAtermList()
public void testConstructFromAtermList() throws java.lang.Exception
java.lang.Exception
public void testConstructFromRTuple()
RStoreContainerTest
public static nl.cwi.sen1.relationstores.types.RTuple getTestRTuple(java.lang.String name)
rtuple("##name##",relation([str,str]),set([tuple([str("a"),str("b")]),tuple([str("b"),str("c")]),tuple([str("c"),str("d")]),tuple([str("d"),str("a")])]))
|
The Meta-Environment API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |