brj         2005/01/24 11:34:33

  Modified:    src/test/org/apache/ojb/broker QueryTest.java
  Log:
  removed special treatment for hsqldb
  
  Revision  Changes    Path
  1.80      +4 -15     db-ojb/src/test/org/apache/ojb/broker/QueryTest.java
  
  Index: QueryTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/QueryTest.java,v
  retrieving revision 1.79
  retrieving revision 1.80
  diff -u -r1.79 -r1.80
  --- QueryTest.java    14 Jan 2005 21:12:04 -0000      1.79
  +++ QueryTest.java    24 Jan 2005 19:34:33 -0000      1.80
  @@ -1741,26 +1741,15 @@
           q.setAttributes(new String[]{"groupId", "groupName", 
"allArticlesInGroup.articleId"});
   
           Iterator iter = broker.getReportQueryIteratorByQuery(q);
  -        while(iter.hasNext())
  +        while (iter.hasNext())
           {
               Object obj = iter.next();
               list.add(obj);
   
  -            /*
  -            arminw:
  -            think hsql returns the wrong result or interpret the query in 
wrong
  -            way (e.g. using hashcode of values instead values itself), so 
skip test
  -            evaluation for this DB
  -            */
  -            
if(!broker.serviceConnectionManager().getSupportedPlatform().getClass().equals(PlatformHsqldbImpl.class))
  -            {
  -//                System.out.println("### " + ((Object[]) obj)[0]
  -//                        + "  " + ((Object[]) obj)[1]
  -//                        + "  " + ((Object[]) obj)[2]);
  +            System.out.println("### " + ((Object[]) obj)[0] + "  " + 
((Object[]) obj)[1] + "  " + ((Object[]) obj)[2]);
   
  -                int i = ((Integer) ((Object[]) obj)[2]).intValue();
  -                assertTrue("i=" + i, i < 6 & i > 0);
  -            }
  +            int i = ((Integer) ((Object[]) obj)[2]).intValue();
  +            assertTrue("i=" + i, i < 6 & i > 0);
           }
       }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to