#include <QtQuickTest>
#include <QQmlEngine>
#include <QQmlContext>
#include <QDebug>
#include "core/modelmanager.h"
#include "logger.h"

class Setup : public QObject
{
    Q_OBJECT

public:
    Setup() {}

public slots:
    void qmlEngineAvailable(QQmlEngine *engine)
    {
//        qDebug() << "qmlEngineAvailable";
//        ModelManager *mgr = new ModelManager;
//        common::QmlLogger *loger = new common::QmlLogger;
//        engine->rootContext()->setContextProperty("modelManager", mgr);
//        engine->rootContext()->setContextProperty("qmlLogger", loger);
//        qInstallMessageHandler(common::Logger::outputMessage);
    }
};

QUICK_TEST_MAIN_WITH_SETUP(modelmanagertest, Setup)

#include "tst_modelmanager.moc"
