From 093adb2113d748f28554393cc8a6fe53502126dc Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Thu, 15 Jan 2009 21:27:55 +0000
Subject: * Add new unit test for simple teleport in a standalone. * Does not
yet check results.
---
OpenSim/Tests/Common/Mock/TestClient.cs | 11 +++++++++++
OpenSim/Tests/Common/Mock/TestCommunicationsManager.cs | 3 ++-
2 files changed, 13 insertions(+), 1 deletion(-)
(limited to 'OpenSim/Tests')
diff --git a/OpenSim/Tests/Common/Mock/TestClient.cs b/OpenSim/Tests/Common/Mock/TestClient.cs
index 428f599..5b3b27b 100644
--- a/OpenSim/Tests/Common/Mock/TestClient.cs
+++ b/OpenSim/Tests/Common/Mock/TestClient.cs
@@ -365,6 +365,17 @@ namespace OpenSim.Tests.Common.Mock
m_firstName = agentData.firstname;
m_lastName = agentData.lastname;
}
+
+ ///
+ /// Attempt a teleport to the given region.
+ ///
+ ///
+ ///
+ ///
+ public void Teleport(ulong regionHandle, Vector3 position, Vector3 lookAt)
+ {
+ OnTeleportLocationRequest(this, regionHandle, position, lookAt, 16);
+ }
public virtual void ActivateGesture(UUID assetId, UUID gestureId)
{
diff --git a/OpenSim/Tests/Common/Mock/TestCommunicationsManager.cs b/OpenSim/Tests/Common/Mock/TestCommunicationsManager.cs
index 738bc15..1663ac1 100644
--- a/OpenSim/Tests/Common/Mock/TestCommunicationsManager.cs
+++ b/OpenSim/Tests/Common/Mock/TestCommunicationsManager.cs
@@ -69,7 +69,8 @@ namespace OpenSim.Tests.Common.Mock
m_userAdminService = lus;
LocalBackEndServices gs = new LocalBackEndServices();
- m_gridService = gs;
+ m_gridService = gs;
+ m_interRegion = gs;
}
}
}
--
cgit v1.1