2 #include <QtTest/QtTest>
3 #include <QXmlStreamWriter>
5 #include <dashserver/xdbms/manager.h>
6 #include <dashserver/xdbms/table.h>
7 #include <dashserver/xdbms/object.h>
11 * @brief Prueba unitaria de la clase XDBMS::Manager.
13 class TestObject
: public QObject
18 void cleanupTestCase();
24 * Se comprueba que el motor de base de datos se inicie de manera apropiada.
26 void TestObject::initTestCase()
30 void TestObject::cleanupTestCase()
34 void TestObject::addObject()
36 XDBMS::Object
obj1("obj1");
37 XDBMS::Object
obj2("obj2");
38 obj2
.add("prop1", "val1");
44 QXmlStreamWriter
writer(&xml
);
53 QXmlStreamWriter
writer(&xml2
);
61 QTEST_MAIN(TestObject
);
62 #include "test_object.moc"