aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
authorJeff Ames2009-06-22 10:07:27 +0000
committerJeff Ames2009-06-22 10:07:27 +0000
commit142b481e032f7b8206a19e78af82847370b8bf9c (patch)
tree56fdf67bdc78d29214e2ea4742ffb7abcd36d212 /OpenSim/Region/Framework/Scenes
parent* Panda no like LongRunningAttribute, no? Me now reverting minuscule fix, yes... (diff)
downloadopensim-SC_OLD-142b481e032f7b8206a19e78af82847370b8bf9c.zip
opensim-SC_OLD-142b481e032f7b8206a19e78af82847370b8bf9c.tar.gz
opensim-SC_OLD-142b481e032f7b8206a19e78af82847370b8bf9c.tar.bz2
opensim-SC_OLD-142b481e032f7b8206a19e78af82847370b8bf9c.tar.xz
Update svn properties.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/Tests/SceneBaseTests.cs160
-rw-r--r--OpenSim/Region/Framework/Scenes/Tests/SceneTests.cs276
2 files changed, 218 insertions, 218 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Tests/SceneBaseTests.cs b/OpenSim/Region/Framework/Scenes/Tests/SceneBaseTests.cs
index 54bf51b..87bd20e 100644
--- a/OpenSim/Region/Framework/Scenes/Tests/SceneBaseTests.cs
+++ b/OpenSim/Region/Framework/Scenes/Tests/SceneBaseTests.cs
@@ -1,80 +1,80 @@
1/* 1/*
2 * Copyright (c) Contributors, http://opensimulator.org/ 2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders. 3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright 7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright 9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution. 11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the 12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products 13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission. 14 * derived from this software without specific prior written permission.
15 * 15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY 16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY 19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28using System; 28using System;
29using NUnit.Framework; 29using NUnit.Framework;
30using OpenMetaverse; 30using OpenMetaverse;
31using OpenSim.Framework; 31using OpenSim.Framework;
32 32
33namespace OpenSim.Region.Framework.Scenes.Tests 33namespace OpenSim.Region.Framework.Scenes.Tests
34{ 34{
35 /// <summary> 35 /// <summary>
36 /// Scene presence tests 36 /// Scene presence tests
37 /// </summary> 37 /// </summary>
38 [TestFixture] 38 [TestFixture]
39 public class SceneBaseTests 39 public class SceneBaseTests
40 { 40 {
41 private class SceneBaseImpl : SceneBase 41 private class SceneBaseImpl : SceneBase
42 { 42 {
43 public override void Update() 43 public override void Update()
44 { 44 {
45 throw new NotImplementedException(); 45 throw new NotImplementedException();
46 } 46 }
47 47
48 public override void LoadWorldMap() 48 public override void LoadWorldMap()
49 { 49 {
50 throw new NotImplementedException(); 50 throw new NotImplementedException();
51 } 51 }
52 52
53 public override void AddNewClient(IClientAPI client) 53 public override void AddNewClient(IClientAPI client)
54 { 54 {
55 throw new NotImplementedException(); 55 throw new NotImplementedException();
56 } 56 }
57 57
58 public override void RemoveClient(UUID agentID) 58 public override void RemoveClient(UUID agentID)
59 { 59 {
60 throw new NotImplementedException(); 60 throw new NotImplementedException();
61 } 61 }
62 62
63 public override void CloseAllAgents(uint circuitcode) 63 public override void CloseAllAgents(uint circuitcode)
64 { 64 {
65 throw new NotImplementedException(); 65 throw new NotImplementedException();
66 } 66 }
67 67
68 public override bool OtherRegionUp(RegionInfo thisRegion) 68 public override bool OtherRegionUp(RegionInfo thisRegion)
69 { 69 {
70 throw new NotImplementedException(); 70 throw new NotImplementedException();
71 } 71 }
72 } 72 }
73 73
74 [Test] 74 [Test]
75 public void TestConstructor() 75 public void TestConstructor()
76 { 76 {
77 SceneBase scene = new SceneBaseImpl(); 77 SceneBase scene = new SceneBaseImpl();
78 } 78 }
79 } 79 }
80} 80}
diff --git a/OpenSim/Region/Framework/Scenes/Tests/SceneTests.cs b/OpenSim/Region/Framework/Scenes/Tests/SceneTests.cs
index 3c2fa1a..4d6a86b 100644
--- a/OpenSim/Region/Framework/Scenes/Tests/SceneTests.cs
+++ b/OpenSim/Region/Framework/Scenes/Tests/SceneTests.cs
@@ -1,138 +1,138 @@
1/* 1/*
2 * Copyright (c) Contributors, http://opensimulator.org/ 2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders. 3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright 7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright 9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution. 11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the 12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products 13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission. 14 * derived from this software without specific prior written permission.
15 * 15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY 16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY 19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28using System; 28using System;
29using System.Collections.Generic; 29using System.Collections.Generic;
30using NUnit.Framework; 30using NUnit.Framework;
31using OpenMetaverse; 31using OpenMetaverse;
32using OpenSim.Framework; 32using OpenSim.Framework;
33using OpenSim.Region.Framework.Interfaces; 33using OpenSim.Region.Framework.Interfaces;
34 34
35namespace OpenSim.Region.Framework.Scenes.Tests 35namespace OpenSim.Region.Framework.Scenes.Tests
36{ 36{
37 /// <summary> 37 /// <summary>
38 /// Scene presence tests 38 /// Scene presence tests
39 /// </summary> 39 /// </summary>
40 [TestFixture] 40 [TestFixture]
41 public class SceneTests 41 public class SceneTests
42 { 42 {
43 private class FakeStorageManager : StorageManager 43 private class FakeStorageManager : StorageManager
44 { 44 {
45 private class FakeRegionDataStore : IRegionDataStore 45 private class FakeRegionDataStore : IRegionDataStore
46 { 46 {
47 public void Initialise(string filename) 47 public void Initialise(string filename)
48 { 48 {
49 } 49 }
50 50
51 public void Dispose() 51 public void Dispose()
52 { 52 {
53 } 53 }
54 54
55 public void StoreObject(SceneObjectGroup obj, UUID regionUUID) 55 public void StoreObject(SceneObjectGroup obj, UUID regionUUID)
56 { 56 {
57 throw new NotImplementedException(); 57 throw new NotImplementedException();
58 } 58 }
59 59
60 public void RemoveObject(UUID uuid, UUID regionUUID) 60 public void RemoveObject(UUID uuid, UUID regionUUID)
61 { 61 {
62 throw new NotImplementedException(); 62 throw new NotImplementedException();
63 } 63 }
64 64
65 public void StorePrimInventory(UUID primID, ICollection<TaskInventoryItem> items) 65 public void StorePrimInventory(UUID primID, ICollection<TaskInventoryItem> items)
66 { 66 {
67 throw new NotImplementedException(); 67 throw new NotImplementedException();
68 } 68 }
69 69
70 public List<SceneObjectGroup> LoadObjects(UUID regionUUID) 70 public List<SceneObjectGroup> LoadObjects(UUID regionUUID)
71 { 71 {
72 throw new NotImplementedException(); 72 throw new NotImplementedException();
73 } 73 }
74 74
75 public void StoreTerrain(double[,] terrain, UUID regionID) 75 public void StoreTerrain(double[,] terrain, UUID regionID)
76 { 76 {
77 throw new NotImplementedException(); 77 throw new NotImplementedException();
78 } 78 }
79 79
80 public double[,] LoadTerrain(UUID regionID) 80 public double[,] LoadTerrain(UUID regionID)
81 { 81 {
82 throw new NotImplementedException(); 82 throw new NotImplementedException();
83 } 83 }
84 84
85 public void StoreLandObject(ILandObject Parcel) 85 public void StoreLandObject(ILandObject Parcel)
86 { 86 {
87 throw new NotImplementedException(); 87 throw new NotImplementedException();
88 } 88 }
89 89
90 public void RemoveLandObject(UUID globalID) 90 public void RemoveLandObject(UUID globalID)
91 { 91 {
92 throw new NotImplementedException(); 92 throw new NotImplementedException();
93 } 93 }
94 94
95 public List<LandData> LoadLandObjects(UUID regionUUID) 95 public List<LandData> LoadLandObjects(UUID regionUUID)
96 { 96 {
97 throw new NotImplementedException(); 97 throw new NotImplementedException();
98 } 98 }
99 99
100 public void StoreRegionSettings(RegionSettings rs) 100 public void StoreRegionSettings(RegionSettings rs)
101 { 101 {
102 throw new NotImplementedException(); 102 throw new NotImplementedException();
103 } 103 }
104 104
105 public RegionSettings LoadRegionSettings(UUID regionUUID) 105 public RegionSettings LoadRegionSettings(UUID regionUUID)
106 { 106 {
107 return null; 107 return null;
108 } 108 }
109 109
110 public void Shutdown() 110 public void Shutdown()
111 { 111 {
112 throw new NotImplementedException(); 112 throw new NotImplementedException();
113 } 113 }
114 } 114 }
115 115
116 public FakeStorageManager() : base( new FakeRegionDataStore() ) 116 public FakeStorageManager() : base( new FakeRegionDataStore() )
117 { 117 {
118 } 118 }
119 119
120 public FakeStorageManager(IRegionDataStore storage) : this() 120 public FakeStorageManager(IRegionDataStore storage) : this()
121 { 121 {
122 } 122 }
123 123
124 public FakeStorageManager(string dllName, string connectionstring, string estateconnectionstring) : this() 124 public FakeStorageManager(string dllName, string connectionstring, string estateconnectionstring) : this()
125 { 125 {
126 } 126 }
127 } 127 }
128 128
129 [Test] 129 [Test]
130 public void TestConstructor() 130 public void TestConstructor()
131 { 131 {
132 RegionInfo regionInfo = new RegionInfo(0,0,null,null); 132 RegionInfo regionInfo = new RegionInfo(0,0,null,null);
133 FakeStorageManager storageManager = new FakeStorageManager(); 133 FakeStorageManager storageManager = new FakeStorageManager();
134 134
135 Scene scene = new Scene(regionInfo, null, null, null, storageManager, null, false, false, false, null, null ); 135 Scene scene = new Scene(regionInfo, null, null, null, storageManager, null, false, false, false, null, null );
136 } 136 }
137 } 137 }
138} 138}