##### Commons Jexl

- Overview
- 1.0 Javadoc
- Latest Javadoc
- Examples
- Releases and Builds
- Jar Downloads
- Reference
- Building
- JEXL Wiki

##### Project Documentation

- About
- Downloads
- Project Info
- Project Reports
  - Changes
  - Checkstyle
  - JavaDocs
  - JavaDoc Report
  - JavaDoc Warnings Report
  - JCoverage
  - Metrics
  - Unit Tests
  - Source Xref
  - Test Xref
  - Project License
  - PMD Report
  - Task List
- Development Process

##### Commons

- Home
- Components
- Sandbox
- Dormant
- Volunteering
- Contributing Patches
- Building Components
- Releasing Components
- Wiki

##### Legend

- External Link
- Opens in a new window

## Summary

[ summary] [ package list] [ test cases]

Tests | Errors | Failures | Success rate | Time(s)
--- | --- | --- | --- | ---
111 | 0 | 0 | 100.00% | 2.45

Note: failuresare anticipated and checked for with assertions while errorsare unanticipated.

## Package List

[ summary] [ package list] [ test cases]

Package | Tests | Errors | Failures | Success Rate | Time
--- | --- | --- | --- | --- | ---
org.apache.commons.jexl | 107 | 0 | 0 | 100.00% | 2.05
org.apache.commons.jexl.junit | 2 | 0 | 0 | 100.00% | 0.23
org.apache.commons.jexl.parser | 2 | 0 | 0 | 100.00% | 0.17

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

### org.apache.commons.jexl

Class | Tests | Errors | Failures | Success Rate | Time
--- | --- | --- | --- | --- | ---
| BitwiseOperatorTest | 22 | 0 | 0 | 100.00% | 0.219
| BlockTest | 6 | 0 | 0 | 100.00% | 0.219
| ForEachTest | 10 | 0 | 0 | 100.00% | 0.234
| IfTest | 9 | 0 | 0 | 100.00% | 0.218
| JexlTest | 42 | 0 | 0 | 100.00% | 0.266
| ParseFailuresTest | 5 | 0 | 0 | 100.00% | 0.218
| ScriptFactoryTest | 7 | 0 | 0 | 100.00% | 0.219
| ScriptTest | 3 | 0 | 0 | 100.00% | 0.235
| WhileTest | 3 | 0 | 0 | 100.00% | 0.219

### org.apache.commons.jexl.junit

Class | Tests | Errors | Failures | Success Rate | Time
--- | --- | --- | --- | --- | ---
| AsserterTest | 2 | 0 | 0 | 100.00% | 0.234

### org.apache.commons.jexl.parser

Class | Tests | Errors | Failures | Success Rate | Time
--- | --- | --- | --- | --- | ---
| ParserTest | 2 | 0 | 0 | 100.00% | 0.172

## Test Cases

[ summary] [ package list] [ test cases]

### BitwiseOperatorTest

| testAndWithTwoNulls | 0.06
| testAndWithLeftNull | 0.00
| testAndWithRightNull | 0.00
| testAndSimple | 0.00
| testAndVariableNumberCoercion | 0.02
| testAndVariableStringCoercion | 0.00
| testComplementWithNull | 0.00
| testComplementSimple | 0.00
| testComplementVariableNumberCoercion | 0.00
| testComplementVariableStringCoercion | 0.00
| testOrWithTwoNulls | 0.00
| testOrWithLeftNull | 0.00
| testOrWithRightNull | 0.00
| testOrSimple | 0.00
| testOrVariableNumberCoercion | 0.00
| testOrVariableStringCoercion | 0.00
| testXorWithTwoNulls | 0.00
| testXorWithLeftNull | 0.00
| testXorWithRightNull | 0.00
| testXorSimple | 0.00
| testXorVariableNumberCoercion | 0.00
| testXorVariableStringCoercion | 0.00

### BlockTest

| testBlockSimple | 0.08
| testBlockExecutesAll | 0.00
| testEmptyBlock | 0.00
| testBlockLastExecuted01 | 0.00
| testBlockLastExecuted02 | 0.00
| testNestedBlock | 0.00

### ForEachTest

| testForEachWithEmptyStatement | 0.08
| testForEachWithEmptyList | 0.00
| testForEachWithArray | 0.00
| testForEachWithCollection | 0.00
| testForEachWithEnumeration | 0.00
| testForEachWithIterator | 0.00
| testForEachWithMap | 0.02
| testForEachWithBlock | 0.00
| testForEachWithListExpression | 0.00
| testForEachWithProperty | 0.00

### IfTest

| testSimpleIfTrue | 0.08
| testSimpleIfFalse | 0.00
| testSimpleElse | 0.00
| testBlockIfTrue | 0.00
| testBlockElse | 0.00
| testIfWithSimpleExpression | 0.00
| testIfWithArithmeticExpression | 0.00
| testIfWithDecimalArithmeticExpression | 0.00
| testIfWithAssignment | 0.00

### JexlTest

| testProperty | 0.09
| testMethod | 0.00
| testArrayAccess | 0.00
| testMulti | 0.00
| testBoolean | 0.00
| testStringLit | 0.00
| testExpression | 0.02
| testEmpty | 0.00
| testSize | 0.00
| testSizeAsProperty | 0.00
| testStringMethods | 0.00
| testUnaryMinus | 0.00
| testCalculations | 0.02
| testConditions | 0.00
| testNotConditions | 0.00
| testNotConditionsWithDots | 0.00
| testComparisons | 0.00
| testNull | 0.00
| testBlankStrings | 0.00
| testLogicExpressions | 0.00
| testDoubleArrays | 0.00
| testVariableNames | 0.00
| testMapDot | 0.00
| testStringLiterals | 0.00
| testIntProperty | 0.00
| testNegativeIntComparison | 0.00
| testArrayProperty | 0.00
| testCharAtBug | 0.00
| testEmptyDottedVariableName | 0.00
| testEmptySubListOfMap | 0.00
| testCoercionWithComparisionOperators | 0.00
| testResolver | 0.00
| testBooleanShortCircuitAnd | 0.00
| testBooleanShortCircuitOr | 0.00
| testStringConcatenation | 0.00
| testStaticMethodInvocation | 0.00
| testStaticMethodInvocationOnClasses | 0.00
| testToString | 0.00
| testBadParse | 0.00
| testComment | 0.00
| testAssignment | 0.02
| testAntPropertiesWithMethods | 0.00

### AsserterTest

| testThis | 0.09
| testVariable | 0.00

### ParseFailuresTest

| testMalformedExpression1 | 0.06
| testMalformedExpression2 | 0.00
| testMalformedScript1 | 0.02
| testMalformedScript2 | 0.00
| testMalformedScript3 | 0.00

### ParserTest

| testParse1 | 0.03
| testParse2 | 0.00

### ScriptFactoryTest

| testCreateFromString | 0.08
| testCreateFromSimpleString | 0.00
| testCreateFromNullString | 0.00
| testCreateFromFile | 0.00
| testCreateFromNullFile | 0.00
| testCreateFromURL | 0.00
| testCreateFromNullURL | 0.00

### ScriptTest

| testSimpleScript | 0.08
| testScriptFromFile | 0.02
| testScriptFromURL | 0.00

### WhileTest

| testSimpleWhileFalse | 0.08
| testWhileExecutesExpressionWhenLooping | 0.00
| testWhileWithBlock | 0.00