aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs
diff options
context:
space:
mode:
authorSean Dague2008-09-12 18:13:43 +0000
committerSean Dague2008-09-12 18:13:43 +0000
commit9349cf314963a2b74727b86e37b41642c7212d6d (patch)
treee52240f71b1bce3531649ce1629e1b62219f6827 /OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs
parentchange order in prebuild.xml so this works in nant on a clean (diff)
downloadopensim-SC_OLD-9349cf314963a2b74727b86e37b41642c7212d6d.zip
opensim-SC_OLD-9349cf314963a2b74727b86e37b41642c7212d6d.tar.gz
opensim-SC_OLD-9349cf314963a2b74727b86e37b41642c7212d6d.tar.bz2
opensim-SC_OLD-9349cf314963a2b74727b86e37b41642c7212d6d.tar.xz
move the actual [Test] methods for databases to OpenSim.Data.Tests
classes. This did mean loosing 1 unit test that was actually testing an sqlite function directly instead of the interface.
Diffstat (limited to 'OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs')
-rw-r--r--OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs18
1 files changed, 3 insertions, 15 deletions
diff --git a/OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs b/OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs
index d00a177..d4aaf99 100644
--- a/OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs
+++ b/OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs
@@ -30,6 +30,7 @@ using System.Collections.Generic;
30using NUnit.Framework; 30using NUnit.Framework;
31using NUnit.Framework.SyntaxHelpers; 31using NUnit.Framework.SyntaxHelpers;
32using OpenSim.Framework; 32using OpenSim.Framework;
33using OpenSim.Data.Tests;
33using OpenSim.Data.SQLite; 34using OpenSim.Data.SQLite;
34using OpenSim.Region.Environment.Scenes; 35using OpenSim.Region.Environment.Scenes;
35using OpenMetaverse; 36using OpenMetaverse;
@@ -37,25 +38,18 @@ using OpenMetaverse;
37namespace OpenSim.Data.SQLite.Tests 38namespace OpenSim.Data.SQLite.Tests
38{ 39{
39 [TestFixture] 40 [TestFixture]
40 public class SQLiteUserTest 41 public class SQLiteUserTest : BasicUserTest
41 { 42 {
42 public string file = "usertest.db"; 43 public string file = "usertest.db";
43 public string connect; 44 public string connect;
44 public SQLiteUserData db;
45 public UUID uuid1;
46 public UUID uuid2;
47 public UUID uuid3;
48
49 45
50 [TestFixtureSetUp] 46 [TestFixtureSetUp]
51 public void Init() 47 public void Init()
52 { 48 {
49 SuperInit();
53 connect = "URI=file:" + file + ",version=3"; 50 connect = "URI=file:" + file + ",version=3";
54 db = new SQLiteUserData(); 51 db = new SQLiteUserData();
55 db.Initialise(connect); 52 db.Initialise(connect);
56 uuid1 = UUID.Random();
57 uuid2 = UUID.Random();
58 uuid3 = UUID.Random();
59 } 53 }
60 54
61 [TestFixtureTearDown] 55 [TestFixtureTearDown]
@@ -63,11 +57,5 @@ namespace OpenSim.Data.SQLite.Tests
63 { 57 {
64 System.IO.File.Delete(file); 58 System.IO.File.Delete(file);
65 } 59 }
66
67 [Test]
68 public void T001_LoadEmpty()
69 {
70 Assert.That(db.GetUserByUUID(uuid1), Is.Null);
71 }
72 } 60 }
73} \ No newline at end of file 61} \ No newline at end of file