m_share1 = Board::getByURL( "http://pc.2ch.net/linux/", "Linux" );
m_share2 = Board::getByURL( "http://pc.2ch.net/linux/", "Linux" );
+
+ m_null = Board::getByURL( QString::null );
}
void BoardTest::tearDown()
CPPUNIT_ASSERT_EQUAL( QString( "linux" ), m_normal->id() );
CPPUNIT_ASSERT_EQUAL( QString( "linux" ), m_share1->id() );
CPPUNIT_ASSERT_EQUAL( QString( "linux" ), m_share2->id() );
+ CPPUNIT_ASSERT_EQUAL( QString::null, m_null->id() );
}
void BoardTest::testName()
CPPUNIT_ASSERT_EQUAL( QString( "Linux" ), m_normal->name() );
CPPUNIT_ASSERT_EQUAL( QString( "Linux" ), m_share1->name() );
CPPUNIT_ASSERT_EQUAL( QString( "Linux" ), m_share2->name() );
+ CPPUNIT_ASSERT_EQUAL( QString::null, m_null->name() );
}
void BoardTest::testSubjectTxtURL()
m_share1->subjectTxtURL().url() );
CPPUNIT_ASSERT_EQUAL( QString( "http://pc.2ch.net/linux/subject.txt" ),
m_share2->subjectTxtURL().url() );
+ CPPUNIT_ASSERT_EQUAL( QString::null, m_null->subjectTxtURL().url() );
}
void BoardTest::testURL()
m_share1->url().url() );
CPPUNIT_ASSERT_EQUAL( QString( "http://pc.2ch.net/linux/"),
m_share2->url().url() );
+ CPPUNIT_ASSERT_EQUAL( QString::null, m_null->url().url() );
}