1 #include <QtTest/QtTest>
2 #include "ErrorMapper.h"
3 #include "TestErrorMapper.h"
5 void TestErrorMapper::initTestCase()
9 void TestErrorMapper::cleanupTestCase()
13 void TestErrorMapper::testCodeToString()
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 );