DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
Deveel.Data.Store.Journaled.JournaledFileStoreTests Class Reference
Inheritance diagram for Deveel.Data.Store.Journaled.JournaledFileStoreTests:
Deveel.Data.Sql.Compile.SqlCompileTestBase

Public Member Functions

void SetUp ()
 
void TearDown ()
 

Private Member Functions

void OnSetUp (string testName)
 

Static Private Member Functions

static IConfiguration CreateDatabaseConfig ()
 

Private Attributes

ISystem systemContext
 
IDatabase database
 
const string DatabaseName = "test_db"
 
const string TestAdminUser = "SA"
 
const string TestAdminPass = "abc1234"
 

Additional Inherited Members

- Protected Member Functions inherited from Deveel.Data.Sql.Compile.SqlCompileTestBase
SqlCompileResult Compile (string sql)
 

Detailed Description

Definition at line 11 of file JournaledFileStoreTests.cs.

Member Function Documentation

static IConfiguration Deveel.Data.Store.Journaled.JournaledFileStoreTests.CreateDatabaseConfig ( )
inlinestaticprivate

Definition at line 19 of file JournaledFileStoreTests.cs.

19  {
20  var dbConfig = new Configuration.Configuration();
21  dbConfig.SetValue("database.name", DatabaseName);
22  dbConfig.SetValue("database.storageSystem", DefaultStorageSystemNames.Journaled);
23  dbConfig.SetValue("database.basePath", Environment.CurrentDirectory);
24  return dbConfig;
25  }
Configuration(bool isRoot)
Constructs the Configuration.
void Deveel.Data.Store.Journaled.JournaledFileStoreTests.OnSetUp ( string  testName)
inlineprivate

Definition at line 27 of file JournaledFileStoreTests.cs.

27  {
28  var systemBuilder = new SystemBuilder();
29  systemContext = systemBuilder.BuildSystem();
30 
31  var dbConfig = CreateDatabaseConfig();
32 
33  if (testName != "CreateNewDatabase") {
35  }
36  }
IDatabase CreateDatabase(IConfiguration configuration, string adminUser, string adminPassword)
void Deveel.Data.Store.Journaled.JournaledFileStoreTests.SetUp ( )
inline

Definition at line 39 of file JournaledFileStoreTests.cs.

39  {
40  var test = TestContext.CurrentContext.Test;
41 
42  OnSetUp(test.Name);
43  }
void Deveel.Data.Store.Journaled.JournaledFileStoreTests.TearDown ( )
inline

Definition at line 46 of file JournaledFileStoreTests.cs.

46  {
47  if (database != null) {
48  database.Close();
49  database.Dispose();
50  }
51 
52  var dirName = Path.Combine(Environment.CurrentDirectory, DatabaseName);
53  if (Directory.Exists(dirName))
54  Directory.Delete(dirName);
55  }
void Close()
Closes the database making it not accessible to connections.

Member Data Documentation

IDatabase Deveel.Data.Store.Journaled.JournaledFileStoreTests.database
private

Definition at line 13 of file JournaledFileStoreTests.cs.

const string Deveel.Data.Store.Journaled.JournaledFileStoreTests.DatabaseName = "test_db"
private

Definition at line 15 of file JournaledFileStoreTests.cs.

ISystem Deveel.Data.Store.Journaled.JournaledFileStoreTests.systemContext
private

Definition at line 12 of file JournaledFileStoreTests.cs.

const string Deveel.Data.Store.Journaled.JournaledFileStoreTests.TestAdminPass = "abc1234"
private

Definition at line 17 of file JournaledFileStoreTests.cs.

const string Deveel.Data.Store.Journaled.JournaledFileStoreTests.TestAdminUser = "SA"
private

Definition at line 16 of file JournaledFileStoreTests.cs.


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