aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/SQLite/Tests/SQLiteRegionTest.cs24
1 files changed, 22 insertions, 2 deletions
diff --git a/OpenSim/Data/SQLite/Tests/SQLiteRegionTest.cs b/OpenSim/Data/SQLite/Tests/SQLiteRegionTest.cs
index 727174d..2e93fd6 100644
--- a/OpenSim/Data/SQLite/Tests/SQLiteRegionTest.cs
+++ b/OpenSim/Data/SQLite/Tests/SQLiteRegionTest.cs
@@ -103,11 +103,31 @@ namespace OpenSim.Data.SQLite.Tests
103 } 103 }
104 104
105 [Test] 105 [Test]
106 public void T010_UpdateObject() 106 public void T012_UpdateObject()
107 { 107 {
108 108 string text = "object1 text";
109 SceneObjectGroup sog = FindSOG("object1", region);
110 sog.RootPart.Text = text;
111 db.StoreObject(sog, region);
112
113 sog = FindSOG("object1", region);
114 Assert.That(text, Text.Matches(sog.RootPart.Text));
109 } 115 }
110 116
117 // Extra private methods
118
119 private SceneObjectGroup FindSOG(string name, UUID r)
120 {
121 List<SceneObjectGroup> objs = db.LoadObjects(r);
122 foreach (SceneObjectGroup sog in objs)
123 {
124 SceneObjectPart p = sog.RootPart;
125 if (p.Name == name) {
126 return sog;
127 }
128 }
129 return null;
130 }
111 131
112 private SceneObjectGroup NewSOG(string name) 132 private SceneObjectGroup NewSOG(string name)
113 { 133 {