|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.ojb.broker.ExtentAwarePathExpressionsTest
Tests for extent aware path expressions
Constructor Summary | |
ExtentAwarePathExpressionsTest()
|
|
ExtentAwarePathExpressionsTest(java.lang.String testName)
|
Method Summary | |
static void |
main(java.lang.String[] args)
You can run the test like a java app |
void |
setUp()
|
static junit.framework.Test |
suite()
|
void |
tearDown()
|
void |
testAddPathClass()
|
void |
testAddPathClasses()
The order of criteria elements influences the use of parenthesis, If we add the Like element before the NotNull one we get the wrong query Right clause : WHERE WHERE (A2.NAME IS NOT NULL OR A2E1.NAME IS NOT NULL ) AND A0.HEADLINE LIKE 'Bra% Wrong clause : WHERE (A0.HEADLINE LIKE 'Bra%' ) AND A2.NAME IS NOT NULL OR A2E1.NAME IS NOT NULL |
void |
testNotNullPathElement()
|
void |
testSetPathClass()
|
void |
testWithoutHintClass1()
|
void |
testWithoutHintClass2()
|
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 |
Constructor Detail |
public ExtentAwarePathExpressionsTest()
public ExtentAwarePathExpressionsTest(java.lang.String testName)
Method Detail |
public static void main(java.lang.String[] args)
public static junit.framework.Test suite()
public void setUp() throws PBFactoryException
PBFactoryException
public void tearDown()
public void testWithoutHintClass1() throws java.lang.Exception
java.lang.Exception
public void testWithoutHintClass2() throws java.lang.Exception
java.lang.Exception
public void testNotNullPathElement()
public void testSetPathClass()
public void testAddPathClass()
public void testAddPathClasses()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |