Commit 09f1028d authored by Laurent Montel's avatar Laurent Montel 😁

Add autotest

parent 0c8e45c2
......@@ -18,6 +18,7 @@
*/
#include "confirmaddressinterfacetest.h"
#include "../confirmaddressinterface.h"
#include <QTest>
......@@ -32,4 +33,10 @@ ConfirmAddressInterfaceTest::~ConfirmAddressInterfaceTest()
}
void ConfirmAddressInterfaceTest::shouldHaveDefaultValue()
{
ConfirmAddressInterface interface;
QVERIFY(interface.hasConfigureDialog());
}
QTEST_MAIN(ConfirmAddressInterfaceTest)
......@@ -28,6 +28,8 @@ class ConfirmAddressInterfaceTest : public QObject
public:
explicit ConfirmAddressInterfaceTest(QObject *parent = Q_NULLPTR);
~ConfirmAddressInterfaceTest();
private Q_SLOTS:
void shouldHaveDefaultValue();
};
#endif // CONFIRMADDRESSINTERFACETEST_H
......@@ -31,9 +31,10 @@ ConfirmAddressInterface::~ConfirmAddressInterface()
}
void ConfirmAddressInterface::exec()
bool ConfirmAddressInterface::exec()
{
//TODO
return true;
}
QWidget *ConfirmAddressInterface::createConfigureWidget(QWidget *parent) const
......
......@@ -28,7 +28,7 @@ class ConfirmAddressInterface : public MessageComposer::PluginEditorCheckBeforeS
public:
explicit ConfirmAddressInterface(QObject *parent = Q_NULLPTR);
~ConfirmAddressInterface();
void exec() Q_DECL_OVERRIDE;
bool exec() Q_DECL_OVERRIDE;
bool hasConfigureDialog() const Q_DECL_OVERRIDE;
QWidget *createConfigureWidget(QWidget *parent) const Q_DECL_OVERRIDE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment