Java Doc for QueryNodeTreeTests.java in  » J2EE » fleXive » com » flexive » tests » shared » 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 » J2EE » fleXive » com.flexive.tests.shared 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.flexive.tests.shared.QueryNodeTreeTests

QueryNodeTreeTests
public class QueryNodeTreeTests (Code)
Search query tree tests (GUI query editor).
author:
   Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)

Inner Class :public static class InnerTestNode extends QueryValueNode
Inner Class :public static interface QueryNodeGenerator
Inner Class :public static class InnerNodeGenerator implements QueryNodeGenerator<InnerTestNode>
Inner Class :public static class AssignmentNodeGenerator implements QueryNodeGenerator<AssignmentValueNode>



Method Summary
public static  voidassertEqualTrees(QueryNode root1, QueryNode root2)
     Asserts that both tree are equal.
public static  QueryRootNodebuildFlatTree(QueryNodeGenerator generator, int numNodes)
     Build a flat tree containing some nodes under a root node.
public static  QueryRootNodebuildNestedTree(int maxLevel, QueryNodeGenerator generator, int numNodesPerLevel)
     Build a nested tree structure with up to maxLevel levels.
public static  QueryNodebuildSimpleNode()
    
public  voidcheckTreeStore(QueryNode root)
     Checks if the given node is stored correctly in an XML string (including its children) and throws a runtime exception if an error occured.
public  voidcheckTreeValidity()
     Checks the tree validation with miscellaneous tree input.
public  voidemptyOuterNodeRemoval()
    
public  voidemptyQueryTest()
     Checks against a bug where an empty tree leads to the generation of "WHERE ()" in the SQL query.
public  Object[][]getBasicQueries()
     Provides a basic set of "test" query trees.
public  voidinputMapperComparatorTest()
    
public  voidjoinNodesFlat()
    
public  voidjoinNodesFromDistinctGroups()
    
public  voidjoinNodesFromDistinctGroupsCopyBug()
    
public  voidjoinNodesLevelAll()
    
public  voidjoinNodesNested()
    
public  voidjoinNodesNested2()
    
public  voidjoinNodesNestedCompact()
    
public  voidmaxIdVisitor()
    
public static  voidnodeLevelTest()
     Simple tests for the tree node level method.
public  voidpropertyValueNodeTest()
    
public  voidrepeatableSqlQueryTest()
     Check if multiple calls to com.flexive.shared.search.query.QueryOperatorNode.getSqlQuery yield the same result.
public  voidrepeatableSqlQueryTest2()
     Check if multiple calls to com.flexive.shared.search.query.QueryOperatorNode.getSqlQuery yield the same result, this time with an external query builder.
public  voidselectListNodeTest()
    
public  voidsimpleNodeVisitor()
    
public  voidsingleChildRemoval()
    
public  voidtestNodeEquals()
    
public  voidtreeDeleteCloneBug()
     Testcase for a bug that duplicates tree nodes for a certain order of commands (cause: invalid parent nodes).
public  voidtreeNodeFind()
    
public  voidtreeNodeRemoval()
    
public  voidtreeNodeTest()
    



Method Detail
assertEqualTrees
public static void assertEqualTrees(QueryNode root1, QueryNode root2)(Code)
Asserts that both tree are equal.
Parameters:
  root1 - root node of the first tree
Parameters:
  root2 - root node of the second tree



buildFlatTree
public static QueryRootNode buildFlatTree(QueryNodeGenerator generator, int numNodes)(Code)
Build a flat tree containing some nodes under a root node.
Parameters:
  numNodes - TODO



buildNestedTree
public static QueryRootNode buildNestedTree(int maxLevel, QueryNodeGenerator generator, int numNodesPerLevel)(Code)
Build a nested tree structure with up to maxLevel levels.
Parameters:
  maxLevel - the maximum tree depth
Parameters:
  generator - the node generator(?)
Parameters:
  numNodesPerLevel - TODO a nested tree structure with up to maxLevel levels.



buildSimpleNode
public static QueryNode buildSimpleNode()(Code)
Creates a single test node node



checkTreeStore
public void checkTreeStore(QueryNode root)(Code)
Checks if the given node is stored correctly in an XML string (including its children) and throws a runtime exception if an error occured.
Parameters:
  root - the root node of the tree to be checked



checkTreeValidity
public void checkTreeValidity()(Code)
Checks the tree validation with miscellaneous tree input.



emptyOuterNodeRemoval
public void emptyOuterNodeRemoval()(Code)



emptyQueryTest
public void emptyQueryTest()(Code)
Checks against a bug where an empty tree leads to the generation of "WHERE ()" in the SQL query.



getBasicQueries
public Object[][] getBasicQueries()(Code)
Provides a basic set of "test" query trees. a basic set of "test" query trees.



inputMapperComparatorTest
public void inputMapperComparatorTest()(Code)



joinNodesFlat
public void joinNodesFlat()(Code)



joinNodesFromDistinctGroups
public void joinNodesFromDistinctGroups()(Code)



joinNodesFromDistinctGroupsCopyBug
public void joinNodesFromDistinctGroupsCopyBug()(Code)



joinNodesLevelAll
public void joinNodesLevelAll()(Code)



joinNodesNested
public void joinNodesNested()(Code)



joinNodesNested2
public void joinNodesNested2()(Code)



joinNodesNestedCompact
public void joinNodesNestedCompact()(Code)



maxIdVisitor
public void maxIdVisitor()(Code)



nodeLevelTest
public static void nodeLevelTest()(Code)
Simple tests for the tree node level method.



propertyValueNodeTest
public void propertyValueNodeTest()(Code)



repeatableSqlQueryTest
public void repeatableSqlQueryTest()(Code)
Check if multiple calls to com.flexive.shared.search.query.QueryOperatorNode.getSqlQuery yield the same result.



repeatableSqlQueryTest2
public void repeatableSqlQueryTest2()(Code)
Check if multiple calls to com.flexive.shared.search.query.QueryOperatorNode.getSqlQuery yield the same result, this time with an external query builder.



selectListNodeTest
public void selectListNodeTest()(Code)



simpleNodeVisitor
public void simpleNodeVisitor()(Code)



singleChildRemoval
public void singleChildRemoval()(Code)



testNodeEquals
public void testNodeEquals()(Code)



treeDeleteCloneBug
public void treeDeleteCloneBug()(Code)
Testcase for a bug that duplicates tree nodes for a certain order of commands (cause: invalid parent nodes).



treeNodeFind
public void treeNodeFind() throws FxNotFoundException(Code)
Checks searching inside query trees
throws:
  FxNotFoundException - on errors



treeNodeRemoval
public void treeNodeRemoval()(Code)
Checks the tree node removal



treeNodeTest
public void treeNodeTest()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.