qtmeetings sources to Maemo garage
[qtmeetings] / tests / BusinessLogic / Utils / ErrorMapper / TestErrorMapper.cpp
1 #include <QtTest/QtTest>
2 #include "ErrorMapper.h"
3 #include "TestErrorMapper.h"
4
5 void TestErrorMapper::initTestCase()
6 {
7 }
8
9 void TestErrorMapper::cleanupTestCase()
10 {
11 }
12
13 void TestErrorMapper::testCodeToString()
14 {
15         QCOMPARE( QString::compare( ErrorMapper::codeToString( 0 ), QString( "Not really an error. Everything went just fine." ) ), 0 );
16         QCOMPARE( QString::compare( ErrorMapper::codeToString( 666 ), QString( "For unit test purposes." ) ), 0 );
17         QCOMPARE( QString::compare( ErrorMapper::codeToString( -1 ), QString( "" ) ), 0 );
18 }