org.apache.jsieve
Class ConditionTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.jsieve.ConditionTest
All Implemented Interfaces:
junit.framework.Test

public class ConditionTest
extends junit.framework.TestCase

Class ConditionTest tests the conditional commands if, elsif and else.


Constructor Summary
ConditionTest()
           
 
Method Summary
 void testElse()
          Test for Command 'else'
 void testElseMissingBlock()
          Test for Command 'else' without a corresponding Block
 void testElsifFalse()
          Test for Command 'elsif' with an argument of 'false'
 void testElsifFalseElse()
          Test for Command 'else' after 'elseif'
 void testElsifFalseElsifTrue()
          Test for nested Command 'elsif' with an argument of 'true'
 void testElsifMissingBlock()
          Test for Command 'elsif' without a corresponding Block
 void testElsifMissingTest()
          Test for Command 'if' without a test
 void testElsifTrue()
          Test for Command 'elsif' with an argument of 'true'
 void testIfFalse()
          Test for Command 'if' with an argument of 'false'
 void testIfMissingBlock()
          Test for Command 'if' without a corresponding Block
 void testIfMissingTest()
          Test for Command 'if' without a test
 void testIfTrue()
          Test for Command 'if' with an argument of 'true'
 void testNestedIf()
          Test for Command 'if' nested in a block
 void testNestedOutOfSequenceElse()
          Test for Command 'else' out of sequence nested in a block
 void testNestedOutOfSequenceElsif()
          Test for Command 'elsif' out of sequence nested in a block
 void testOutOfSequenceElse()
          Test for Command 'else' out of sequence
 void testOutOfSequenceElsif()
          Test for Command 'elsif' out of sequence
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConditionTest

public ConditionTest()
Method Detail

testIfTrue

public void testIfTrue()
Test for Command 'if' with an argument of 'true'


testIfFalse

public void testIfFalse()
Test for Command 'if' with an argument of 'false'


testElsifTrue

public void testElsifTrue()
Test for Command 'elsif' with an argument of 'true'


testElsifFalse

public void testElsifFalse()
Test for Command 'elsif' with an argument of 'false'


testElsifFalseElsifTrue

public void testElsifFalseElsifTrue()
Test for nested Command 'elsif' with an argument of 'true'


testElsifFalseElse

public void testElsifFalseElse()
Test for Command 'else' after 'elseif'


testElse

public void testElse()
Test for Command 'else'


testOutOfSequenceElse

public void testOutOfSequenceElse()
Test for Command 'else' out of sequence


testOutOfSequenceElsif

public void testOutOfSequenceElsif()
Test for Command 'elsif' out of sequence


testIfMissingBlock

public void testIfMissingBlock()
Test for Command 'if' without a corresponding Block


testIfMissingTest

public void testIfMissingTest()
Test for Command 'if' without a test


testElsifMissingTest

public void testElsifMissingTest()
Test for Command 'if' without a test


testElsifMissingBlock

public void testElsifMissingBlock()
Test for Command 'elsif' without a corresponding Block


testElseMissingBlock

public void testElseMissingBlock()
Test for Command 'else' without a corresponding Block


testNestedIf

public void testNestedIf()
Test for Command 'if' nested in a block


testNestedOutOfSequenceElse

public void testNestedOutOfSequenceElse()
Test for Command 'else' out of sequence nested in a block


testNestedOutOfSequenceElsif

public void testNestedOutOfSequenceElsif()
Test for Command 'elsif' out of sequence nested in a block



Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.