OSDN Git Service

add new tests
authorikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Sat, 24 Apr 2004 01:52:05 +0000 (01:52 +0000)
committerikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Sat, 24 Apr 2004 01:52:05 +0000 (01:52 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@1001 56b19765-1e22-0410-a548-a0f45d66c51a

kita/src/libkita/tests/Makefile.am
kita/src/libkita/tests/cachetest.cpp [new file with mode: 0644]
kita/src/libkita/tests/cachetest.h [new file with mode: 0644]
kita/src/libkita/tests/test_libkita.cpp

index f4ebf57..a6170fb 100644 (file)
@@ -4,5 +4,5 @@ check_PROGRAMS = test_libkita
 
 KDE_CXXFLAGS = $(USE_EXCEPTIONS)
 test_libkita_LDADD = $(top_builddir)/kita/src/libkita/libkita.la -lkio -lqt-mt -lcppunit
-test_libkita_SOURCES = test_libkita.cpp k2ch_articlefiletest.cpp urlconverttest.cpp commenttest.cpp threadtest.cpp boardtest.cpp misctest.cpp favoritethreadstest.cpp favoriteboardstest.cpp commentlisttest.cpp
-noinst_HEADERS = k2ch_articlefiletest.h urlconverttest.h commenttest.h threadtest.h boardtest.h misctest.h favoritethreadstest.h favoriteboardstest.h commentlisttest.h
+test_libkita_SOURCES = test_libkita.cpp k2ch_articlefiletest.cpp urlconverttest.cpp commenttest.cpp threadtest.cpp boardtest.cpp misctest.cpp favoritethreadstest.cpp favoriteboardstest.cpp commentlisttest.cpp cachetest.cpp
+noinst_HEADERS = k2ch_articlefiletest.h urlconverttest.h commenttest.h threadtest.h boardtest.h misctest.h favoritethreadstest.h favoriteboardstest.h commentlisttest.h cachetest.h
diff --git a/kita/src/libkita/tests/cachetest.cpp b/kita/src/libkita/tests/cachetest.cpp
new file mode 100644 (file)
index 0000000..fe5d1a9
--- /dev/null
@@ -0,0 +1,20 @@
+/***************************************************************************
+*   Copyright (C) 2004 by Hideki Ikemoto                                  *
+*   ikemo@wakaba.jp                                                       *
+*                                                                         *
+*   This program 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.                                   *
+***************************************************************************/
+#include "cachetest.h"
+
+using namespace Kita;
+
+void CacheTest::setUp()
+{
+}
+
+void CacheTest::tearDown()
+{
+}
diff --git a/kita/src/libkita/tests/cachetest.h b/kita/src/libkita/tests/cachetest.h
new file mode 100644 (file)
index 0000000..00f9a41
--- /dev/null
@@ -0,0 +1,29 @@
+/***************************************************************************
+*   Copyright (C) 2004 by Hideki Ikemoto                                  *
+*   ikemo@wakaba.jp                                                       *
+*                                                                         *
+*   This program 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.                                   *
+***************************************************************************/
+#ifndef CACHETEST_H
+#define CACHETEST_H
+
+#include <cppunit/extensions/HelperMacros.h>
+#include "../cache.h"
+
+/**
+@author Hideki Ikemoto
+*/
+class CacheTest : public CppUnit::TestFixture
+{
+    CPPUNIT_TEST_SUITE( CacheTest );
+    CPPUNIT_TEST_SUITE_END();
+
+public:
+    void setUp();
+    void tearDown();
+};
+
+#endif
index 64eb3ec..bdb7d6f 100644 (file)
@@ -20,6 +20,7 @@
 #include "favoritethreadstest.h"
 #include "favoriteboardstest.h"
 #include "commentlisttest.h"
+#include "cachetest.h"
 
 int main( int argc, char* argv[] )
 {
@@ -34,6 +35,7 @@ int main( int argc, char* argv[] )
   runner.addTest( FavoriteThreadsTest::suite() );
   runner.addTest( FavoriteBoardsTest::suite() );
   runner.addTest( CommentListTest::suite() );
+  runner.addTest( CacheTest::suite() );
   runner.run( "" );
   return 0;
 }