org.nuiton.topiatest
Class EnumTest

java.lang.Object
  extended by org.nuiton.topiatest.EnumTest

public class EnumTest
extends Object

Test the support of possibility to have an attribute of type enumeration in a entity


Field Summary
protected static File testBasedir
           
 
Constructor Summary
EnumTest()
           
 
Method Summary
protected  org.nuiton.topia.TopiaContext initTopiaContext(String testName)
           
static void setUpClass()
           
 void storeEntityWithEnumValue()
          Create an entity having two field of type enumeration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

testBasedir

protected static File testBasedir
Constructor Detail

EnumTest

public EnumTest()
Method Detail

setUpClass

public static void setUpClass()
                       throws Exception
Throws:
Exception

initTopiaContext

protected org.nuiton.topia.TopiaContext initTopiaContext(String testName)
                                                  throws IOException,
                                                         org.nuiton.topia.TopiaNotFoundException
Throws:
IOException
org.nuiton.topia.TopiaNotFoundException

storeEntityWithEnumValue

public void storeEntityWithEnumValue()
                              throws Exception
Create an entity having two field of type enumeration. One is stored using ordinal, the other using the name. The test check that values are stored, and that find methods works

Throws:
Exception


Copyright © 2004-2011 CodeLutin. All Rights Reserved.