|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--com.hp.hpl.mesa.rdf.jena.rdb.TestStoreRDB
Test harness for StoreRDB and supporting classes.
Constructor Summary | |
TestStoreRDB(java.lang.String name,
java.lang.String layout,
java.lang.String database)
Construct a test suitable for the given layout and database combo |
Method Summary | |
void |
clearModel()
remove all current statements |
void |
createModel(boolean hint)
Create a model to be tested |
void |
doTestConstraints()
Check list statements with constraints |
void |
doTestDeleteStatement()
Check delete statement - this version is dependent on result order, may need changing |
void |
doTestLangAttrib()
Check xml:lang on literals - multibyte support depends on the database |
void |
doTestListNamespaces()
Check listNamepsaces |
void |
doTestListStatements()
Check list statements - this version is dependent on result order, may need changing |
void |
doTestListSubjects()
Check listSubjects |
void |
doTestMultipleAssert()
Check case of asserting the same statement twice |
void |
doTestMultipleResources()
Check asserting resources with different namespaces but same local name |
void |
doTestSQLCachePS()
Check SQLCache preparedStatement functions |
void |
listTable(java.lang.String tname)
Helper function during debug - list a table |
void |
setUp()
Support code - open a connection to a newly formatted database. |
static junit.framework.TestSuite |
suite(java.lang.String layout,
java.lang.String database)
|
void |
tearDown()
Support code - tear down the connection |
void |
testStore()
The main test function. |
void |
testStoreHint()
Try again with storage hints on p1 |
Methods inherited from class junit.framework.TestCase |
countTestCases, getName, name, run, run, runBare, setName, toString |
Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TestStoreRDB(java.lang.String name, java.lang.String layout, java.lang.String database)
Method Detail |
public void setUp() throws RDFRDBException
public void tearDown() throws java.sql.SQLException, RDFRDBException
public void createModel(boolean hint) throws RDFException
public void clearModel() throws RDFException
public void testStore() throws java.sql.SQLException, RDFException
public void testStoreHint() throws java.sql.SQLException, RDFException
public void doTestListSubjects() throws java.sql.SQLException, RDFException
public void doTestListNamespaces() throws RDFException, java.sql.SQLException
public void doTestListStatements() throws RDFException, java.sql.SQLException
public void doTestConstraints() throws RDFException, java.sql.SQLException
public void doTestDeleteStatement() throws RDFException
public void doTestSQLCachePS() throws java.sql.SQLException, RDFRDBException
public void doTestMultipleAssert() throws RDFException, java.sql.SQLException
public void doTestMultipleResources() throws RDFException
public void doTestLangAttrib() throws RDFException
public void listTable(java.lang.String tname) throws java.sql.SQLException, RDFRDBException
public static junit.framework.TestSuite suite(java.lang.String layout, java.lang.String database)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |