umbrello  2.32.2
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
testumlcanvasobject.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 TEST_UMLCANVASOBJECT_H
22 #define TEST_UMLCANVASOBJECT_H
23 
24 #include "testbase.h"
25 
30 {
31  Q_OBJECT
32 private slots:
34  void test_getAssociations();
36  void test_getSuperClasses();
37  void test_getRealizations();
38  void test_getAggregations();
39  void test_getCompositions();
40  void test_getRelationships();
41 };
42 
43 #endif // TEST_UMLCANVASOBJECT_H
UMLCanvasObject::getSuperClasses
UMLClassifierList getSuperClasses(bool withRealizations=true)
Definition: umlcanvasobject.cpp:349
TestUMLCanvasObject
Definition: testumlcanvasobject.h:30
TestUMLCanvasObject::test_removeAllAssociationEnds
void test_removeAllAssociationEnds()
Definition: testumlcanvasobject.cpp:59
UMLCanvasObject
Non-graphical information for a UMLCanvasObject.
Definition: umlcanvasobject.h:34
UMLCanvasObject::removeAllAssociationEnds
void removeAllAssociationEnds()
Definition: umlcanvasobject.cpp:129
testumlcanvasobject.h
umlcanvasobject.h
association.h
Uml::AssociationType::Relationship
@ Relationship
Definition: basictypes.h:126
TestUMLCanvasObject::test_getSuperClasses
void test_getSuperClasses()
Definition: testumlcanvasobject.cpp:72
TestUMLCanvasObject::test_getAssociations
void test_getAssociations()
Definition: testumlcanvasobject.cpp:44
testbase.h
Uml::AssociationType::Aggregation
@ Aggregation
Definition: basictypes.h:108
TestUMLCanvasObject::test_addAssociationEnd
void test_addAssociationEnd()
Definition: testumlcanvasobject.cpp:29
UMLCanvasObject::hasAssociation
bool hasAssociation(UMLAssociation *assoc)
Definition: umlcanvasobject.cpp:101
TestUMLCanvasObject::test_getRealizations
void test_getRealizations()
Definition: testumlcanvasobject.cpp:104
a
QString a
Definition: petalnode.cpp:18
UMLCanvasObject::removeAssociationEnd
int removeAssociationEnd(UMLAssociation *assoc)
Definition: umlcanvasobject.cpp:114
Uml::AssociationType::Association
@ Association
Definition: basictypes.h:110
UMLCanvasObject::getSubClasses
UMLClassifierList getSubClasses()
Definition: umlcanvasobject.cpp:377
Uml::AssociationType::Generalization
@ Generalization
Definition: basictypes.h:107
UMLCanvasObject::getRelationships
UMLAssociationList getRelationships()
Definition: umlcanvasobject.cpp:432
UMLCanvasObject::getAggregations
UMLAssociationList getAggregations()
Definition: umlcanvasobject.cpp:412
classifier.h
TestUMLCanvasObject::test_getRelationships
void test_getRelationships()
Definition: testumlcanvasobject.cpp:155
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
UMLCanvasObject::addAssociationEnd
bool addAssociationEnd(UMLAssociation *assoc)
Definition: umlcanvasobject.cpp:80
UMLAssociation
Sets up association information.
Definition: association.h:33
TestUMLCanvasObject::test_getCompositions
void test_getCompositions()
Definition: testumlcanvasobject.cpp:138
UMLCanvasObject::getRealizations
virtual UMLAssociationList getRealizations()
Definition: umlcanvasobject.cpp:402
UMLCanvasObject::getCompositions
UMLAssociationList getCompositions()
Definition: umlcanvasobject.cpp:422
Uml::AssociationType::Composition
@ Composition
Definition: basictypes.h:117
TestUMLCanvasObject::test_getAggregations
void test_getAggregations()
Definition: testumlcanvasobject.cpp:121
b
bool b
Definition: cxx11-null-pointer-constant.h:6
TestBase
Definition: testbase.h:48
UMLCanvasObject::associations
int associations()
Definition: umlcanvasobject.cpp:314
Uml::AssociationType::Realization
@ Realization
Definition: basictypes.h:118