org.apache.jsieve.util
Class ToSieveHandlerFactoryTest

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

public class ToSieveHandlerFactoryTest
extends junit.framework.TestCase


Constructor Summary
ToSieveHandlerFactoryTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testAfterEndCommandNextShouldPrintSpace()
           
 void testAfterEndTestListShouldNotNextPrefixTestWithComma()
           
 void testArgumentShouldPrintNumber()
           
 void testArgumentShouldPrintTag()
           
 void testDefaultConfigurationShouldBuildNotNullHandler()
           
 void testEndArgumentsShouldBeIgnored()
           
 void testEndBlockShouldCloseBracket()
           
 void testEndCommandShouldNotPrintSemiColonAfterBlock()
           
 void testEndCommandShouldPrintColon()
           
 void testEndCommandsShouldBeIgnored()
           
 void testEndScriptShouldBeIgnored()
           
 void testEndStringListShouldCloseBracket()
           
 void testEndTestListShouldCloseBracket()
           
 void testEndTestShouldBeIgnored()
           
 void testListMemberShouldEscapeBackSlash()
           
 void testListMemberShouldEscapeCR()
           
 void testListMemberShouldEscapeDoubleQuote()
           
 void testListMemberShouldEscapeLF()
           
 void testListMemberShouldQuoteString()
           
 void testStartArgumentsShouldBeIgnored()
           
 void testStartBlockShouldOpenBracket()
           
 void testStartCommandShouldPrintIdentifier()
           
 void testStartCommandsShouldBeIgnored()
           
 void testStartScriptShouldBeIgnored()
           
 void testStartSecondTestShouldPrefixComma()
           
 void testStartStringListShouldOpenBracket()
           
 void testStartTestListShouldOpenBracket()
           
 void testStartTestShouldPrintIdentifier()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ToSieveHandlerFactoryTest

public ToSieveHandlerFactoryTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testDefaultConfigurationShouldBuildNotNullHandler

public void testDefaultConfigurationShouldBuildNotNullHandler()
                                                       throws java.lang.Exception
Throws:
java.lang.Exception

testStartScriptShouldBeIgnored

public void testStartScriptShouldBeIgnored()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testEndScriptShouldBeIgnored

public void testEndScriptShouldBeIgnored()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testStartBlockShouldOpenBracket

public void testStartBlockShouldOpenBracket()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testEndBlockShouldCloseBracket

public void testEndBlockShouldCloseBracket()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testStartCommandsShouldBeIgnored

public void testStartCommandsShouldBeIgnored()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

testEndCommandsShouldBeIgnored

public void testEndCommandsShouldBeIgnored()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testStartCommandShouldPrintIdentifier

public void testStartCommandShouldPrintIdentifier()
                                           throws java.lang.Exception
Throws:
java.lang.Exception

testEndCommandShouldPrintColon

public void testEndCommandShouldPrintColon()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testStartArgumentsShouldBeIgnored

public void testStartArgumentsShouldBeIgnored()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

testEndArgumentsShouldBeIgnored

public void testEndArgumentsShouldBeIgnored()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testArgumentShouldPrintTag

public void testArgumentShouldPrintTag()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testArgumentShouldPrintNumber

public void testArgumentShouldPrintNumber()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

testStartStringListShouldOpenBracket

public void testStartStringListShouldOpenBracket()
                                          throws java.lang.Exception
Throws:
java.lang.Exception

testEndStringListShouldCloseBracket

public void testEndStringListShouldCloseBracket()
                                         throws java.lang.Exception
Throws:
java.lang.Exception

testListMemberShouldQuoteString

public void testListMemberShouldQuoteString()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testListMemberShouldEscapeDoubleQuote

public void testListMemberShouldEscapeDoubleQuote()
                                           throws java.lang.Exception
Throws:
java.lang.Exception

testListMemberShouldEscapeBackSlash

public void testListMemberShouldEscapeBackSlash()
                                         throws java.lang.Exception
Throws:
java.lang.Exception

testListMemberShouldEscapeCR

public void testListMemberShouldEscapeCR()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testListMemberShouldEscapeLF

public void testListMemberShouldEscapeLF()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testStartTestListShouldOpenBracket

public void testStartTestListShouldOpenBracket()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

testEndTestListShouldCloseBracket

public void testEndTestListShouldCloseBracket()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

testStartTestShouldPrintIdentifier

public void testStartTestShouldPrintIdentifier()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

testStartSecondTestShouldPrefixComma

public void testStartSecondTestShouldPrefixComma()
                                          throws java.lang.Exception
Throws:
java.lang.Exception

testAfterEndTestListShouldNotNextPrefixTestWithComma

public void testAfterEndTestListShouldNotNextPrefixTestWithComma()
                                                          throws java.lang.Exception
Throws:
java.lang.Exception

testEndTestShouldBeIgnored

public void testEndTestShouldBeIgnored()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testEndCommandShouldNotPrintSemiColonAfterBlock

public void testEndCommandShouldNotPrintSemiColonAfterBlock()
                                                     throws java.lang.Exception
Throws:
java.lang.Exception

testAfterEndCommandNextShouldPrintSpace

public void testAfterEndCommandNextShouldPrintSpace()
                                             throws java.lang.Exception
Throws:
java.lang.Exception


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