junitx.ddtunit
Class ExceptionHandlerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by junitx.ddtunit.ExceptionHandlerTest
All Implemented Interfaces:
junit.framework.Test

public class ExceptionHandlerTest
extends junit.framework.TestCase

TODO Comment for DDTExceptionHandlerTest

Author:
jg

Constructor Summary
ExceptionHandlerTest(String name)
          Constructor for DDTExceptionHandlerTest.
 
Method Summary
protected  void setUp()
           
 void testCheckOnExpectedException()
          Test if defined but not caught exception is detected ass failure.
 void testProcessExpectedException()
          Test behavior of method DDTExceptionHandler.process() by providing a known exception.
 void testProcessInvocationTargetExNoAsserts()
          Test behavior of method DDTExceptionHandler.process() by providing an unknown exception and no valid assertion data.
 void testProcessUnknownException()
          Test behavior of method DDTExceptionHandler.process() by providing an unknown exception.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExceptionHandlerTest

public ExceptionHandlerTest(String name)
Constructor for DDTExceptionHandlerTest.

Parameters:
name -
Method Detail

setUp

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

testProcessUnknownException

public void testProcessUnknownException()
                                 throws Throwable
Test behavior of method DDTExceptionHandler.process() by providing an unknown exception.

Throws:
Throwable

testProcessInvocationTargetExNoAsserts

public void testProcessInvocationTargetExNoAsserts()
                                            throws Throwable
Test behavior of method DDTExceptionHandler.process() by providing an unknown exception and no valid assertion data.

Throws:
Throwable

testProcessExpectedException

public void testProcessExpectedException()
Test behavior of method DDTExceptionHandler.process() by providing a known exception.


testCheckOnExpectedException

public void testCheckOnExpectedException()
Test if defined but not caught exception is detected ass failure.



Copyright © 2004-2011. All Rights Reserved.