org.apache.ojb.odmg
Class OQLTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.ojb.odmg.OQLTest
All Implemented Interfaces:
junit.framework.Test

public class OQLTest
extends junit.framework.TestCase

Version:
$Id: OQLTest.java,v 1.14 2004/01/22 16:01:19 arminw Exp $

Nested Class Summary
static class OQLTest.AbstractAnimal
           
static class OQLTest.Fish
           
static class OQLTest.Gourmet
           
static interface OQLTest.InterfaceAnimal
           
static interface OQLTest.InterfaceFood
           
static class OQLTest.Mammal
           
static class OQLTest.Reptile
           
static class OQLTest.Salad
           
 class OQLTest.Zoo
           
 
Constructor Summary
OQLTest(java.lang.String name)
           
 
Method Summary
 void _testFunctions()
           
 void _testSubQuery1()
          test Subquery get all articles with price > avg(price) PROBLEM: avg(price) is NOT extent aware !! test may fail if db does not support sub queries
static void main(java.lang.String[] args)
           
 void setUp()
          Insert the method's description here.
 void tearDown()
          Insert the method's description here.
 void testGetWithLiteral()
          test the following conditions: != support literal support at binding.
 void testInListQuery()
           
 void testInterfaceQuery()
           
 void testPrefetchQuery()
           
 void testQueryBetween()
           
 void testQueryIn()
           
 void testQueryNotNull()
           
 void testQueryNull()
           
 void testReportQueryGroupBy()
          ReportQuery returning rows with summed stock and price per article group
 
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

OQLTest

public OQLTest(java.lang.String name)
Method Detail

main

public static void main(java.lang.String[] args)

setUp

public void setUp()
Insert the method's description here. Creation date: (06.12.2000 21:58:53)


tearDown

public void tearDown()
Insert the method's description here. Creation date: (06.12.2000 21:59:14)


testGetWithLiteral

public void testGetWithLiteral()
                        throws java.lang.Exception
test the following conditions: != support literal support at binding. A prior bug where criteria was reporting as bindable when it was in fact a literal.

Throws:
java.lang.Exception

testQueryIn

public void testQueryIn()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testQueryNull

public void testQueryNull()
                   throws java.lang.Exception
Throws:
java.lang.Exception

testQueryNotNull

public void testQueryNotNull()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testQueryBetween

public void testQueryBetween()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testInListQuery

public void testInListQuery()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testPrefetchQuery

public void testPrefetchQuery()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testInterfaceQuery

public void testInterfaceQuery()
                        throws java.lang.Exception
Throws:
java.lang.Exception

_testFunctions

public void _testFunctions()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testReportQueryGroupBy

public void testReportQueryGroupBy()
                            throws java.lang.Exception
ReportQuery returning rows with summed stock and price per article group

Throws:
java.lang.Exception

_testSubQuery1

public void _testSubQuery1()
                    throws java.lang.Exception
test Subquery get all articles with price > avg(price) PROBLEM: avg(price) is NOT extent aware !! test may fail if db does not support sub queries

Throws:
java.lang.Exception


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14