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

testassociation.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 TESTASSOCIATION_H
22 #define TESTASSOCIATION_H
23
24 #include "testbase.h"
25
26 class TestAssociation : 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_equal();
45 void test_toString();
46 void test_UMLRole();
47 void test_associationType();
48 void test_objectID();
49 void test_visibility();
50 void test_changeability();
51 void test_multiplicity();
52 void test_roleName();
53 void test_roleDoc();
54 void resolveRef();
55 void test_saveAndLoad();
56 };
57
58 #endif // TESTASSOCIATION_H
UMLObject::id
virtual Uml::ID::Type id() const
Definition: umlobject.cpp:425
umlrole.h
TestUML
Definition: testbase.h:135
TestAssociation::test_visibility
void test_visibility()
Definition: testassociation.cpp:97
TestAssociation::test_UMLRole
void test_UMLRole()
Definition: testassociation.cpp:71
Uml::Visibility::Implementation
@ Implementation
Definition: basictypes.h:63
stereotype.h
Uml::AssociationType::toStringI18n
QString toStringI18n(Enum item)
Definition: basictypes.cpp:339
TestAssociation::initTestCase
void initTestCase()
Definition: testassociation.h:32
testassociation.h
Uml::RoleType::A
@ A
Definition: basictypes.h:239
Uml::ModelType::Logical
@ Logical
Definition: basictypes.h:42
UMLDoc::rootFolder
UMLFolder * rootFolder(Uml::ModelType::Enum mt)
Definition: umldoc.cpp:3205
Uml::ID::toString
QString toString(const ID::Type &id)
Definition: basictypes.cpp:1263
association.h
TestUML::testLoad1
bool testLoad1(QDomDocument &qDoc)
Definition: testbase.h:157
SignalBlocker
QSignalBlocker SignalBlocker
Definition: testbase.h:111
TestAssociation::test_equal
void test_equal()
Definition: testassociation.cpp:36
TestAssociation::test_multiplicity
void test_multiplicity()
Definition: testassociation.cpp:143
TestAssociation::test_objectID
void test_objectID()
Definition: testassociation.cpp:88
TestAssociation::test_roleName
void test_roleName()
Definition: testassociation.cpp:156
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
testbase.h
UMLStereotype
Sets up stereotype information.
Definition: stereotype.h:41
Uml::AssociationType::Aggregation
@ Aggregation
Definition: basictypes.h:108
Uml::Visibility::Public
@ Public
Definition: basictypes.h:60
UMLObject::setStereotypeCmd
void setStereotypeCmd(const QString &_name)
Definition: umlobject.cpp:535
TestUML::testSave1
QDomDocument testSave1()
Definition: testbase.h:147
a
QString a
Definition: petalnode.cpp:18
folder.h
Uml::AssociationType::Association
@ Association
Definition: basictypes.h:110
UMLAssociation::toString
QString toString() const
Definition: association.cpp:113
TestAssociation::test_toString
void test_toString()
Definition: testassociation.cpp:56
UMLDoc::createStereotype
UMLStereotype * createStereotype(const QString &name)
Definition: umldoc.cpp:1299
Uml::RoleType::B
@ B
Definition: basictypes.h:240
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
TestAssociation::_sl
SetLoading * _sl
Definition: testassociation.h:30
UMLFolder
Non-graphical management of objects and diagrams of a Folder.
Definition: folder.h:35
classifier.h
uml.h
UMLObject::setUMLPackage
bool setUMLPackage(UMLPackage *pPkg)
Definition: umlobject.cpp:616
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
UMLAssociation
Sets up association information.
Definition: association.h:33
umlobject.h
TestAssociation::test_associationType
void test_associationType()
Definition: testassociation.cpp:80
SetLoading
Definition: testbase.h:118
TestUMLAssociation
TestUML< UMLAssociation, Uml::AssociationType::Enum > TestUMLAssociation
Definition: testassociation.cpp:208
UMLPackage::addObject
bool addObject(UMLObject *pObject, bool interactOnConflict=true)
Definition: package.cpp:135
b
bool b
Definition: cxx11-null-pointer-constant.h:6
TestAssociation
Definition: testassociation.h:27
Uml::Visibility::Private
@ Private
Definition: basictypes.h:61
package.h
TestBase
Definition: testbase.h:48
Uml::Visibility::Protected
@ Protected
Definition: basictypes.h:62
TestAssociation::resolveRef
void resolveRef()
Definition: testassociation.cpp:182
TestAssociation::test_saveAndLoad
void test_saveAndLoad()
Definition: testassociation.cpp:210
TestBase::initTestCase
virtual void initTestCase()
Definition: testbase.cpp:48
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1064
umldoc.h
TestAssociation::test_roleDoc
void test_roleDoc()
Definition: testassociation.cpp:169
TestAssociation::cleanupTestCase
void cleanupTestCase()
Definition: testassociation.h:38
TestAssociation::test_changeability
void test_changeability()
Definition: testassociation.cpp:119
UMLPackage
Non-graphical information for a Package.
Definition: package.h:33