aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/Tests
diff options
context:
space:
mode:
authorCharles Krinke2009-02-14 19:47:02 +0000
committerCharles Krinke2009-02-14 19:47:02 +0000
commita583d8ad70daad8c755c2f43e2f2af7bc5b7ee4d (patch)
tree7e90740b7ea86922db55905a34e3b6e065cb6041 /OpenSim/Data/Tests
parentAdd an override for the % operator. (diff)
downloadopensim-SC_OLD-a583d8ad70daad8c755c2f43e2f2af7bc5b7ee4d.zip
opensim-SC_OLD-a583d8ad70daad8c755c2f43e2f2af7bc5b7ee4d.tar.gz
opensim-SC_OLD-a583d8ad70daad8c755c2f43e2f2af7bc5b7ee4d.tar.bz2
opensim-SC_OLD-a583d8ad70daad8c755c2f43e2f2af7bc5b7ee4d.tar.xz
Thank you kindly, TLaukkan (Tommil) for a patch that:
* Created value object for EstateRegionLink for storing the estate region relationship. * Refactored slightly NHibernateManager and NHibernateXXXXData implementations for accesing nhibernate generated ID on insert. ** Changed NHibernateManager.Save method name to Insert as it does Insert. ** Changed NHibernateManager.Save return value object as ID can be both UUID and uint currently. ** Changed NHibernateManager.Load method Id parameter to object as it can be both UUID and uint. * Created NHibernateEstateData implementation. This is the actual estate storage. * Created NHibernate mapping files for both EstateSettings and EstateRegionLink * Created MigrationSyntaxDifferences.txt files to write notes about differences in migration scripts between different databases. * Created estate storage migration scripts for all four databases. * Created estate unit test classes for all four databases. * Updated one missing field to BasicEstateTest.cs * Tested NHibernate unit tests with NUnit GUI. Asset databases fail but that is not related to this patch. * Tested build with both Visual Studio and nant. * Executed build tests with nant succesfully.
Diffstat (limited to 'OpenSim/Data/Tests')
-rw-r--r--OpenSim/Data/Tests/BasicEstateTest.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Data/Tests/BasicEstateTest.cs b/OpenSim/Data/Tests/BasicEstateTest.cs
index 24c25ec..d0f7a8b 100644
--- a/OpenSim/Data/Tests/BasicEstateTest.cs
+++ b/OpenSim/Data/Tests/BasicEstateTest.cs
@@ -73,6 +73,7 @@ namespace OpenSim.Data.Tests
73 double sunPosition = 7; 73 double sunPosition = 7;
74 bool allowVoice = true; 74 bool allowVoice = true;
75 bool allowDirectTeleport = true; 75 bool allowDirectTeleport = true;
76 bool resetHomeOnTeleport = true;
76 bool denyAnonymous = true; 77 bool denyAnonymous = true;
77 bool denyIdentified = true; 78 bool denyIdentified = true;
78 bool denyTransacted = true; 79 bool denyTransacted = true;
@@ -103,6 +104,7 @@ namespace OpenSim.Data.Tests
103 es.SunPosition = sunPosition; 104 es.SunPosition = sunPosition;
104 es.AllowVoice = allowVoice; 105 es.AllowVoice = allowVoice;
105 es.AllowDirectTeleport = allowDirectTeleport; 106 es.AllowDirectTeleport = allowDirectTeleport;
107 es.ResetHomeOnTeleport = resetHomeOnTeleport;
106 es.DenyAnonymous = denyAnonymous; 108 es.DenyAnonymous = denyAnonymous;
107 es.DenyIdentified = denyIdentified; 109 es.DenyIdentified = denyIdentified;
108 es.DenyTransacted = denyTransacted; 110 es.DenyTransacted = denyTransacted;
@@ -133,6 +135,7 @@ namespace OpenSim.Data.Tests
133 Assert.That(sunPosition, Is.EqualTo(nes.SunPosition)); 135 Assert.That(sunPosition, Is.EqualTo(nes.SunPosition));
134 Assert.That(allowVoice, Is.EqualTo(nes.AllowVoice)); 136 Assert.That(allowVoice, Is.EqualTo(nes.AllowVoice));
135 Assert.That(allowDirectTeleport, Is.EqualTo(nes.AllowDirectTeleport)); 137 Assert.That(allowDirectTeleport, Is.EqualTo(nes.AllowDirectTeleport));
138 Assert.That(resetHomeOnTeleport, Is.EqualTo(nes.ResetHomeOnTeleport));
136 Assert.That(denyAnonymous, Is.EqualTo(nes.DenyAnonymous)); 139 Assert.That(denyAnonymous, Is.EqualTo(nes.DenyAnonymous));
137 Assert.That(denyIdentified, Is.EqualTo(nes.DenyIdentified)); 140 Assert.That(denyIdentified, Is.EqualTo(nes.DenyIdentified));
138 Assert.That(denyTransacted, Is.EqualTo(nes.DenyTransacted)); 141 Assert.That(denyTransacted, Is.EqualTo(nes.DenyTransacted));