2021-07-28 17:43:29 +03:00
|
|
|
/*
|
|
|
|
* This software is in the public domain, furnished "as is", without technical
|
|
|
|
* support, and with no warranty, express or implied, as to its usefulness for
|
|
|
|
* any purpose.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <qglobal.h>
|
|
|
|
#include <QTemporaryDir>
|
|
|
|
#include <QtTest>
|
|
|
|
|
|
|
|
#include "common/utility.h"
|
|
|
|
#include "folderman.h"
|
|
|
|
#include "account.h"
|
|
|
|
#include "accountstate.h"
|
|
|
|
#include "configfile.h"
|
|
|
|
#include "testhelper.h"
|
2024-04-30 11:04:32 +03:00
|
|
|
#include "logger.h"
|
2021-07-28 17:43:29 +03:00
|
|
|
|
|
|
|
using namespace OCC;
|
|
|
|
|
|
|
|
class TestAccount: public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
private slots:
|
2024-04-30 11:04:32 +03:00
|
|
|
void initTestCase()
|
|
|
|
{
|
|
|
|
OCC::Logger::instance()->setLogFlush(true);
|
|
|
|
OCC::Logger::instance()->setLogDebug(true);
|
|
|
|
|
|
|
|
QStandardPaths::setTestModeEnabled(true);
|
|
|
|
}
|
|
|
|
|
2021-07-28 18:00:07 +03:00
|
|
|
void testAccountDavPath_unitialized_noCrash()
|
2021-07-28 17:43:29 +03:00
|
|
|
{
|
|
|
|
AccountPtr account = Account::create();
|
2022-09-30 20:19:03 +03:00
|
|
|
[[maybe_unused]] const auto davPath = account->davPath();
|
2021-07-28 17:43:29 +03:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
QTEST_APPLESS_MAIN(TestAccount)
|
|
|
|
#include "testaccount.moc"
|