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

testumlobject.h
Go to the documentation of this file.
1 /*
2 Copyright 2015 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 TESTUMLOBJECT_H
22 #define TESTUMLOBJECT_H
23
24 #include "testbase.h"
25
26 class TestUMLObject : public TestBase
27 {
28 Q_OBJECT
29 private slots:
30 void test_copyInto();
31 void test_clone();
32 void test_doc();
33 void test_equal();
34 void test_fullyQualifiedName();
35 void test_isAbstract();
36 void test_isStatic();
37 void test_resolveRef();
38 void test_saveAndLoad();
39 void test_setBaseType();
40 void test_setSterotype();
41 void test_setUMLPackage();
42 void test_setVisibility();
43 void test_toString();
44 void test_dynamic_cast();
45 void test_isUMLXXX();
46 };
47
48 #endif // TESTUMLOBJECT_H
UMLObject::id
virtual Uml::ID::Type id() const
Definition: umlobject.cpp:425
TestUMLObject::test_setUMLPackage
void test_setUMLPackage()
Definition: testumlobject.cpp:189
TestUML
Definition: testbase.h:135
UMLObject::asUMLClassifier
UMLClassifier * asUMLClassifier()
Definition: umlobject.cpp:1309
UMLObject::toI18nString
static QString toI18nString(ObjectType t)
Definition: umlobject.cpp:1135
TestUMLObject::test_setVisibility
void test_setVisibility()
Definition: testumlobject.cpp:199
Uml::Visibility::Implementation
@ Implementation
Definition: basictypes.h:63
TestUMLObject::test_isUMLXXX
void test_isUMLXXX()
Definition: testumlobject.cpp:229
TestUMLObject
Definition: testumlobject.h:27
stereotype.h
Uml::ID::Reserved
const Type Reserved
special value for illegal ID
Definition: basictypes.h:354
TestUMLObject::test_isStatic
void test_isStatic()
Definition: testumlobject.cpp:120
TestUMLObject::test_toString
void test_toString()
Definition: testumlobject.cpp:213
UMLObject::ot_Class
@ ot_Class
Definition: umlobject.h:89
operation.h
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:353
Uml::ModelType::Logical
@ Logical
Definition: basictypes.h:42
UMLDoc::rootFolder
UMLFolder * rootFolder(Uml::ModelType::Enum mt)
Definition: umldoc.cpp:3205
TestUMLObject::test_clone
void test_clone()
Definition: testumlobject.cpp:57
Uml::ID::toString
QString toString(const ID::Type &id)
Definition: basictypes.cpp:1263
UMLObject::umlParent
UMLObject * umlParent() const
Definition: umlobject.cpp:671
TestBase::cleanupOnExit
virtual void cleanupOnExit(QObject *p)
Definition: testbase.cpp:63
Uml::Visibility::FromParent
@ FromParent
Definition: basictypes.h:64
UMLObject::ot_UMLObject
@ ot_UMLObject
Definition: umlobject.h:82
TestUMLObject::test_dynamic_cast
void test_dynamic_cast()
Definition: testumlobject.cpp:219
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
testbase.h
TestUMLObject::test_setBaseType
void test_setBaseType()
Definition: testumlobject.cpp:173
UMLStereotype
Sets up stereotype information.
Definition: stereotype.h:41
TestUMLObject::test_doc
void test_doc()
Definition: testumlobject.cpp:66
Uml::Visibility::Public
@ Public
Definition: basictypes.h:60
attribute.h
a
QString a
Definition: petalnode.cpp:18
folder.h
i18n
#define i18n
Definition: main.cpp:39
UMLDoc::createStereotype
UMLStereotype * createStereotype(const QString &name)
Definition: umldoc.cpp:1299
TestUMLObject::test_equal
void test_equal()
Definition: testumlobject.cpp:76
testumlobject.h
TestUMLObject::test_saveAndLoad
void test_saveAndLoad()
Definition: testumlobject.cpp:159
UMLObject::toString
static QString toString(ObjectType ot)
Definition: umlobject.cpp:1125
TestUMLObject::test_setSterotype
void test_setSterotype()
Definition: testumlobject.cpp:181
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
UMLAttribute::copyInto
virtual void copyInto(UMLObject *lhs) const
Definition: attribute.cpp:236
UMLAttribute
Sets up attribute information.
Definition: attribute.h:28
TestUMLObject::test_fullyQualifiedName
void test_fullyQualifiedName()
Definition: testumlobject.cpp:91
UMLFolder
Non-graphical management of objects and diagrams of a Folder.
Definition: folder.h:35
classifier.h
UMLOperation
Definition: operation.h:25
uml.h
UMLObject::setUMLPackage
bool setUMLPackage(UMLPackage *pPkg)
Definition: umlobject.cpp:616
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
umlobject.h
TESTUMLObject
TestUML< UMLObject, const QString & > TESTUMLObject
Definition: testumlobject.cpp:128
TestUMLObject::test_resolveRef
void test_resolveRef()
Definition: testumlobject.cpp:130
b
bool b
Definition: cxx11-null-pointer-constant.h:6
Uml::Visibility::Private
@ Private
Definition: basictypes.h:61
package.h
TestBase
Definition: testbase.h:48
Uml::Visibility::Protected
@ Protected
Definition: basictypes.h:62
TestUMLObject::test_isAbstract
void test_isAbstract()
Definition: testumlobject.cpp:112
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1064
umldoc.h
TestUMLObject::test_copyInto
void test_copyInto()
Definition: testumlobject.cpp:39
UMLPackage
Non-graphical information for a Package.
Definition: package.h:33