Projekt

Allgemein

Profil

Herunterladen als
Herunterladen (1,08 KB) Statistiken
| Zweig: | Revision:
cca98131 Christian Ehringfeld
#ifndef TST_QUERYBUILDER
#define TST_QUERYBUILDER
#include <QString>
#include <QtTest>
#include "entitymanager.h"
#include "databasemigration.h"
#include "../models.h"

class QuerybuilderTest : public QObject {
Q_OBJECT

private Q_SLOTS:
void initTestCase();
void cleanupTestCase();
void testFindByAttributes();
64dc4a24 Christian Ehringfeld
void testFindByAttributesManyToManyResolve();
void testFindByAttributesOneToManyResolve();
void testFindByAttributesOneToOneResolve();
void testFindByAttributesManyToOneResolve();
95d9cf46 Christian Ehringfeld
void testFindByAttributesSuperClassAttribute();
void testQueryBuilderCount();
cca98131 Christian Ehringfeld
void testQueryBuilder();
01fe6db3 Christian Ehringfeld
void testQueryBuilderEntityInheritance();
void testQueryBuilderEntityInheritanceWithoutJoin();
void testQueryBuilderArbitraryOperator();
void testQueryBuilderJoins();
3b82c8c0 Christian Ehringfeld
void testQueryBuilderSingleAttributeOr();
01fe6db3 Christian Ehringfeld
void testQueryBuilderManyToOneRelationAttribute();
void testQueryBuilderManyToManyRelationAttribute();
f8748139 Christian Ehringfeld
void testEnum();
373a84e2 Christian Ehringfeld
void testRefresh();
01fe6db3 Christian Ehringfeld
cca98131 Christian Ehringfeld
private:
CuteEntityManager::EntityManager *e;
};
#endif // TST_QUERYBUILDER