add states call
This commit is contained in:
parent
ae507acc70
commit
ec2abdcd98
@ -39,11 +39,20 @@ class TestStates: public GuhTestBase
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
void getStateTypes();
|
||||||
|
|
||||||
void getStateValue_data();
|
void getStateValue_data();
|
||||||
void getStateValue();
|
void getStateValue();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
void TestStates::getStateTypes()
|
||||||
|
{
|
||||||
|
QVariantMap params;
|
||||||
|
params.insert("deviceId", m_mockDeviceId);
|
||||||
|
QVariant response = injectAndWait("Devices.GetStateValues", params);
|
||||||
|
verifyDeviceError(response);
|
||||||
|
}
|
||||||
|
|
||||||
void TestStates::getStateValue_data()
|
void TestStates::getStateValue_data()
|
||||||
{
|
{
|
||||||
QList<Device*> devices = GuhCore::instance()->findConfiguredDevices(mockDeviceClassId);
|
QList<Device*> devices = GuhCore::instance()->findConfiguredDevices(mockDeviceClassId);
|
||||||
|
|||||||
Reference in New Issue
Block a user