org.olat.properties
Class PropertyTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.olat.core.test.OlatTestCase
              extended by org.olat.properties.PropertyTest
All Implemented Interfaces:
junit.framework.Test, OLATResourceable

public class PropertyTest
extends OlatTestCase
implements OLATResourceable

Initial Date: Mar 11, 2004

Author:
Mike Stock Comment:

Constructor Summary
PropertyTest(java.lang.String arg0)
           
 
Method Summary
 java.lang.Long getResourceableId()
           
 java.lang.String getResourceableTypeName()
           
 void rewqtestPerf500Properties()
          Performance test of 500 propertycreations per type.
 void setUp()
           
static junit.framework.Test suite()
           
 void tearDown()
           
 void testFindIdentities()
           
 void testFindProperties()
           
 void testFloatValues()
          testFloatValues
 void testGenericInsertFindDelete()
          testGenericInsertFindDelete
 void testGetAllResourceTypeNames()
          testGetAllResourceTypeNames
 void testListProperties()
          testListProperties
 void testUserInsertFindDelete()
          testUserInsertFindDelete
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, setName, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyTest

public PropertyTest(java.lang.String arg0)
Parameters:
arg0 -
Method Detail

suite

public static junit.framework.Test suite()
                                  throws java.lang.Exception
Returns:
Test
Throws:
java.lang.Exception

setUp

public void setUp()
Overrides:
setUp in class junit.framework.TestCase
See Also:
TestCase.setUp()

tearDown

public void tearDown()
Overrides:
tearDown in class junit.framework.TestCase
See Also:
TestCase.tearDown()

testGenericInsertFindDelete

public void testGenericInsertFindDelete()
testGenericInsertFindDelete


testGetAllResourceTypeNames

public void testGetAllResourceTypeNames()
testGetAllResourceTypeNames


testListProperties

public void testListProperties()
testListProperties


testUserInsertFindDelete

public void testUserInsertFindDelete()
testUserInsertFindDelete


rewqtestPerf500Properties

public void rewqtestPerf500Properties()
Performance test of 500 propertycreations per type. Rename to testPerf500Properties to include this test in the test suit.


testFloatValues

public void testFloatValues()
testFloatValues


testFindIdentities

public void testFindIdentities()

testFindProperties

public void testFindProperties()

getResourceableTypeName

public java.lang.String getResourceableTypeName()
Specified by:
getResourceableTypeName in interface OLATResourceable
Returns:
a type name. It must be unique within OLAT. Consider this.getClass().getName() as such a type name.
See Also:
org.olat.core.id.OLATResourceablegetResourceableTypeName()

getResourceableId

public java.lang.Long getResourceableId()
Specified by:
getResourceableId in interface OLATResourceable
Returns:
a number identfiying the instance of this type. if null, then the OLATResourcable is just a type. The value 0 (zero) is not allowed
See Also:
org.olat.core.id.OLATResourceablegetResourceableId()