void KisFilterConfigurationTest::testRoundTrip() { KisFilterConfiguration * kfc = new KisFilterConfiguration("test", 1); QCOMPARE(kfc->version(), 1); QCOMPARE(kfc->name(), QString("test")); QString s = kfc->toLegacyXML(); delete kfc; kfc = new KisFilterConfiguration("test2", 2); kfc->fromLegacyXML(s); QCOMPARE(kfc->version(), 1); QCOMPARE(kfc->name(), QString("test")); delete kfc; }
void KisFilterConfigurationTest::testCreation() { KisFilterConfiguration * kfc = new KisFilterConfiguration("test", 1); QVERIFY2(kfc != 0, "Could not create test filter configuration"); QCOMPARE(kfc->version(), 1); QCOMPARE(kfc->name(), QString("test")); delete kfc; }