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
 TopiaDatabase db
           
 
Constructor Summary
EnumTest()
           
 
Method Summary
 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

db

public final TopiaDatabase db
Constructor Detail

EnumTest

public EnumTest()
Method Detail

storeEntityWithEnumValue

public void storeEntityWithEnumValue()
                              throws org.nuiton.topia.TopiaException
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:
org.nuiton.topia.TopiaException - if any exception with db


Copyright © 2004-2012 CodeLutin. All Rights Reserved.