Kaydet (Commit) e6bf3f2d authored tarafından Stephan Bergmann's avatar Stephan Bergmann

test: Use appropriate OUString functions on string constants

Change-Id: Id4327a479fd61b3793a2b8b250203edcfe3e6754
üst b1fab4ab
......@@ -40,14 +40,14 @@ void XSheetAnnotation::testGetAuthor()
uno::Reference< sheet::XSheetAnnotation > aSheetAnnotation (init(), UNO_QUERY_THROW);
OUString aAuthor = aSheetAnnotation->getAuthor();
CPPUNIT_ASSERT_MESSAGE("Wrong author", aAuthor.equals("LG"));
CPPUNIT_ASSERT_MESSAGE("Wrong author", aAuthor == "LG");
}
void XSheetAnnotation::testGetDate()
{
uno::Reference< sheet::XSheetAnnotation > aSheetAnnotation (init(), UNO_QUERY_THROW);
OUString aDate = aSheetAnnotation->getDate();
CPPUNIT_ASSERT_MESSAGE("Wrong date", aDate.equals("01/17/2013"));
CPPUNIT_ASSERT_MESSAGE("Wrong date", aDate == "01/17/2013");
}
void XSheetAnnotation::testGetIsVisible()
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment