[mud4j-commit] SF.net SVN: mud4j: [105] trunk/mud4j-core/src/test/unit/net/mud4j/server/ GameServer
Status: Pre-Alpha
Brought to you by:
mpurland
From: <mpu...@us...> - 2007-01-14 00:36:55
|
Revision: 105 http://mud4j.svn.sourceforge.net/mud4j/?rev=105&view=rev Author: mpurland Date: 2007-01-13 16:31:09 -0800 (Sat, 13 Jan 2007) Log Message: ----------- Remove test for game server as it no longer exists. Removed Paths: ------------- trunk/mud4j-core/src/test/unit/net/mud4j/server/GameServerTest.java Deleted: trunk/mud4j-core/src/test/unit/net/mud4j/server/GameServerTest.java =================================================================== --- trunk/mud4j-core/src/test/unit/net/mud4j/server/GameServerTest.java 2007-01-14 00:30:33 UTC (rev 104) +++ trunk/mud4j-core/src/test/unit/net/mud4j/server/GameServerTest.java 2007-01-14 00:31:09 UTC (rev 105) @@ -1,113 +0,0 @@ -/** - * Copyright 2006 Matthew Purland (m.p...@gm...) - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package net.mud4j.server; - -import org.apache.log4j.Logger; - -import net.mud4j.test.MudTestCase; -import net.sf.jdaemon.connection.TelnetConnection; -import net.sf.jdaemon.daemon.Daemon; -import net.sf.mud4j.server.DaemonGameServer; - -/** - * Base unit test for DaemonGameServer. - * - * @author Matthew Purland - */ -public class GameServerTest extends MudTestCase { - public void testNone() { - - } - -// protected static Logger logger = Logger.getLogger(GameServerTest.class); -// -// DaemonGameServer gameServer; -// -// public void setUp() throws Exception { -// gameServer = new DaemonGameServer(); -// } -// -// public void tearDown() throws Exception { -// Daemon daemon = gameServer.getDaemon(); -// if (daemon != null && daemon.isStarted()) { -// gameServer.stop(); -// } -// } -// -// /** -// * TODO Write DaemonGameServer tests for connecting to the server and testing options and logging in from telnet -// * -// */ -// public void testGameServer() throws Exception { -// logger.debug("Testing default port for DaemonGameServer"); -// gameServer = new DaemonGameServer(DaemonGameServer.DEFAULT_PORT); -// gameServer.start(); -// } -// -// /** -// * Test game server with no port given -// */ -// public void testGameServerNoPort() throws Exception { -// logger.debug("Testing game server with no port given"); -// gameServer = new DaemonGameServer(); -// gameServer.start(); -// } -// -// /** -// * Test game server daemon -// */ -// public void testGameServerDaemon() throws Exception { -// logger.debug("Testing game server daemon"); -// -// gameServer = new DaemonGameServer(); -// gameServer.start(); -// Daemon daemon = gameServer.getDaemon(); -// -// assertNotNull("Daemon not handled correctly.", daemon); -// } -// -// /** -// * Test trying to stop a game server that has been stopped already. -// */ -// public void testGameServerStop() throws Exception { -// logger.debug("Testing game server stop"); -// gameServer = new DaemonGameServer(); -// -// gameServer.start(); -// -// //Thread.sleep(2000); -// -// Daemon daemon = gameServer.getDaemon(); -// -// -// assertTrue("Daemon for game server start status is not correct.", daemon.isStarted()); -// -//// // Wait until daemon is started -//// while (!daemon.isStarted()) -//// ; -// -// gameServer.stop(); -// -// try { -// gameServer.stop(); -// fail("Should have thrown an exception when stopped twice."); -// } -// catch (Exception ex) { -// assertEquals("Message should equal that of a stopped status.",ex.getMessage(), "Cannot stop an already stopped daemon."); -// } -// } -} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |