00001 /***************************** License ********************************** 00002 00003 Copyright (C) 2008 by Communicative Machines 00004 http://www.cmlabs.com All rights reserved. 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Lesser General Public 00008 License as published by the Free Software Foundation; either 00009 version 2.1 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Lesser General Public License for more details. 00015 00016 You should have received a copy of the GNU Lesser General Public 00017 License along with this library; if not, write to the Free Software 00018 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 00020 ************************************************************************/ 00021 00022 00023 // CoreTest.cpp : Defines the entry point for the console application. 00024 // 00025 00026 #if !defined(_CORETEST_H_) 00027 #define _CORETEST_H_ 00028 00029 #include "standard.h" 00030 00031 #include "Queue.h" 00032 #include "ObjectRequestQueue.h" 00033 #include "XMLParser.h" 00034 #include "Collections.h" 00035 #include "Parameter.h" 00036 #include "JSocket.h" 00037 #include "TimerManager.h" 00038 #include "Network.h" 00039 #include "DynamicLoader.h" 00040 #include "JFile.h" 00041 #include "MediaServer.h" 00042 #include "MediaConnection.h" 00043 #include "OSCommand.h" 00044 #include "CommunicationRecorder.h" 00045 00046 namespace cmlabs { 00047 00048 JString runTest(int c); 00049 JString testText(Object* obj); 00050 JString testTextThread(JThread* obj); 00051 JString testTextNetwork(Network* network, int testport); 00052 JString testTextSockets(SocketTester* obj); 00053 JString testTextMediaServer(MediaServer* obj, int testport); 00054 00055 void runTests(int cnsport = 2000, JString testlib = ""); 00056 void test(Object* obj); 00057 void runXMLParseTest(); 00058 void testSockets(SocketTester* obj); 00059 void testNetwork(Network* network, int testport); 00060 void testJThread(JThread* obj); 00061 bool runSystemTest(int testport = 2000); 00062 void testMediaServer(MediaServer* obj, int testport); 00063 void testCommunicationRecorder(); 00064 } // namespace cmlabs 00065 00066 #endif // _CORETEST_H_ 00067