umbrello 2.32.3 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

testpackage.h
Go to the documentation of this file.
1 /*
2 Copyright 2019 Ralf Habacker <ralf.habacker@freenet.de>
3
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License as
6 published by the Free Software Foundation; either version 2 of
7 the License or (at your option) version 3 or any later version
8 accepted by the membership of KDE e.V. (or its successor approved
9 by the membership of KDE e.V.), which shall act as a proxy
10 defined in Section 14 of version 3 of the license.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #ifndef TESTPACKAGE_H
22 #define TESTPACKAGE_H
23
24 #include "testbase.h"
25
26 class TestPackage : public TestBase
27 {
28 Q_OBJECT
29 protected:
30 SetLoading *_sl;
31 protected slots:
32 void initTestCase()
33 {
34 TestBase::initTestCase();
35 _sl = new SetLoading;
36 }
37
38 void cleanupTestCase()
39 {
40 delete _sl;
41 }
42
43 private slots:
44 void test_appendClassesAndInterfaces();
45 void test_saveAndLoad();
46 };
47
48 #endif // TESTASSOCIATION_H
TestUML
Definition: testbase.h:135
UMLPackage::containedObjects
UMLObjectList containedObjects(bool includeInactive=false)
Definition: package.cpp:266
TestPackage::test_appendClassesAndInterfaces
void test_appendClassesAndInterfaces()
Definition: testpackage.cpp:27
stereotype.h
TestPackage
Definition: testpackage.h:27
TestPackage::_sl
SetLoading * _sl
Definition: testpackage.h:30
TestPackage::cleanupTestCase
void cleanupTestCase()
Definition: testpackage.h:38
TestUMLPackage
TestUML< UMLPackage, const QString & > TestUMLPackage
Definition: testpackage.cpp:42
TestUML::testLoad1
bool testLoad1(QDomDocument &qDoc)
Definition: testbase.h:157
UMLClassifierList
QList< UMLClassifier * > UMLClassifierList
Definition: umlclassifierlist.h:17
testbase.h
testpackage.h
TestPackage::initTestCase
void initTestCase()
Definition: testpackage.h:32
TestUML::testSave1
QDomDocument testSave1()
Definition: testbase.h:147
UMLPackage::appendClassesAndInterfaces
void appendClassesAndInterfaces(UMLClassifierList &classifiers, bool includeNested=true)
Definition: package.cpp:398
classifier.h
TestPackage::test_saveAndLoad
void test_saveAndLoad()
Definition: testpackage.cpp:44
UMLObject::setUMLPackage
bool setUMLPackage(UMLPackage *pPkg)
Definition: umlobject.cpp:616
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
SetLoading
Definition: testbase.h:118
UMLPackage::addObject
bool addObject(UMLObject *pObject, bool interactOnConflict=true)
Definition: package.cpp:135
package.h
TestBase
Definition: testbase.h:48
TestBase::initTestCase
virtual void initTestCase()
Definition: testbase.cpp:48
UMLPackage
Non-graphical information for a Package.
Definition: package.h:33