OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
OpenSim.Data.Tests.RegionTests< TConn, TRegStore > Class Template Reference
Inheritance diagram for OpenSim.Data.Tests.RegionTests< TConn, TRegStore >:
Inheritance graph
[legend]
Collaboration diagram for OpenSim.Data.Tests.RegionTests< TConn, TRegStore >:
Collaboration graph
[legend]

Public Member Functions

 RegionTests (string conn, bool rebuild)
 
 RegionTests ()
 
 RegionTests (string conn)
 
 RegionTests (bool rebuild)
 
void T001_LoadEmpty ()
 
void T010_StoreSimpleObject ()
 
void T011_ObjectNames ()
 
void T012_SceneParts ()
 
void T013_DatabasePersistency ()
 
void T014_UpdateObject ()
 
void T015_LargeSceneObjects ()
 Test storage and retrieval of a scene object with a large number of parts. More...
 
void T016_RandomSogWithSceneParts ()
 
void T020_PrimInventoryEmpty ()
 
void T021_PrimInventoryBasic ()
 
void T025_PrimInventoryPersistency ()
 
void T026_PrimInventoryMany ()
 
void T052_RemoveObject ()
 
void T100_DefaultRegionInfo ()
 
void T101_UpdateRegionInfo ()
 
void T300_NoTerrain ()
 
void T301_CreateTerrain ()
 
void T302_FetchTerrain ()
 
void T303_UpdateTerrain ()
 
void T400_EmptyLand ()
 
- Public Member Functions inherited from OpenSim.Data.Tests.BasicDataServiceTest< TConn, TService >
 BasicDataServiceTest ()
 
 BasicDataServiceTest (string conn)
 
void Init ()
 
void Cleanup ()
 

Public Attributes

ISimulationDataStore db
 
UUID zero = UUID.Zero
 
UUID region1 = UUID.Random()
 
UUID region2 = UUID.Random()
 
UUID region3 = UUID.Random()
 
UUID region4 = UUID.Random()
 
UUID prim1 = UUID.Random()
 
UUID prim2 = UUID.Random()
 
UUID prim3 = UUID.Random()
 
UUID prim4 = UUID.Random()
 
UUID prim5 = UUID.Random()
 
UUID prim6 = UUID.Random()
 
UUID item1 = UUID.Random()
 
UUID item2 = UUID.Random()
 
UUID item3 = UUID.Random()
 
string itemname1 = "item1"
 
uint localID = 1
 
double height1 = 20
 
double height2 = 100
 

Static Public Attributes

static Random random = new Random()
 

Protected Member Functions

override void InitService (object service)
 To be overridden in derived classes. Do whatever init with the m_service, like setting the conn string to it. You'd probably want to to cast the 'service' to a more specific type and store it in a member var. This framework takes care of disposing it, if it's disposable. More...
 
- Protected Member Functions inherited from OpenSim.Data.Tests.BasicDataServiceTest< TConn, TService >
virtual DbConnection Connect ()
 
virtual void ExecuteSql (string sql)
 
delegate bool ProcessRow (IDataReader reader)
 
virtual int ExecQuery (string sql, bool bSingleRow, ProcessRow action)
 
virtual void DropTables (params string[] tables)
 Drop tables (listed as parameters). There is no "DROP IF EXISTS" syntax common for all databases, so we just DROP and ignore an exception. More...
 
virtual void ResetMigrations (params string[] stores)
 Clear tables listed as parameters (without dropping them). More...
 
virtual void ClearTables (params string[] tables)
 Clear tables listed as parameters (without dropping them). More...
 

Additional Inherited Members

- Protected Attributes inherited from OpenSim.Data.Tests.BasicDataServiceTest< TConn, TService >
string m_connStr
 
ILog m_log
 

Detailed Description

Type Constraints
TConn :DbConnection 
TConn :new() 
TRegStore :class 
TRegStore :ISimulationDataStore 
TRegStore :new() 

Definition at line 63 of file RegionTests.cs.

Constructor & Destructor Documentation

OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.RegionTests ( string  conn,
bool  rebuild 
)
inline

Definition at line 94 of file RegionTests.cs.

OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.RegionTests ( )
inline

Definition at line 100 of file RegionTests.cs.

OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.RegionTests ( string  conn)
inline

Definition at line 101 of file RegionTests.cs.

OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.RegionTests ( bool  rebuild)
inline

Definition at line 102 of file RegionTests.cs.

Member Function Documentation

override void OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.InitService ( object  service)
inlineprotectedvirtual

To be overridden in derived classes. Do whatever init with the m_service, like setting the conn string to it. You'd probably want to to cast the 'service' to a more specific type and store it in a member var. This framework takes care of disposing it, if it's disposable.

Parameters
serviceThe service being tested

Reimplemented from OpenSim.Data.Tests.BasicDataServiceTest< TConn, TService >.

Definition at line 105 of file RegionTests.cs.

void OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.T001_LoadEmpty ( )
inline

Definition at line 145 of file RegionTests.cs.

void OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.T010_StoreSimpleObject ( )
inline

Definition at line 163 of file RegionTests.cs.

void OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.T011_ObjectNames ( )
inline

Definition at line 198 of file RegionTests.cs.

void OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.T012_SceneParts ( )
inline

Definition at line 212 of file RegionTests.cs.

void OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.T013_DatabasePersistency ( )
inline

Definition at line 247 of file RegionTests.cs.

void OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.T014_UpdateObject ( )
inline

Definition at line 419 of file RegionTests.cs.

void OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.T015_LargeSceneObjects ( )
inline

Test storage and retrieval of a scene object with a large number of parts.

Definition at line 527 of file RegionTests.cs.

void OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.T016_RandomSogWithSceneParts ( )
inline

Definition at line 574 of file RegionTests.cs.

void OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.T020_PrimInventoryEmpty ( )
inline

Definition at line 649 of file RegionTests.cs.

void OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.T021_PrimInventoryBasic ( )
inline

Definition at line 673 of file RegionTests.cs.

void OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.T025_PrimInventoryPersistency ( )
inline

Definition at line 713 of file RegionTests.cs.

void OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.T026_PrimInventoryMany ( )
inline

Definition at line 786 of file RegionTests.cs.

void OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.T052_RemoveObject ( )
inline

Definition at line 818 of file RegionTests.cs.

void OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.T100_DefaultRegionInfo ( )
inline

Definition at line 828 of file RegionTests.cs.

void OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.T101_UpdateRegionInfo ( )
inline

Definition at line 840 of file RegionTests.cs.

void OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.T300_NoTerrain ( )
inline

Definition at line 946 of file RegionTests.cs.

void OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.T301_CreateTerrain ( )
inline

Definition at line 957 of file RegionTests.cs.

void OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.T302_FetchTerrain ( )
inline

Definition at line 974 of file RegionTests.cs.

void OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.T303_UpdateTerrain ( )
inline

Definition at line 986 of file RegionTests.cs.

void OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.T400_EmptyLand ( )
inline

Definition at line 1003 of file RegionTests.cs.

Member Data Documentation

ISimulationDataStore OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.db

Definition at line 69 of file RegionTests.cs.

double OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.height1 = 20

Definition at line 91 of file RegionTests.cs.

double OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.height2 = 100

Definition at line 92 of file RegionTests.cs.

UUID OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.item1 = UUID.Random()

Definition at line 81 of file RegionTests.cs.

UUID OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.item2 = UUID.Random()

Definition at line 82 of file RegionTests.cs.

UUID OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.item3 = UUID.Random()

Definition at line 83 of file RegionTests.cs.

string OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.itemname1 = "item1"

Definition at line 87 of file RegionTests.cs.

uint OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.localID = 1

Definition at line 89 of file RegionTests.cs.

UUID OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.prim1 = UUID.Random()

Definition at line 75 of file RegionTests.cs.

UUID OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.prim2 = UUID.Random()

Definition at line 76 of file RegionTests.cs.

UUID OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.prim3 = UUID.Random()

Definition at line 77 of file RegionTests.cs.

UUID OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.prim4 = UUID.Random()

Definition at line 78 of file RegionTests.cs.

UUID OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.prim5 = UUID.Random()

Definition at line 79 of file RegionTests.cs.

UUID OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.prim6 = UUID.Random()

Definition at line 80 of file RegionTests.cs.

Random OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.random = new Random()
static

Definition at line 85 of file RegionTests.cs.

UUID OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.region1 = UUID.Random()

Definition at line 71 of file RegionTests.cs.

UUID OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.region2 = UUID.Random()

Definition at line 72 of file RegionTests.cs.

UUID OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.region3 = UUID.Random()

Definition at line 73 of file RegionTests.cs.

UUID OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.region4 = UUID.Random()

Definition at line 74 of file RegionTests.cs.

UUID OpenSim.Data.Tests.RegionTests< TConn, TRegStore >.zero = UUID.Zero

Definition at line 70 of file RegionTests.cs.


The documentation for this class was generated from the following file: