diff options
author | Sean Dague | 2008-09-12 18:13:43 +0000 |
---|---|---|
committer | Sean Dague | 2008-09-12 18:13:43 +0000 |
commit | 9349cf314963a2b74727b86e37b41642c7212d6d (patch) | |
tree | e52240f71b1bce3531649ce1629e1b62219f6827 /OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs | |
parent | change order in prebuild.xml so this works in nant on a clean (diff) | |
download | opensim-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.cs | 18 |
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; | |||
30 | using NUnit.Framework; | 30 | using NUnit.Framework; |
31 | using NUnit.Framework.SyntaxHelpers; | 31 | using NUnit.Framework.SyntaxHelpers; |
32 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
33 | using OpenSim.Data.Tests; | ||
33 | using OpenSim.Data.SQLite; | 34 | using OpenSim.Data.SQLite; |
34 | using OpenSim.Region.Environment.Scenes; | 35 | using OpenSim.Region.Environment.Scenes; |
35 | using OpenMetaverse; | 36 | using OpenMetaverse; |
@@ -37,25 +38,18 @@ using OpenMetaverse; | |||
37 | namespace OpenSim.Data.SQLite.Tests | 38 | namespace 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 |