testaccount.cpp 694 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * This software is in the public domain, furnished "as is", without technical
  3. * support, and with no warranty, express or implied, as to its usefulness for
  4. * any purpose.
  5. *
  6. */
  7. #include <qglobal.h>
  8. #include <QTemporaryDir>
  9. #include <QtTest>
  10. #include "common/utility.h"
  11. #include "folderman.h"
  12. #include "account.h"
  13. #include "accountstate.h"
  14. #include "configfile.h"
  15. #include "testhelper.h"
  16. using namespace OCC;
  17. class TestAccount: public QObject
  18. {
  19. Q_OBJECT
  20. private slots:
  21. void testAccountDavPath_unitialized_noCrash()
  22. {
  23. AccountPtr account = Account::create();
  24. account->davPath();
  25. }
  26. };
  27. QTEST_APPLESS_MAIN(TestAccount)
  28. #include "testaccount.moc"