junitx.ddtunit.data
Class DDTTestDataExceptionTest

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

public class DDTTestDataExceptionTest
extends junit.framework.TestCase

Test exceptional behavior of DDTDataRepository.

Author:
jg

Constructor Summary
DDTTestDataExceptionTest()
           
 
Method Summary
 void testParsingErrorBehavior()
          Check that a DDTTestDataException is raised if a parsing error occures.
This test will allways be true on non-validating parsers.
On use of validating parser this test throws an exception that actually will be caught by DDTUnit as defined in xml resource.
 void testRetrievalOfEmptyClusterDataSet()
          Checks if a DDTTestDataException is raised if no dataSet is found.
 
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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DDTTestDataExceptionTest

public DDTTestDataExceptionTest()
Method Detail

testRetrievalOfEmptyClusterDataSet

public void testRetrievalOfEmptyClusterDataSet()
Checks if a DDTTestDataException is raised if no dataSet is found.


testParsingErrorBehavior

public void testParsingErrorBehavior()
Check that a DDTTestDataException is raised if a parsing error occures.
This test will allways be true on non-validating parsers.
On use of validating parser this test throws an exception that actually will be caught by DDTUnit as defined in xml resource.



Copyright © 2004-2011. All Rights Reserved.