ACF $AcfVersion:0$
CIdParamCompTest.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// Qt includes
6#include <QtCore/QObject>
7#include <QtTest/QtTest>
8
9// ACF includes
10#include <iprm/IIdParam.h>
12#include <GeneratedFiles/IdParamComponentTest/CIdParamComponentTest.h>
13
14class CIdParamCompTest: public QObject
15{
16 Q_OBJECT
17private slots:
18 void initTestCase();
19
20 // Tests for ID parameter with default ID
21 void testCreationWithDefault();
22 void testGetDefaultId();
23 void testSetId();
24 void testBinaryId();
25 void testSerializationWithDefault();
26 void testCopyWithDefault();
27 void testCloneWithDefault();
28
29 // Tests for ID parameter without default
30 void testCreationNoDefault();
31 void testEmptyId();
32 void testSerializationNoDefault();
33
34 void cleanupTestCase();
35
36private:
37 std::shared_ptr<CIdParamComponentTest> m_testInstancePtr;
38
39 iprm::IIdParam* m_idWithDefaultPtr = nullptr;
40 iprm::IIdParam* m_idNoDefaultPtr = nullptr;
41};
Interface for an ID parameter.
Definition IIdParam.h:55