junitx.ddtunit.usecases
Class UserBeanTest

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.usecases.UserBeanTest
All Implemented Interfaces:
junit.framework.Test, IDDTTestCase

public class UserBeanTest
extends DDTTestCase

Verify bean instanciation as requested by Rafael Luque, 20.10.2006

   <ddtunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:noNamespaceSchemaLocation="http://ddtunit.sourceforge.net/ddtunit.xsd">
   <cluster id="usertest">
    <group id="testCreateUser"> 
     <test id="complexUser"> 
      <objs> 
        <obj id="user" type="com.orangesoft.disnet.model.User" hint="bean">
          <id>myUsername</id>
          <password>myPassword</password>
          <picture hint="array" type="byte">100</picture> 
        </obj>
      </objs>
   ...
 
Verify bean instanciation as requested by Eduardo Solanas, 04.06.2009
   <obj id="test" hint="bean" type="junitx.ddtunit.usecases.UserBean">!NULL!</obj>
 

Author:
jg

Field Summary
 
Fields inherited from class groovy.util.GroovyTestCase
TEST_SCRIPT_NAME_PREFIX
 
Constructor Summary
UserBeanTest()
           
 
Method Summary
protected  void initContext()
           
 void testCreateUser()
           
 
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, 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, 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

UserBeanTest

public UserBeanTest()
Method Detail

initContext

protected void initContext()
Specified by:
initContext in class DDTTestCase

testCreateUser

public void testCreateUser()
                    throws Exception
Throws:
Exception


Copyright © 2004-2011. All Rights Reserved.