ACF $AcfVersion:0$
CTextParamCompTest.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/ITextParam.h>
12#include <GeneratedFiles/TextParamComponentTest/CTextParamComponentTest.h>
13
14class CTextParamCompTest: public QObject
15{
16 Q_OBJECT
17private slots:
18 void initTestCase();
19
20 // Tests for text parameter with default text
21 void testCreationWithDefault();
22 void testGetDefaultText();
23 void testSetText();
24 void testSerializationWithDefault();
25 void testCopyWithDefault();
26 void testCloneWithDefault();
27
28 // Tests for text parameter without default
29 void testCreationNoDefault();
30 void testEmptyText();
31 void testSerializationNoDefault();
32
33 // Tests for read-only text parameter
34 void testReadOnlyCreation();
35 void testReadOnlyBehavior();
36 void testReadOnlySerialization();
37
38 // Tests for serialization control
39 void testNoSerializationParam();
40
41 void cleanupTestCase();
42
43private:
44 std::shared_ptr<CTextParamComponentTest> m_testInstancePtr;
45
46 iprm::ITextParam* m_textWithDefaultPtr = nullptr;
47 iprm::ITextParam* m_textNoDefaultPtr = nullptr;
48 iprm::ITextParam* m_textReadOnlyPtr = nullptr;
49 iprm::ITextParam* m_textNoSerializePtr = nullptr;
50};
Interface for an object containing simple text.
Definition ITextParam.h:76