junitx.ddtunit
Class SimpleDDTUnitTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by groovy.util.GroovyTestCase
              extended by junitx.ddtunit.DDTTestCase
                  extended by junitx.ddtunit.SimpleDDTUnitTest
All Implemented Interfaces:
junit.framework.Test, IDDTTestCase

public class SimpleDDTUnitTest
extends DDTTestCase

Test class to verify simple execution of JUnit TestCase like asserts.

Author:
jg

Field Summary
 
Fields inherited from class groovy.util.GroovyTestCase
TEST_SCRIPT_NAME_PREFIX
 
Constructor Summary
SimpleDDTUnitTest(String name)
           
 
Method Summary
protected  void initContext()
           
static void main(String[] args)
          Execute TestCase using a JUnit TestRunner.
 void setUp()
          initialize testmethod environment before every execution
static junit.framework.Test suite()
          Define tests to run
 void testRetrieveAssertData()
          Test retrieving object on a per method-test basis
 void testRetrieveObjectData()
          Test retrieving object on a per method-test basis
 void testSimpleJUnitAssert()
          Execute simple valid JUnit assert methods
 
Methods inherited from class junitx.ddtunit.DDTTestCase
addObjectToAssert, assertObject, assertObject, countMethodTests, getGlobalObject, getGlobalObject, getObject, getObject, getResourceObject, getResourceObject, getTestName, initTestData, initTestData, run, run, runBare, runInfo, runMethodTest, runTest, setTestName, validateAsserts
 
Methods inherited from class groovy.util.GroovyTestCase
assertArrayEquals, assertContains, assertContains, assertEquals, assertEquals, assertEquals, assertInspect, assertLength, assertLength, assertLength, assertScript, assertToString, fixEOLs, getMethodName, getName, getTestClassName, notYetImplemented, notYetImplemented, shouldFail, shouldFail, shouldFailWithCause
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, 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, 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
 
Methods inherited from interface junitx.ddtunit.IDDTTestCase
getName
 

Constructor Detail

SimpleDDTUnitTest

public SimpleDDTUnitTest(String name)
Parameters:
name -
Method Detail

setUp

public void setUp()
initialize testmethod environment before every execution

Overrides:
setUp in class junit.framework.TestCase

suite

public static junit.framework.Test suite()
Define tests to run

Returns:

testSimpleJUnitAssert

public void testSimpleJUnitAssert()
Execute simple valid JUnit assert methods


initContext

protected void initContext()
Specified by:
initContext in class DDTTestCase
See Also:
junitx.ddtunit.DDTTestCase#initTestData()

testRetrieveObjectData

public void testRetrieveObjectData()
Test retrieving object on a per method-test basis


testRetrieveAssertData

public void testRetrieveAssertData()
Test retrieving object on a per method-test basis


main

public static void main(String[] args)
Execute TestCase using a JUnit TestRunner.

Parameters:
args -


Copyright © 2004-2011. All Rights Reserved.