|
|||||||||
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 org.eigenbase.test.ConnectStringParserTest
public class ConnectStringParserTest
Unit test for JDBC connect string parser, ConnectStringParser
. The
ConnectStringParser is adapted from code in Mondrian, but most of the tests
below were unfortunately "reinvented" prior to having the Mondrian unit tests
in hand.
Constructor Summary | |
---|---|
ConnectStringParserTest()
|
Method Summary | |
---|---|
(package private) static void |
assertExceptionMatches(Throwable e,
String expectedPattern)
|
void |
testComplexStrings()
tests complex connect strings, adapted directly from Mondrian tests. |
void |
testConnectStringErrors()
tests for specific errors thrown by the parser. |
void |
testOleDbExamples()
Tests most of the examples from the OLE DB spec. |
void |
testSimpleStrings()
tests simple connect string, adapted from Mondrian tests. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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 |
Constructor Detail |
---|
public ConnectStringParserTest()
Method Detail |
---|
public void testSimpleStrings() throws Throwable
Throwable
public void testComplexStrings() throws Throwable
Throwable
public void testConnectStringErrors() throws Throwable
Throwable
public void testOleDbExamples() throws Throwable
Throwable
static void assertExceptionMatches(Throwable e, String expectedPattern)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |