Revision 4cde82a2
Von Christian Ehringfeld vor mehr als 7 Jahren hinzugefügt
tests/em/tst_querybuilder.cpp | ||
---|---|---|
QCOMPARE(p->getNickName(), QString("Lotta"));
|
||
QCOMPARE(p->getGroups().size(), 2);
|
||
QVERIFY(p->getGroups().first());
|
||
QVERIFY(p->getGroups().first()->getPersons().last());
|
||
QCOMPARE(p->getGroups().first()->getPersons().size(),1);
|
||
QCOMPARE(p->getGroups().first()->getPersons().last()->getFamilyName(), QString("Sey."));
|
||
}
|
||
|
||
... | ... | |
QList<QSharedPointer<Group>> groupList = e->find<Group>(q, false, false);
|
||
QCOMPARE(groupList.size(), 2);
|
||
QCOMPARE(groupList.at(0)->getName(), QString("Group Health"));
|
||
//should be with cache 1 and without cache 0
|
||
QCOMPARE(groupList.at(0)->getPersons().size(), 1);
|
||
}
|
||
|
Auch abrufbar als: Unified diff
fixes