org.apache.jsieve
Class RequireMissingTest

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

public class RequireMissingTest
extends junit.framework.TestCase

Class AddressTest


Constructor Summary
RequireMissingTest()
           
 
Method Summary
 void testMissingRequire()
          Tests 2.10.5 Extensions and Optional Features: If an extension is not enabled with "required" they must treat it as if they do not support it at all.
 void testRequireAfterOtherCommand()
          Tests 3.2 Control Structure Require: Require MUST NOT be used after any other command.
 void testUnsupportedRequire()
          Tests that unsupported requires are caught before script execution.
 void testUnsupportedRequireMultiple()
          Tests that unsupported requires are caught before script execution.
 void testUnsupportedRequireNoBrackets()
          Tests that unsupported requires are caught before script execution.
 
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

RequireMissingTest

public RequireMissingTest()
Method Detail

testUnsupportedRequireNoBrackets

public void testUnsupportedRequireNoBrackets()
                                      throws java.lang.Exception
Tests that unsupported requires are caught before script execution.

Throws:
java.lang.Exception

testUnsupportedRequireMultiple

public void testUnsupportedRequireMultiple()
                                    throws java.lang.Exception
Tests that unsupported requires are caught before script execution.

Throws:
java.lang.Exception

testUnsupportedRequire

public void testUnsupportedRequire()
                            throws java.lang.Exception
Tests that unsupported requires are caught before script execution.

Throws:
java.lang.Exception

testMissingRequire

public void testMissingRequire()
                        throws java.lang.Exception
Tests 2.10.5 Extensions and Optional Features: If an extension is not enabled with "required" they must treat it as if they do not support it at all.

Throws:
java.lang.Exception

testRequireAfterOtherCommand

public void testRequireAfterOtherCommand()
                                  throws java.lang.Exception
Tests 3.2 Control Structure Require: Require MUST NOT be used after any other command.

Throws:
java.lang.Exception


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