aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorCharles Krinke2009-01-11 18:24:16 +0000
committerCharles Krinke2009-01-11 18:24:16 +0000
commit40f34aeffd64e2aa81cecb2e861f60d6e8886198 (patch)
tree5d0059eb7aa70799c8239bb273efc997138cabb5 /OpenSim/Region
parentThank you kindly, Tlaukkan (Tommil) for a patch that: (diff)
downloadopensim-SC_OLD-40f34aeffd64e2aa81cecb2e861f60d6e8886198.zip
opensim-SC_OLD-40f34aeffd64e2aa81cecb2e861f60d6e8886198.tar.gz
opensim-SC_OLD-40f34aeffd64e2aa81cecb2e861f60d6e8886198.tar.bz2
opensim-SC_OLD-40f34aeffd64e2aa81cecb2e861f60d6e8886198.tar.xz
Thank you kindly, Tlaukkan (Tommil) for a patch that:
Fixed all NHibernate unit tests by implementing missing persistency methods, tables, columns and fixing bugs in the existing implementation. Two minor changes to classes outside NHibernate module: Added Scene instantiation for SceneObjectGroup in OpenSim.Data.Tests.BasicRegionTest as this was required by the NHibernate persistency. In the process added also mock constructor to Scene which only populates RegionInfo in the scene which is used by ScenePart.RegionUUID. NHibernate module is still in experimental state and has not been tested at opensim region or ugaim runtime configuration. Adding unit tests to build is not yet advisable nor using NHibernate module in any production setup.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index 3b4b719..37ff645 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -404,6 +404,17 @@ namespace OpenSim.Region.Environment.Scenes
404 } 404 }
405 } 405 }
406 406
407 /// <summary>
408 /// Mock constructor for scene group persistency unit tests.
409 /// SceneObjectGroup RegionId property is delegated to Scene.
410 /// </summary>
411 /// <param name="regInfo"></param>
412 public Scene(RegionInfo regInfo)
413 {
414 m_regInfo = regInfo;
415 m_eventManager = new EventManager();
416 }
417
407 #endregion 418 #endregion
408 419
409 #region Startup / Close Methods 420 #region Startup / Close Methods