aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs14
-rw-r--r--OpenSim/Framework/Communications/Tests/LoginServiceTests.cs12
-rw-r--r--OpenSim/Framework/Servers/Tests/GetAssetStreamHandlerTests.cs11
3 files changed, 37 insertions, 0 deletions
diff --git a/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs b/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs
index 2972a0a..75848b7 100644
--- a/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs
+++ b/OpenSim/Framework/Communications/Tests/Cache/UserProfileCacheServiceTests.cs
@@ -34,6 +34,7 @@ using OpenSim.Framework.Communications.Cache;
34using OpenSim.Region.Communications.Local; 34using OpenSim.Region.Communications.Local;
35using OpenSim.Tests.Common.Mock; 35using OpenSim.Tests.Common.Mock;
36using OpenSim.Tests.Common.Setup; 36using OpenSim.Tests.Common.Setup;
37using OpenSim.Tests.Common;
37 38
38namespace OpenSim.Framework.Communications.Tests 39namespace OpenSim.Framework.Communications.Tests
39{ 40{
@@ -43,6 +44,8 @@ namespace OpenSim.Framework.Communications.Tests
43 [Test] 44 [Test]
44 public void TestGetUserDetails() 45 public void TestGetUserDetails()
45 { 46 {
47 TestHelper.InMethod();
48
46 UUID userId = UUID.Parse("00000000-0000-0000-0000-000000000002"); 49 UUID userId = UUID.Parse("00000000-0000-0000-0000-000000000002");
47 string firstName = "Bill"; 50 string firstName = "Bill";
48 string lastName = "Bailey"; 51 string lastName = "Bailey";
@@ -109,6 +112,8 @@ namespace OpenSim.Framework.Communications.Tests
109 [Test] 112 [Test]
110 public void TestFetchInventory() 113 public void TestFetchInventory()
111 { 114 {
115 TestHelper.InMethod();
116
112 TestCommunicationsManager commsManager = new TestCommunicationsManager(); 117 TestCommunicationsManager commsManager = new TestCommunicationsManager();
113 CachedUserInfo userInfo = UserProfileTestUtils.CreateUserWithInventory(commsManager); 118 CachedUserInfo userInfo = UserProfileTestUtils.CreateUserWithInventory(commsManager);
114 119
@@ -118,6 +123,8 @@ namespace OpenSim.Framework.Communications.Tests
118 [Test] 123 [Test]
119 public void TestGetChildFolder() 124 public void TestGetChildFolder()
120 { 125 {
126 TestHelper.InMethod();
127
121 TestCommunicationsManager commsManager = new TestCommunicationsManager(); 128 TestCommunicationsManager commsManager = new TestCommunicationsManager();
122 CachedUserInfo userInfo = UserProfileTestUtils.CreateUserWithInventory(commsManager); 129 CachedUserInfo userInfo = UserProfileTestUtils.CreateUserWithInventory(commsManager);
123 130
@@ -132,6 +139,8 @@ namespace OpenSim.Framework.Communications.Tests
132 [Test] 139 [Test]
133 public void TestCreateFolder() 140 public void TestCreateFolder()
134 { 141 {
142 TestHelper.InMethod();
143
135 TestCommunicationsManager commsManager = new TestCommunicationsManager(); 144 TestCommunicationsManager commsManager = new TestCommunicationsManager();
136 IInventoryDataPlugin inventoryDataPlugin = commsManager.InventoryDataPlugin; 145 IInventoryDataPlugin inventoryDataPlugin = commsManager.InventoryDataPlugin;
137 146
@@ -159,6 +168,8 @@ namespace OpenSim.Framework.Communications.Tests
159 [Test] 168 [Test]
160 public void TestUpdateFolder() 169 public void TestUpdateFolder()
161 { 170 {
171 TestHelper.InMethod();
172
162 TestCommunicationsManager commsManager = new TestCommunicationsManager(); 173 TestCommunicationsManager commsManager = new TestCommunicationsManager();
163 IInventoryDataPlugin inventoryDataPlugin = commsManager.InventoryDataPlugin; 174 IInventoryDataPlugin inventoryDataPlugin = commsManager.InventoryDataPlugin;
164 175
@@ -213,6 +224,8 @@ namespace OpenSim.Framework.Communications.Tests
213 [Test] 224 [Test]
214 public void TestMoveFolder() 225 public void TestMoveFolder()
215 { 226 {
227 TestHelper.InMethod();
228
216 TestCommunicationsManager commsManager = new TestCommunicationsManager(); 229 TestCommunicationsManager commsManager = new TestCommunicationsManager();
217 IInventoryDataPlugin inventoryDataPlugin = commsManager.InventoryDataPlugin; 230 IInventoryDataPlugin inventoryDataPlugin = commsManager.InventoryDataPlugin;
218 231
@@ -244,6 +257,7 @@ namespace OpenSim.Framework.Communications.Tests
244 [Test] 257 [Test]
245 public void TestPurgeFolder() 258 public void TestPurgeFolder()
246 { 259 {
260 TestHelper.InMethod();
247 //log4net.Config.XmlConfigurator.Configure(); 261 //log4net.Config.XmlConfigurator.Configure();
248 262
249 TestCommunicationsManager commsManager = new TestCommunicationsManager(); 263 TestCommunicationsManager commsManager = new TestCommunicationsManager();
diff --git a/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs b/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs
index 965e6b4..7d75faa 100644
--- a/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs
+++ b/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs
@@ -38,6 +38,7 @@ using OpenSim.Framework.Communications.Services;
38using OpenSim.Region.Communications.Local; 38using OpenSim.Region.Communications.Local;
39using OpenSim.Tests.Common.Mock; 39using OpenSim.Tests.Common.Mock;
40using OpenSim.Client.Linden; 40using OpenSim.Client.Linden;
41using OpenSim.Tests.Common;
41 42
42namespace OpenSim.Framework.Communications.Tests 43namespace OpenSim.Framework.Communications.Tests
43{ 44{
@@ -45,6 +46,7 @@ namespace OpenSim.Framework.Communications.Tests
45 /// Test the login service. For now, most of this will be done through the LocalLoginService as LoginService 46 /// Test the login service. For now, most of this will be done through the LocalLoginService as LoginService
46 /// is abstract 47 /// is abstract
47 /// </summary> 48 /// </summary>
49
48 [TestFixture] 50 [TestFixture]
49 public class LoginServiceTests 51 public class LoginServiceTests
50 { 52 {
@@ -83,6 +85,7 @@ namespace OpenSim.Framework.Communications.Tests
83 [Test] 85 [Test]
84 public void T010_TestUnauthenticatedLogin() 86 public void T010_TestUnauthenticatedLogin()
85 { 87 {
88 TestHelper.InMethod();
86 // We want to use our own LoginService for this test, one that 89 // We want to use our own LoginService for this test, one that
87 // doesn't require authentication. 90 // doesn't require authentication.
88 LoginService loginService = new LLStandaloneLoginService((UserManagerBase)m_commsManager.UserService, "Hello folks", m_commsManager.InterServiceInventoryService, 91 LoginService loginService = new LLStandaloneLoginService((UserManagerBase)m_commsManager.UserService, "Hello folks", m_commsManager.InterServiceInventoryService,
@@ -119,6 +122,7 @@ namespace OpenSim.Framework.Communications.Tests
119 [Test] 122 [Test]
120 public void T011_TestAuthenticatedLoginSuccess() 123 public void T011_TestAuthenticatedLoginSuccess()
121 { 124 {
125 TestHelper.InMethod();
122 // TODO: Not check inventory part of response yet. 126 // TODO: Not check inventory part of response yet.
123 // TODO: Not checking all of login response thoroughly yet. 127 // TODO: Not checking all of login response thoroughly yet.
124 128
@@ -168,6 +172,7 @@ namespace OpenSim.Framework.Communications.Tests
168 [Test] 172 [Test]
169 public void T012_TestAuthenticatedLoginForBuddies() 173 public void T012_TestAuthenticatedLoginForBuddies()
170 { 174 {
175 TestHelper.InMethod();
171 // 1.1) Test for budddies! 176 // 1.1) Test for budddies!
172 m_localUserServices.AddUser("Friend","Number1","boingboing","abc@ftw.com",42,43); 177 m_localUserServices.AddUser("Friend","Number1","boingboing","abc@ftw.com",42,43);
173 m_localUserServices.AddUser("Friend","Number2","boingboing","abc@ftw.com",42,43); 178 m_localUserServices.AddUser("Friend","Number2","boingboing","abc@ftw.com",42,43);
@@ -207,6 +212,7 @@ namespace OpenSim.Framework.Communications.Tests
207 [Test] 212 [Test]
208 public void T020_TestAuthenticatedLoginBadUsername() 213 public void T020_TestAuthenticatedLoginBadUsername()
209 { 214 {
215 TestHelper.InMethod();
210 216
211 // 2) Test for negative authentication 217 // 2) Test for negative authentication
212 // 218 //
@@ -234,6 +240,8 @@ namespace OpenSim.Framework.Communications.Tests
234 [Test] 240 [Test]
235 public void T021_TestAuthenticatedLoginBadPassword() 241 public void T021_TestAuthenticatedLoginBadPassword()
236 { 242 {
243 TestHelper.InMethod();
244
237 string error_auth_message = "Could not authenticate your avatar. Please check your username and password, and check the grid if problems persist."; 245 string error_auth_message = "Could not authenticate your avatar. Please check your username and password, and check the grid if problems persist.";
238 // 2.2) Test for wrong password 246 // 2.2) Test for wrong password
239 Hashtable loginParams = new Hashtable(); 247 Hashtable loginParams = new Hashtable();
@@ -257,6 +265,8 @@ namespace OpenSim.Framework.Communications.Tests
257 [Test] 265 [Test]
258 public void T022_TestAuthenticatedLoginBadXml() 266 public void T022_TestAuthenticatedLoginBadXml()
259 { 267 {
268 TestHelper.InMethod();
269
260 string error_xml_message = "Error connecting to grid. Could not percieve credentials from login XML."; 270 string error_xml_message = "Error connecting to grid. Could not percieve credentials from login XML.";
261 // 2.3) Bad XML 271 // 2.3) Bad XML
262 Hashtable loginParams = new Hashtable(); 272 Hashtable loginParams = new Hashtable();
@@ -280,6 +290,8 @@ namespace OpenSim.Framework.Communications.Tests
280 [Test] 290 [Test]
281 public void T023_TestAuthenticatedLoginAlreadyLoggedIn() 291 public void T023_TestAuthenticatedLoginAlreadyLoggedIn()
282 { 292 {
293 TestHelper.InMethod();
294
283 //Console.WriteLine("Starting T023_TestAuthenticatedLoginAlreadyLoggedIn()"); 295 //Console.WriteLine("Starting T023_TestAuthenticatedLoginAlreadyLoggedIn()");
284 //log4net.Config.XmlConfigurator.Configure(); 296 //log4net.Config.XmlConfigurator.Configure();
285 297
diff --git a/OpenSim/Framework/Servers/Tests/GetAssetStreamHandlerTests.cs b/OpenSim/Framework/Servers/Tests/GetAssetStreamHandlerTests.cs
index 0b70cb1..702e66a 100644
--- a/OpenSim/Framework/Servers/Tests/GetAssetStreamHandlerTests.cs
+++ b/OpenSim/Framework/Servers/Tests/GetAssetStreamHandlerTests.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
3using System.Text; 3using System.Text;
4using NUnit.Framework; 4using NUnit.Framework;
5using OpenSim.Data; 5using OpenSim.Data;
6using OpenSim.Tests.Common;
6 7
7namespace OpenSim.Framework.Servers.Tests 8namespace OpenSim.Framework.Servers.Tests
8{ 9{
@@ -12,12 +13,16 @@ namespace OpenSim.Framework.Servers.Tests
12 [Test] 13 [Test]
13 public void TestConstructor() 14 public void TestConstructor()
14 { 15 {
16 TestHelper.InMethod();
17
15 GetAssetStreamHandler handler = new GetAssetStreamHandler( null ); 18 GetAssetStreamHandler handler = new GetAssetStreamHandler( null );
16 } 19 }
17 20
18 [Test] 21 [Test]
19 public void TestGetParams() 22 public void TestGetParams()
20 { 23 {
24 TestHelper.InMethod();
25
21 GetAssetStreamHandler handler = new GetAssetStreamHandler(null); 26 GetAssetStreamHandler handler = new GetAssetStreamHandler(null);
22 27
23 Assert.AreEqual("", handler.GetParam(null), "Failed on null path."); 28 Assert.AreEqual("", handler.GetParam(null), "Failed on null path.");
@@ -36,6 +41,8 @@ namespace OpenSim.Framework.Servers.Tests
36 [Test] 41 [Test]
37 public void TestSplitParams() 42 public void TestSplitParams()
38 { 43 {
44 TestHelper.InMethod();
45
39 GetAssetStreamHandler handler = new GetAssetStreamHandler(null); 46 GetAssetStreamHandler handler = new GetAssetStreamHandler(null);
40 47
41 Assert.AreEqual(new string[] { }, handler.SplitParams(null), "Failed on null."); 48 Assert.AreEqual(new string[] { }, handler.SplitParams(null), "Failed on null.");
@@ -53,6 +60,8 @@ namespace OpenSim.Framework.Servers.Tests
53 [Test] 60 [Test]
54 public void TestHandleNoParams() 61 public void TestHandleNoParams()
55 { 62 {
63 TestHelper.InMethod();
64
56 byte[] emptyResult = new byte[] {}; 65 byte[] emptyResult = new byte[] {};
57 GetAssetStreamHandler handler = new GetAssetStreamHandler(null); 66 GetAssetStreamHandler handler = new GetAssetStreamHandler(null);
58 67
@@ -63,6 +72,8 @@ namespace OpenSim.Framework.Servers.Tests
63 [Test] 72 [Test]
64 public void TestHandleMalformedGuid() 73 public void TestHandleMalformedGuid()
65 { 74 {
75 TestHelper.InMethod();
76
66 byte[] emptyResult = new byte[] {}; 77 byte[] emptyResult = new byte[] {};
67 GetAssetStreamHandler handler = new GetAssetStreamHandler(null); 78 GetAssetStreamHandler handler = new GetAssetStreamHandler(null);
68 79