|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.commons.jexl2.JexlTestCase
org.apache.commons.jexl2.IfTest
public class IfTest
Test cases for the if statement.
| Field Summary |
|---|
| Fields inherited from class org.apache.commons.jexl2.JexlTestCase |
|---|
JEXL |
| Constructor Summary | |
|---|---|
IfTest(String testName)
|
|
| Method Summary | |
|---|---|
void |
testBlockElse()
Test the if statement handles blocks in the else statement correctly |
void |
testBlockIfTrue()
Test the if statement handles blocks correctly |
void |
testIfWithArithmeticExpression()
Test the if statement evaluates arithmetic expressions correctly |
void |
testIfWithAssignment()
Test the if statement works with assignment |
void |
testIfWithDecimalArithmeticExpression()
Test the if statement evaluates decimal arithmetic expressions correctly |
void |
testIfWithSimpleExpression()
Test the if statement evaluates expressions correctly |
void |
testSimpleElse()
Make sure if false executes the false statement |
void |
testSimpleIfFalse()
Make sure if false doesn't execute the true statement |
void |
testSimpleIfTrue()
Make sure if true executes the true statement |
void |
testTernary()
Ternary operator condition undefined or null evaluates to false independantly of engine flags. |
void |
testTernaryShorthand()
Ternary operator condition undefined or null evaluates to false independantly of engine flags. |
| 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, setUp, 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 |
|---|
public IfTest(String testName)
| Method Detail |
|---|
public void testSimpleIfTrue()
throws Exception
Exception - on any error
public void testSimpleIfFalse()
throws Exception
Exception - on any error
public void testSimpleElse()
throws Exception
Exception - on any error
public void testBlockIfTrue()
throws Exception
Exception - on any error
public void testBlockElse()
throws Exception
Exception - on any error
public void testIfWithSimpleExpression()
throws Exception
Exception - on any error
public void testIfWithArithmeticExpression()
throws Exception
Exception - on any error
public void testIfWithDecimalArithmeticExpression()
throws Exception
Exception - on any error
public void testIfWithAssignment()
throws Exception
Exception - on any error
public void testTernary()
throws Exception
Exception
public void testTernaryShorthand()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||