summaryrefslogtreecommitdiff
path: root/tests/auto/qplaceeditorial/tst_qplaceeditorial.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qplaceeditorial/tst_qplaceeditorial.cpp')
-rw-r--r--tests/auto/qplaceeditorial/tst_qplaceeditorial.cpp53
1 files changed, 5 insertions, 48 deletions
diff --git a/tests/auto/qplaceeditorial/tst_qplaceeditorial.cpp b/tests/auto/qplaceeditorial/tst_qplaceeditorial.cpp
index 1c20bd29..934d94b0 100644
--- a/tests/auto/qplaceeditorial/tst_qplaceeditorial.cpp
+++ b/tests/auto/qplaceeditorial/tst_qplaceeditorial.cpp
@@ -37,6 +37,9 @@
QT_USE_NAMESPACE
+QT_WARNING_PUSH
+QT_WARNING_DISABLE_DEPRECATED
+
class tst_QPlaceEditorial : public QObject
{
Q_OBJECT
@@ -44,12 +47,6 @@ class tst_QPlaceEditorial : public QObject
public:
tst_QPlaceEditorial();
- //needed for QLocationTestUtils::testConversion
- QPlaceEditorial initialSubObject();
- bool checkType(const QPlaceContent &);
- void detach(QPlaceContent *);
- void setSubClassProperty(QPlaceEditorial *);
-
private Q_SLOTS:
void constructorTest();
void supplierTest();
@@ -57,48 +54,12 @@ private Q_SLOTS:
void titleTest();
void languageTest();
void operatorsTest();
- void conversionTest();
};
tst_QPlaceEditorial::tst_QPlaceEditorial()
{
}
-QPlaceEditorial tst_QPlaceEditorial::initialSubObject()
-{
- QPlaceUser user;
- user.setName("user 1");
- user.setUserId("0001");
-
- QPlaceSupplier supplier;
- supplier.setName("supplier");
- supplier.setSupplierId("1");
-
- QPlaceEditorial editorial;
- editorial.setTitle("title");
- editorial.setText("text");
- editorial.setLanguage("en");
- editorial.setUser(user);
- editorial.setSupplier(supplier);
- editorial.setAttribution("attribution");
-
- return editorial;
-}
-
-bool tst_QPlaceEditorial::checkType(const QPlaceContent &content)
-{
- return content.type() == QPlaceContent::EditorialType;
-}
-
-void tst_QPlaceEditorial::detach(QPlaceContent *content)
-{
- content->setAttribution("attribution");
-}
-
-void tst_QPlaceEditorial::setSubClassProperty(QPlaceEditorial * editorial)
-{
- editorial->setTitle("new title");
-}
void tst_QPlaceEditorial::constructorTest()
{
QPlaceEditorial testObj;
@@ -155,12 +116,8 @@ void tst_QPlaceEditorial::operatorsTest()
QVERIFY2(testObj != testObj2, "Object should be different");
}
-void tst_QPlaceEditorial::conversionTest()
-{
- QLocationTestUtils::testConversion<tst_QPlaceEditorial,
- QPlaceContent,
- QPlaceEditorial>(this);
-}
+QT_WARNING_POP
+
QTEST_APPLESS_MAIN(tst_QPlaceEditorial);
#include "tst_qplaceeditorial.moc"