ACF $AcfVersion:0$
CNameParamCompTest.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/INameParam.h>
12#include <GeneratedFiles/NameParamComponentTest/CNameParamComponentTest.h>
13
14class CNameParamCompTest: public QObject
15{
16 Q_OBJECT
17private slots:
18 void initTestCase();
19
20 // Tests for name parameter with default name
21 void testCreationWithDefault();
22 void testGetDefaultName();
23 void testSetName();
24 void testSerializationWithDefault();
25 void testCopyWithDefault();
26 void testCloneWithDefault();
27
28 // Tests for name parameter without default
29 void testCreationNoDefault();
30 void testEmptyName();
31
32 // Tests for fixed name parameter
33 void testFixedNameCreation();
34 void testFixedNameBehavior();
35
36 void cleanupTestCase();
37
38private:
39 std::shared_ptr<CNameParamComponentTest> m_testInstancePtr;
40
41 iprm::INameParam* m_nameWithDefaultPtr = nullptr;
42 iprm::INameParam* m_nameNoDefaultPtr = nullptr;
43 iprm::INameParam* m_nameFixedPtr = nullptr;
44};
Interface for an object containing a name.
Definition INameParam.h:67