Java Doc for CriteriaTest.java in  » Database-ORM » Torque » org » apache » torque » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database ORM » Torque » org.apache.torque.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.torque.BaseTestCase
   org.apache.torque.util.CriteriaTest

CriteriaTest
public class CriteriaTest extends BaseTestCase (Code)
Test class for Criteria.
author:
   Christopher Elkins
author:
   Sam Joseph
author:
   Scott Eade
version:
   $Id: CriteriaTest.java 535591 2007-05-06 10:05:04Z tfischer $



Constructor Summary
public  CriteriaTest(String name)
     Creates a new instance.

Method Summary
public  voidsetUp()
     Initializes the criteria.
public  voidtestAddDate()
    
public  voidtestAddString()
     Test basic adding of strings.
public  voidtestAndDate()
    
public  voidtestBetweenCriterion()
     Tests <= and =>.
public  voidtestBoolean()
     Test that true is evaluated correctly.
public  voidtestCountAster()
    
public  voidtestCriteriaToStringLimit()
     This test case has been written to try out the fix applied to resolve TRQS73 - i.e.
public  voidtestCriteriaToStringOffset()
     This test case has been written to try out the fix applied to resolve TRQS73 - i.e.
public  voidtestCriteriaWithOffsetNoLimit()
    
public  voidtestCriterionIgnoreCase()
     Test Criterion.setIgnoreCase().
public  voidtestCurrentDate()
    
public  voidtestDateAdd()
    
public  voidtestEquals()
     Test that Criteria.equals(Object) works correctly for a simple Criteria object.
public  voidtestLikeWithoutWildcards()
     This test case verifies if the Criteria.LIKE comparison type will get replaced through Criteria.EQUAL if there are no SQL wildcards in the given value.
public  voidtestNestedCriterion()
    
public  voidtestNotLikeWithoutWildcards()
     This test case verifies if the Criteria.NOT_LIKE comparison type will get replaced through Criteria.NOT_EQUAL if there are no SQL wildcards in the given value.
public  voidtestOrderBy()
     Checks whether orderBy works.
public  voidtestPrecedence()
     Verify that AND and OR criterion are nested correctly.
public  voidtestSerialization()
     Test that serialization works.


Constructor Detail
CriteriaTest
public CriteriaTest(String name)(Code)
Creates a new instance.
Parameters:
  name - the name of the test to run




Method Detail
setUp
public void setUp()(Code)
Initializes the criteria.



testAddDate
public void testAddDate()(Code)
testcase for addDate()



testAddString
public void testAddString()(Code)
Test basic adding of strings.



testAndDate
public void testAndDate()(Code)
testcase for andDate() issue TORQUE-42



testBetweenCriterion
public void testBetweenCriterion()(Code)
Tests <= and =>.



testBoolean
public void testBoolean()(Code)
Test that true is evaluated correctly.



testCountAster
public void testCountAster()(Code)



testCriteriaToStringLimit
public void testCriteriaToStringLimit()(Code)
This test case has been written to try out the fix applied to resolve TRQS73 - i.e. ensuring that Criteria.toString() does not alter any limit or offset that may be stored in the Criteria object. This testcase could actually pass without the fix if the database in use does not support native limits and offsets.



testCriteriaToStringOffset
public void testCriteriaToStringOffset()(Code)
This test case has been written to try out the fix applied to resolve TRQS73 - i.e. ensuring that Criteria.toString() does not alter any limit or offset that may be stored in the Criteria object. This testcase could actually pass without the fix if the database in use does not support native limits and offsets.



testCriteriaWithOffsetNoLimit
public void testCriteriaWithOffsetNoLimit()(Code)
TORQUE-87



testCriterionIgnoreCase
public void testCriterionIgnoreCase()(Code)
Test Criterion.setIgnoreCase(). As the output is db specific the test just prints the result to System.out



testCurrentDate
public void testCurrentDate()(Code)



testDateAdd
public void testDateAdd()(Code)
testcase for add(Date)



testEquals
public void testEquals() throws TorqueException(Code)
Test that Criteria.equals(Object) works correctly for a simple Criteria object.
throws:
  TorqueException -



testLikeWithoutWildcards
public void testLikeWithoutWildcards()(Code)
This test case verifies if the Criteria.LIKE comparison type will get replaced through Criteria.EQUAL if there are no SQL wildcards in the given value.



testNestedCriterion
public void testNestedCriterion()(Code)
test various properties of Criterion and nested criterion



testNotLikeWithoutWildcards
public void testNotLikeWithoutWildcards()(Code)
This test case verifies if the Criteria.NOT_LIKE comparison type will get replaced through Criteria.NOT_EQUAL if there are no SQL wildcards in the given value.



testOrderBy
public void testOrderBy() throws TorqueException(Code)
Checks whether orderBy works.



testPrecedence
public void testPrecedence()(Code)
Verify that AND and OR criterion are nested correctly.



testSerialization
public void testSerialization()(Code)
Test that serialization works.



Fields inherited from org.apache.torque.BaseTestCase
final protected static String CONFIG_FILE(Code)(Java Doc)

Methods inherited from org.apache.torque.BaseTestCase
public void setUp()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.