org.apache.commons.jexl2
Class ArithmeticTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.jexl2.JexlTestCase
              extended by org.apache.commons.jexl2.ArithmeticTest
All Implemented Interfaces:
junit.framework.Test

public class ArithmeticTest
extends JexlTestCase


Nested Class Summary
static class ArithmeticTest.MatchingContainer
           
 
Field Summary
 
Fields inherited from class org.apache.commons.jexl2.JexlTestCase
JEXL
 
Constructor Summary
ArithmeticTest()
           
 
Method Summary
 void setUp()
           
 void testBigDecimal()
           
 void testBigInteger()
           
 void testCalculations()
          test some simple mathematical calculations
 void testCoercions()
           
 void testDivideByZero()
          if silent, all arith exception return 0.0 if not silent, all arith exception throw
 void testLeftNullOperand()
           
 void testNullOperand()
           
 void testNullOperands()
           
 void testRegexp()
           
 void testRightNullOperand()
           
 void testUnaryMinus()
          test some simple mathematical calculations
 void testUndefinedVar()
           
 
Methods inherited from class org.apache.commons.jexl2.JexlTestCase
createEngine, createThreadedArithmeticEngine, debuggerCheck, flatten, flattenedStr, main, runTest, runTest, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArithmeticTest

public ArithmeticTest()
Method Detail

setUp

public void setUp()
Overrides:
setUp in class junit.framework.TestCase

testUndefinedVar

public void testUndefinedVar()
                      throws Exception
Throws:
Exception

testLeftNullOperand

public void testLeftNullOperand()
                         throws Exception
Throws:
Exception

testRightNullOperand

public void testRightNullOperand()
                          throws Exception
Throws:
Exception

testNullOperands

public void testNullOperands()
                      throws Exception
Throws:
Exception

testNullOperand

public void testNullOperand()
                     throws Exception
Throws:
Exception

testBigDecimal

public void testBigDecimal()
                    throws Exception
Throws:
Exception

testBigInteger

public void testBigInteger()
                    throws Exception
Throws:
Exception

testUnaryMinus

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

Throws:
Exception

testCalculations

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

Throws:
Exception

testCoercions

public void testCoercions()
                   throws Exception
Throws:
Exception

testRegexp

public void testRegexp()
                throws Exception
Throws:
Exception

testDivideByZero

public void testDivideByZero()
                      throws Exception
if silent, all arith exception return 0.0 if not silent, all arith exception throw

Throws:
Exception


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.