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

Public Member Functions

void T001_LoadEmpty ()
 
void T010_StoreReadVerifyAssets ()
 
void T020_CheckForWeirdCreatorID ()
 
- Public Member Functions inherited from OpenSim.Data.Tests.BasicDataServiceTest< TConn, TService >
 BasicDataServiceTest ()
 
 BasicDataServiceTest (string conn)
 
void Init ()
 
void Cleanup ()
 

Public Attributes

UUID uuid1 = UUID.Random()
 
UUID uuid2 = UUID.Random()
 
UUID uuid3 = UUID.Random()
 
string critter1 = UUID.Random().ToString()
 
string critter2 = UUID.Random().ToString()
 
string critter3 = UUID.Random().ToString()
 
byte[] data1 = new byte[100]
 

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() 
TAssetData :AssetDataBase 
TAssetData :new() 

Definition at line 58 of file AssetTests.cs.

Member Function Documentation

override void OpenSim.Data.Tests.AssetTests< TConn, TAssetData >.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 84 of file AssetTests.cs.

void OpenSim.Data.Tests.AssetTests< TConn, TAssetData >.T001_LoadEmpty ( )
inline

Definition at line 99 of file AssetTests.cs.

void OpenSim.Data.Tests.AssetTests< TConn, TAssetData >.T010_StoreReadVerifyAssets ( )
inline

Definition at line 110 of file AssetTests.cs.

void OpenSim.Data.Tests.AssetTests< TConn, TAssetData >.T020_CheckForWeirdCreatorID ( )
inline

Definition at line 190 of file AssetTests.cs.

Member Data Documentation

string OpenSim.Data.Tests.AssetTests< TConn, TAssetData >.critter1 = UUID.Random().ToString()

Definition at line 68 of file AssetTests.cs.

string OpenSim.Data.Tests.AssetTests< TConn, TAssetData >.critter2 = UUID.Random().ToString()

Definition at line 69 of file AssetTests.cs.

string OpenSim.Data.Tests.AssetTests< TConn, TAssetData >.critter3 = UUID.Random().ToString()

Definition at line 70 of file AssetTests.cs.

byte [] OpenSim.Data.Tests.AssetTests< TConn, TAssetData >.data1 = new byte[100]

Definition at line 72 of file AssetTests.cs.

UUID OpenSim.Data.Tests.AssetTests< TConn, TAssetData >.uuid1 = UUID.Random()

Definition at line 64 of file AssetTests.cs.

UUID OpenSim.Data.Tests.AssetTests< TConn, TAssetData >.uuid2 = UUID.Random()

Definition at line 65 of file AssetTests.cs.

UUID OpenSim.Data.Tests.AssetTests< TConn, TAssetData >.uuid3 = UUID.Random()

Definition at line 66 of file AssetTests.cs.


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