Move QTEST_GUILESS_MAIN statements before test cases.

This commit is contained in:
Florian Geyer 2014-05-16 12:32:52 +02:00
parent ea3375490c
commit 77af79498c
21 changed files with 40 additions and 41 deletions

View file

@ -23,6 +23,8 @@
#include "core/Entry.h"
#include "crypto/Crypto.h"
QTEST_GUILESS_MAIN(TestEntry)
void TestEntry::initTestCase()
{
Crypto::init();
@ -121,5 +123,3 @@ void TestEntry::testClone()
QCOMPARE(entryCloneHistory->historyItems().first()->title(), QString("Original Title"));
QCOMPARE(entryCloneHistory->timeInfo().creationTime(), entryOrg->timeInfo().creationTime());
}
QTEST_GUILESS_MAIN(TestEntry)