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.InventoryTests< TConn, TInvStore > Class Template Reference
Inheritance diagram for OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >:
Inheritance graph
[legend]
Collaboration diagram for OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >:
Collaboration graph
[legend]

Public Member Functions

 InventoryTests (string conn)
 
 InventoryTests ()
 
void T001_LoadEmpty ()
 
void T010_FolderNonParent ()
 
void T011_FolderCreate ()
 
void T012_FolderList ()
 
void T013_FolderHierarchy ()
 
void T014_MoveFolder ()
 
void T015_FolderHierarchy ()
 
void T100_NoItems ()
 
void T101_CreatItems ()
 
void T102_CompareItems ()
 
void T103_UpdateItem ()
 
void T104_RandomUpdateItem ()
 
void T999_StillNull ()
 
- Public Member Functions inherited from OpenSim.Data.Tests.BasicDataServiceTest< TConn, TService >
 BasicDataServiceTest ()
 
 BasicDataServiceTest (string conn)
 
void Init ()
 
void Cleanup ()
 

Public Attributes

IInventoryDataPlugin db
 
UUID zero = UUID.Zero
 
UUID folder1 = UUID.Random()
 
UUID folder2 = UUID.Random()
 
UUID folder3 = UUID.Random()
 
UUID owner1 = UUID.Random()
 
UUID owner2 = UUID.Random()
 
UUID owner3 = UUID.Random()
 
UUID item1 = UUID.Random()
 
UUID item2 = UUID.Random()
 
UUID item3 = UUID.Random()
 
UUID asset1 = UUID.Random()
 
UUID asset2 = UUID.Random()
 
UUID asset3 = UUID.Random()
 
string name1
 
string name2 = "First Level folder"
 
string name3 = "First Level folder 2"
 
string niname1 = "My Shirt"
 
string iname1 = "Shirt"
 
string iname2 = "Text Board"
 
string iname3 = "No Pants Barrel"
 

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() 
TInvStore :class 
TInvStore :IInventoryDataPlugin 
TInvStore :new() 

Definition at line 52 of file InventoryTests.cs.

Constructor & Destructor Documentation

OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.InventoryTests ( string  conn)
inline

Definition at line 82 of file InventoryTests.cs.

OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.InventoryTests ( )
inline

Definition at line 86 of file InventoryTests.cs.

Member Function Documentation

override void OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.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 88 of file InventoryTests.cs.

void OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.T001_LoadEmpty ( )
inline

Definition at line 102 of file InventoryTests.cs.

void OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.T010_FolderNonParent ( )
inline

Definition at line 122 of file InventoryTests.cs.

void OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.T011_FolderCreate ( )
inline

Definition at line 134 of file InventoryTests.cs.

void OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.T012_FolderList ( )
inline

Definition at line 159 of file InventoryTests.cs.

void OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.T013_FolderHierarchy ( )
inline

Definition at line 175 of file InventoryTests.cs.

void OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.T014_MoveFolder ( )
inline

Definition at line 190 of file InventoryTests.cs.

void OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.T015_FolderHierarchy ( )
inline

Definition at line 206 of file InventoryTests.cs.

void OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.T100_NoItems ( )
inline

Definition at line 219 of file InventoryTests.cs.

void OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.T101_CreatItems ( )
inline

Definition at line 233 of file InventoryTests.cs.

void OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.T102_CompareItems ( )
inline

Definition at line 244 of file InventoryTests.cs.

void OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.T103_UpdateItem ( )
inline

Definition at line 263 of file InventoryTests.cs.

void OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.T104_RandomUpdateItem ( )
inline

Definition at line 283 of file InventoryTests.cs.

void OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.T999_StillNull ( )
inline

Definition at line 342 of file InventoryTests.cs.

Member Data Documentation

UUID OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.asset1 = UUID.Random()

Definition at line 70 of file InventoryTests.cs.

UUID OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.asset2 = UUID.Random()

Definition at line 71 of file InventoryTests.cs.

UUID OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.asset3 = UUID.Random()

Definition at line 72 of file InventoryTests.cs.

IInventoryDataPlugin OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.db

Definition at line 56 of file InventoryTests.cs.

UUID OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.folder1 = UUID.Random()

Definition at line 60 of file InventoryTests.cs.

UUID OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.folder2 = UUID.Random()

Definition at line 61 of file InventoryTests.cs.

UUID OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.folder3 = UUID.Random()

Definition at line 62 of file InventoryTests.cs.

string OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.iname1 = "Shirt"

Definition at line 78 of file InventoryTests.cs.

string OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.iname2 = "Text Board"

Definition at line 79 of file InventoryTests.cs.

string OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.iname3 = "No Pants Barrel"

Definition at line 80 of file InventoryTests.cs.

UUID OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.item1 = UUID.Random()

Definition at line 67 of file InventoryTests.cs.

UUID OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.item2 = UUID.Random()

Definition at line 68 of file InventoryTests.cs.

UUID OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.item3 = UUID.Random()

Definition at line 69 of file InventoryTests.cs.

string OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.name1

Definition at line 74 of file InventoryTests.cs.

string OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.name2 = "First Level folder"

Definition at line 75 of file InventoryTests.cs.

string OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.name3 = "First Level folder 2"

Definition at line 76 of file InventoryTests.cs.

string OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.niname1 = "My Shirt"

Definition at line 77 of file InventoryTests.cs.

UUID OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.owner1 = UUID.Random()

Definition at line 63 of file InventoryTests.cs.

UUID OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.owner2 = UUID.Random()

Definition at line 64 of file InventoryTests.cs.

UUID OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.owner3 = UUID.Random()

Definition at line 65 of file InventoryTests.cs.

UUID OpenSim.Data.Tests.InventoryTests< TConn, TInvStore >.zero = UUID.Zero

Definition at line 58 of file InventoryTests.cs.


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