org.apache.jsieve
Class RejectTest

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

public class RejectTest
extends junit.framework.TestCase

Class RejectTest


Constructor Summary
RejectTest()
           
 
Method Summary
 void testDuplicateReject()
          Test for duplicate Command 'reject'
 void testInvalidArguments()
          Test for Command 'reject' with invalid arguments
 void testInvalidBlock()
          Test for Command 'reject' with an invalid block
 void testReject()
          Test for Command 'reject'
 void testRejectAndAFollowingCommand()
          Test for Command 'reject' followed by another command
 void testRejectAndAPrecedingCommand()
          Test for Command 'reject' preceded by another command
 void testRejectMessage()
          Tests that the message is correctly passed
 void testRejectMissingMessage()
          Test for Command 'reject'
 
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

RejectTest

public RejectTest()
Method Detail

testInvalidArguments

public void testInvalidArguments()
Test for Command 'reject' with invalid arguments


testInvalidBlock

public void testInvalidBlock()
Test for Command 'reject' with an invalid block


testReject

public void testReject()
Test for Command 'reject'


testRejectMessage

public void testRejectMessage()
                       throws java.lang.Exception
Tests that the message is correctly passed

Throws:
java.lang.Exception

testRejectMissingMessage

public void testRejectMissingMessage()
Test for Command 'reject'


testDuplicateReject

public void testDuplicateReject()
Test for duplicate Command 'reject'


testRejectAndAPrecedingCommand

public void testRejectAndAPrecedingCommand()
Test for Command 'reject' preceded by another command


testRejectAndAFollowingCommand

public void testRejectAndAFollowingCommand()
Test for Command 'reject' followed by another command



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