[ictk-cvs] ictk/test/ictk/boardgame/chess/net/ics/fics/event FICSSeekRemoveParserTest.java,NONE,1.1
chess library in java, PGN, FEN, ICS
Brought to you by:
jvarsoke
|
From: <jva...@us...> - 2003-08-25 01:29:08
|
Update of /cvsroot/ictk/ictk/test/ictk/boardgame/chess/net/ics/fics/event In directory sc8-pr-cvs1:/tmp/cvs-serv9226/test/ictk/boardgame/chess/net/ics/fics/event Added Files: FICSSeekRemoveParserTest.java Log Message: Added ICSSeekRemoveEvent --- NEW FILE: FICSSeekRemoveParserTest.java --- /* * ICTK - Internet Chess ToolKit * More information is available at http://ictk.sourceforge.net * Copyright (C) 2002 J. Varsoke <jva...@gh...> * All rights reserved. * * $Id: FICSSeekRemoveParserTest.java,v 1.1 2003/08/25 01:29:01 jvarsoke Exp $ * * This file is part of ICTK. * * ICTK is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * ICTK is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with ICTK; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package ictk.boardgame.chess.net.ics.fics.event; import ictk.boardgame.chess.net.ics.event.*; import ictk.boardgame.chess.net.ics.*; import ictk.util.Log; import java.util.regex.*; import java.io.IOException; import junit.framework.*; public class FICSSeekRemoveParserTest extends ParserTest { ICSSeekRemoveEvent evt; public FICSSeekRemoveParserTest () throws IOException { super("ictk.boardgame.chess.net.ics.fics.event"); } public void setUp () { parser = FICSSeekRemoveParser.getInstance(); //debug = true; } public void tearDown () { evt = null; parser = null; } ////////////////////////////////////////////////////////////////////// public void testMessage0 () { //debug = true; if (debug) { Log.addMask(ICSEventParser.DEBUG); parser.setDebug(true); } try { evt = (ICSSeekRemoveEvent) parser.createICSEvent(mesg[0]); assertTrue(evt != null); //begin test //end test } finally { Log.removeMask(ICSEventParser.DEBUG); debug = false; } } //inherited/////////////////////////////////////////////////////////// public void testParseAll () { //debug=true; if (debug) { Log.addMask(ICSEventParser.DEBUG); parser.setDebug(true); } try { super.testParseAll(); } finally { Log.removeMask(ICSEventParser.DEBUG); debug = false; } } ////////////////////////////////////////////////////////////////////// public void testNative () { //debug=true; if (debug) { Log.addMask(ICSEventParser.DEBUG); parser.setDebug(true); } try { super.testNative(); } finally { Log.removeMask(ICSEventParser.DEBUG); debug = false; } } } |