Java Doc for JexlTest.java in  » Library » Apache-commons-jexl-1.1-src » org » apache » commons » jexl » 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 » Library » Apache commons jexl 1.1 src » org.apache.commons.jexl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.commons.jexl.JexlTest

JexlTest
public class JexlTest extends TestCase (Code)
Simple testcases
since:
   1.0
author:
   Geir Magnusson Jr.
version:
   $Id: JexlTest.java 391888 2006-04-06 03:34:59Z dion $


Field Summary
final protected static  String[]GET_METHOD_ARRAY
    
final protected static  String[][]GET_METHOD_ARRAY2
    
final protected static  StringGET_METHOD_STRING
    
final protected static  StringMETHOD_STRING
    

Constructor Summary
public  JexlTest(String testName)
    

Method Summary
protected  voidassertExpression(JexlContext jc, String expression, Object expected)
    
public static  voidmain(String[] args)
    
public static  Testsuite()
    
public  voidtestAntPropertiesWithMethods()
    
public  voidtestArrayAccess()
    
public  voidtestArrayProperty()
    
public  voidtestAssignment()
     Test assignment.
public  voidtestBadParse()
    
public  voidtestBlankStrings()
    
public  voidtestBoolean()
    
public  voidtestBooleanShortCircuitAnd()
    
public  voidtestBooleanShortCircuitOr()
    
public  voidtestCalculations()
    
public  voidtestCharAtBug()
    
public  voidtestCoercionWithComparisionOperators()
    
public  voidtestComment()
    
public  voidtestComparisons()
    
public  voidtestConditions()
    
public  voidtestDoubleArrays()
    
public  voidtestEmpty()
    
public  voidtestEmptyDottedVariableName()
    
public  voidtestEmptySubListOfMap()
    
public  voidtestExpression()
    
public  voidtestIntProperty()
    
public  voidtestLogicExpressions()
    
public  voidtestMapDot()
    
public  voidtestMethod()
    
public  voidtestMulti()
    
public  voidtestNegativeIntComparison()
    
public  voidtestNotConditions()
    
public  voidtestNotConditionsWithDots()
    
public  voidtestNull()
    
public  voidtestProperty()
    
public  voidtestResolver()
    
public  voidtestSize()
    
public  voidtestSizeAsProperty()
    
public  voidtestStaticMethodInvocation()
     Ensures static methods on objects can be called.
public  voidtestStaticMethodInvocationOnClasses()
    
public  voidtestStringConcatenation()
    
public  voidtestStringLit()
    
public  voidtestStringLiterals()
    
public  voidtestStringMethods()
    
public  voidtestToString()
    
public  voidtestUnaryMinus()
    
public  voidtestVariableNames()
    

Field Detail
GET_METHOD_ARRAY
final protected static String[] GET_METHOD_ARRAY(Code)



GET_METHOD_ARRAY2
final protected static String[][] GET_METHOD_ARRAY2(Code)



GET_METHOD_STRING
final protected static String GET_METHOD_STRING(Code)



METHOD_STRING
final protected static String METHOD_STRING(Code)




Constructor Detail
JexlTest
public JexlTest(String testName)(Code)




Method Detail
assertExpression
protected void assertExpression(JexlContext jc, String expression, Object expected) throws Exception(Code)
Asserts that the given expression returns the given value when applied to the given context



main
public static void main(String[] args) throws Exception(Code)
Helps in debugging the testcases when working with it



suite
public static Test suite()(Code)



testAntPropertiesWithMethods
public void testAntPropertiesWithMethods() throws Exception(Code)



testArrayAccess
public void testArrayAccess() throws Exception(Code)
test a simple method expression



testArrayProperty
public void testArrayProperty() throws Exception(Code)



testAssignment
public void testAssignment() throws Exception(Code)
Test assignment.
throws:
  Exception -



testBadParse
public void testBadParse() throws Exception(Code)
Make sure bad syntax throws ParseException
throws:
  Exception - on errors



testBlankStrings
public void testBlankStrings() throws Exception(Code)
test some blank strings



testBoolean
public void testBoolean() throws Exception(Code)



testBooleanShortCircuitAnd
public void testBooleanShortCircuitAnd() throws Exception(Code)
Test that 'and' only evaluates the second item if needed
throws:
  Exception - if there are errors



testBooleanShortCircuitOr
public void testBooleanShortCircuitOr() throws Exception(Code)
Test that 'or' only evaluates the second item if needed
throws:
  Exception - if there are errors



testCalculations
public void testCalculations() throws Exception(Code)
test some simple mathematical calculations



testCharAtBug
public void testCharAtBug() throws Exception(Code)
Attempts to recreate bug http://jira.werken.com/ViewIssue.jspa?key=JELLY-8



testCoercionWithComparisionOperators
public void testCoercionWithComparisionOperators() throws Exception(Code)



testComment
public void testComment() throws Exception(Code)
Test the ## comment in a string
throws:
  Exception -



testComparisons
public void testComparisons() throws Exception(Code)
test some simple conditions



testConditions
public void testConditions() throws Exception(Code)
test some simple conditions



testDoubleArrays
public void testDoubleArrays() throws Exception(Code)
test some simple double array lookups



testEmpty
public void testEmpty() throws Exception(Code)



testEmptyDottedVariableName
public void testEmptyDottedVariableName() throws Exception(Code)



testEmptySubListOfMap
public void testEmptySubListOfMap() throws Exception(Code)



testExpression
public void testExpression() throws Exception(Code)



testIntProperty
public void testIntProperty() throws Exception(Code)
test the use of an int based property



testLogicExpressions
public void testLogicExpressions() throws Exception(Code)
test some blank strings



testMapDot
public void testMapDot() throws Exception(Code)
test the use of dot notation to lookup map entries



testMethod
public void testMethod() throws Exception(Code)
test a simple method expression



testMulti
public void testMulti() throws Exception(Code)



testNegativeIntComparison
public void testNegativeIntComparison() throws Exception(Code)
test the -1 comparison bug



testNotConditions
public void testNotConditions() throws Exception(Code)
test some simple conditions



testNotConditionsWithDots
public void testNotConditionsWithDots() throws Exception(Code)
GMJ : disabled - need to fix test some simple conditions



testNull
public void testNull() throws Exception(Code)
test some null conditions



testProperty
public void testProperty() throws Exception(Code)
test a simple property expression



testResolver
public void testResolver() throws Exception(Code)



testSize
public void testSize() throws Exception(Code)



testSizeAsProperty
public void testSizeAsProperty() throws Exception(Code)



testStaticMethodInvocation
public void testStaticMethodInvocation() throws Exception(Code)
Ensures static methods on objects can be called.



testStaticMethodInvocationOnClasses
public void testStaticMethodInvocationOnClasses() throws Exception(Code)



testStringConcatenation
public void testStringConcatenation() throws Exception(Code)
Simple test of '+' as a string concatenation operator
throws:
  Exception -



testStringLit
public void testStringLit() throws Exception(Code)



testStringLiterals
public void testStringLiterals() throws Exception(Code)
Tests string literals



testStringMethods
public void testStringMethods() throws Exception(Code)
test some String method calls



testToString
public void testToString() throws Exception(Code)



testUnaryMinus
public void testUnaryMinus() throws Exception(Code)
test some simple mathematical calculations



testVariableNames
public void testVariableNames() throws Exception(Code)
test variables with underscore names



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