fix tests

This commit is contained in:
Simon Stürz 2016-05-17 10:15:30 +02:00 committed by Michael Zanetti
parent 9c6371d3f7
commit 5904477af9
3 changed files with 3 additions and 5 deletions

View File

@ -21,7 +21,6 @@
The \tt plugininfo.h has to be included in the main plugin \tt cpp file (\tt{deviceplugin<\b pluginName>.cpp}). The \tt extern-plugininfo.h can be included in other classes/files of the plugin to get the extern definitions of the ID's and the logging category.
\section1 Basic structure
The name convention fot the plugin json file is:

View File

@ -317,7 +317,6 @@ HttpReply *DevicesResource::removeDevice(Device *device, const QVariantMap &para
return createDeviceErrorReply(HttpReply::Ok, status.first);
return createDeviceErrorReply(HttpReply::BadRequest, status.first);
}
HttpReply *DevicesResource::executeAction(Device *device, const ActionTypeId &actionTypeId, const QByteArray &payload) const

View File

@ -657,11 +657,11 @@ void TestDevices::getEventTypes()
params.insert("deviceClassId", deviceClassId);
QVariant response = injectAndWait("Devices.GetEventTypes", params);
qDebug() << response;
QVariantList eventTypes = response.toMap().value("params").toMap().value("eventTypes").toList();
QCOMPARE(eventTypes.count(), resultCount);
if (resultCount > 0) {
QCOMPARE(eventTypes.first().toMap().value("id").toString(), mockEvent1Id.toString());
}
}
void TestDevices::getStateTypes_data()