aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-01-05 18:00:53 +0000
committerJustin Clarke Casey2009-01-05 18:00:53 +0000
commit0b07c9762b4c70b6d234b70fb9e591c770dc1bf1 (patch)
tree95435e1c5c8aece7224666cae400978b74fae931 /OpenSim/Framework/Communications/Tests/LoginServiceTests.cs
parent* Extend stub to test the successful login of a user on the local login service (diff)
downloadopensim-SC-0b07c9762b4c70b6d234b70fb9e591c770dc1bf1.zip
opensim-SC-0b07c9762b4c70b6d234b70fb9e591c770dc1bf1.tar.gz
opensim-SC-0b07c9762b4c70b6d234b70fb9e591c770dc1bf1.tar.bz2
opensim-SC-0b07c9762b4c70b6d234b70fb9e591c770dc1bf1.tar.xz
* Simplify test code by always setting up mock 'in memory' user and inventory data plugins for every TestCommunicationsManager
* imo the gain in simplcity of test code outweighs the very small cost of setting up some stuff that some tests will never use
Diffstat (limited to 'OpenSim/Framework/Communications/Tests/LoginServiceTests.cs')
-rw-r--r--OpenSim/Framework/Communications/Tests/LoginServiceTests.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs b/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs
index 51adba1..1e1fa73 100644
--- a/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs
+++ b/OpenSim/Framework/Communications/Tests/LoginServiceTests.cs
@@ -50,7 +50,7 @@ namespace OpenSim.Framework.Communications.Tests
50 [Test] 50 [Test]
51 public void TestNormalLoginResponse() 51 public void TestNormalLoginResponse()
52 { 52 {
53 log4net.Config.XmlConfigurator.Configure(); 53 //log4net.Config.XmlConfigurator.Configure();
54 54
55 string firstName = "Timmy"; 55 string firstName = "Timmy";
56 string lastName = "Mallet"; 56 string lastName = "Mallet";
@@ -58,9 +58,6 @@ namespace OpenSim.Framework.Communications.Tests
58 CommunicationsManager commsManager 58 CommunicationsManager commsManager
59 = new TestCommunicationsManager(new OpenSim.Framework.NetworkServersInfo(42, 43)); 59 = new TestCommunicationsManager(new OpenSim.Framework.NetworkServersInfo(42, 43));
60 60
61 ((LocalUserServices)commsManager.UserService).AddPlugin(new TestUserDataPlugin());
62 ((LocalInventoryService)commsManager.InventoryService).AddPlugin(new TestInventoryDataPlugin());
63
64 commsManager.GridService.RegisterRegion( 61 commsManager.GridService.RegisterRegion(
65 new RegionInfo(42, 43, new IPEndPoint(IPAddress.Loopback, 9000), "localhost")); 62 new RegionInfo(42, 43, new IPEndPoint(IPAddress.Loopback, 9000), "localhost"));
66 commsManager.GridService.RegionLoginsEnabled = true; 63 commsManager.GridService.RegionLoginsEnabled = true;