void BoardTest::setUp()
{
- m_normal = new Board( "http://pc.2ch.net/linux/", "Linux" );
-
Board::setName( "http://pc.2ch.net/linux/", "Linux" );
m_share1 = Board::getByURL( "http://pc.2ch.net/linux/" );
void BoardTest::testID()
{
- CPPUNIT_ASSERT_EQUAL( QString( "linux" ), m_normal->id() );
CPPUNIT_ASSERT_EQUAL( QString( "linux" ), m_share1->id() );
CPPUNIT_ASSERT_EQUAL( QString( "unix" ), m_share2->id() );
CPPUNIT_ASSERT_EQUAL( QString( "unix" ), m_share3->id() );
void BoardTest::testName()
{
- CPPUNIT_ASSERT_EQUAL( QString( "Linux" ), m_normal->name() );
CPPUNIT_ASSERT_EQUAL( QString( "Linux" ), m_share1->name() );
CPPUNIT_ASSERT_EQUAL( QString( "U**x" ), m_share2->name() );
CPPUNIT_ASSERT_EQUAL( QString( "Unix" ), m_share3->name() );
void BoardTest::testSubjectTxtURL()
{
CPPUNIT_ASSERT_EQUAL( QString( "http://pc.2ch.net/linux/subject.txt" ),
- m_normal->subjectTxtURL().url() );
- CPPUNIT_ASSERT_EQUAL( QString( "http://pc.2ch.net/linux/subject.txt" ),
m_share1->subjectTxtURL().url() );
CPPUNIT_ASSERT_EQUAL( QString( "http://pc.2ch.net/unix/subject.txt" ),
m_share2->subjectTxtURL().url() );
void BoardTest::testURL()
{
CPPUNIT_ASSERT_EQUAL( QString( "http://pc.2ch.net/linux/"),
- m_normal->url() );
- CPPUNIT_ASSERT_EQUAL( QString( "http://pc.2ch.net/linux/"),
m_share1->url() );
CPPUNIT_ASSERT_EQUAL( QString( "http://pc.2ch.net/unix/"),
m_share2->url() );
Kita::Board::setName( "http://pc.2ch.net/linux/", "Linux" );
m_normal = new Thread(
"http://pc.2ch.net/linux/dat/1069738960.dat",
- "Kita - 2ch client for KDE",
- 0 );
+ "Kita - 2ch client for KDE" );
m_noboard = new Thread( "http://pc.2ch.net/linux/dat/1069738960.dat",
- "Kita - 2ch client for KDE",
- 0 );
+ "Kita - 2ch client for KDE" );
m_fromxml = Thread::fromXml( "<thread xmlns=\"http://kita.sourceforge.jp/ns/thread\">\n"
"<daturl>http://pc.2ch.net/linux/dat/1022744633.dat</daturl>\n"