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

testbasictypes.h
Go to the documentation of this file.
1 /*
2 Copyright 2011 Andi Fischer <andi.fischer@hispeed.ch>
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_BASICTYPES_H
22 #define TEST_BASICTYPES_H
23
24 #include <QObject>
25
26 class TestBasicTypes : public QObject
27 {
28 Q_OBJECT
29 private slots:
30 void test_dynamic_cast();
31 void test_QString_english();
32 void test_QString_non_english();
33 void test_DomDocument_english();
34 void test_DomDocument_non_english();
35 void test_ModelType_toString();
36 void test_ModelType_fromString();
37 void test_ModelType_forLoop();
38 void test_Visibility_toString();
39 void test_Visibility_fromString();
40 void test_DiagramType_toString();
41 void test_DiagramType_fromString();
42 void test_DiagramType_forLoop();
43 void test_AssociationType_toString_fromString();
44 void test_SignatureType_toString_fromString();
45 void test_TextRole_toString_fromString();
46 void test_Changeability_toString_fromString();
47 void test_SequenceMessage_toString_fromString();
48 void test_RoleType_toString_fromString();
49 void test_ParameterDirection_toString_fromString();
50 void test_ProgrammingLanguage_toString_fromString();
51 void test_Region_toString_fromString();
52 void test_Corner_toString_fromString();
53 };
54
55 #endif // TEST_BASICTYPES_H
Uml::DiagramType::UseCase
@ UseCase
Definition: basictypes.h:82
Uml::ModelType::Enum
Enum
Definition: basictypes.h:41
TestBasicTypes::test_RoleType_toString_fromString
void test_RoleType_toString_fromString()
Definition: testbasictypes.cpp:415
Uml::DiagramType::Component
@ Component
Definition: basictypes.h:87
TestBasicTypes::test_Region_toString_fromString
void test_Region_toString_fromString()
Definition: testbasictypes.cpp:451
Uml::Region::fromString
Enum fromString(const QString &item)
Definition: basictypes.cpp:1164
TestBasicTypes::test_Corner_toString_fromString
void test_Corner_toString_fromString()
Definition: testbasictypes.cpp:463
Uml::Visibility::Implementation
@ Implementation
Definition: basictypes.h:63
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:271
Uml::SignatureType::NoSigNoVis
@ NoSigNoVis
Definition: basictypes.h:166
Uml::SequenceMessage::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:767
Uml::ParameterDirection::In
@ In
Definition: basictypes.h:257
Uml::AssociationType::Reserved
@ Reserved
Definition: basictypes.h:129
Uml::Region::Error
@ Error
Definition: basictypes.h:311
Uml::Corner::BottomLeft
@ BottomLeft
Definition: basictypes.h:337
TestBasicTypes::test_SignatureType_toString_fromString
void test_SignatureType_toString_fromString()
Definition: testbasictypes.cpp:365
TestBasicTypes
Definition: testbasictypes.h:27
Uml::ParameterDirection::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:859
Uml::DiagramType::State
@ State
Definition: basictypes.h:85
TestBasicTypes::test_SequenceMessage_toString_fromString
void test_SequenceMessage_toString_fromString()
Definition: testbasictypes.cpp:403
Uml::RoleType::A
@ A
Definition: basictypes.h:239
Uml::SignatureType::fromString
Enum fromString(const QString &item)
Definition: basictypes.cpp:556
Uml::ProgrammingLanguage::Reserved
@ Reserved
Definition: basictypes.h:292
Uml::SequenceMessage::toString
QString toString(Enum item)
Definition: basictypes.cpp:725
Uml::ModelType::Logical
@ Logical
Definition: basictypes.h:42
Uml::ProgrammingLanguage::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:975
Uml::Corner::toString
static QString toString(Enum item)
Definition: basictypes.cpp:1208
Uml::ModelType::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:88
TestBasicTypes::test_DiagramType_fromString
void test_DiagramType_fromString()
Definition: testbasictypes.cpp:305
Uml::DiagramType::Enum
Enum
Definition: basictypes.h:77
Uml::DiagramType::Collaboration
@ Collaboration
Definition: basictypes.h:84
Uml::SignatureType::SigNoVis
@ SigNoVis
Definition: basictypes.h:165
TestBasicTypes::test_AssociationType_toString_fromString
void test_AssociationType_toString_fromString()
Definition: testbasictypes.cpp:353
Uml::Changeability::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:711
Uml::ProgrammingLanguage::ActionScript
@ ActionScript
Definition: basictypes.h:272
Uml::Corner::TopLeft
@ TopLeft
Definition: basictypes.h:334
TestBasicTypes::test_ModelType_forLoop
void test_ModelType_forLoop()
Definition: testbasictypes.cpp:222
Uml::RoleType::toString
QString toString(Enum item)
Definition: basictypes.cpp:781
getPointer
A * getPointer()
Definition: testbasictypes.cpp:47
Uml::ParameterDirection::Enum
Enum
Definition: basictypes.h:256
Uml::AssociationType::toString
QString toString(Enum item)
Definition: basictypes.cpp:283
asB
B * asB(A *p)
Definition: testbasictypes.cpp:42
TestBasicTypes::test_dynamic_cast
void test_dynamic_cast()
Definition: testbasictypes.cpp:52
TestBasicTypes::test_Changeability_toString_fromString
void test_Changeability_toString_fromString()
Definition: testbasictypes.cpp:391
TestBasicTypes::test_ModelType_fromString
void test_ModelType_fromString()
Definition: testbasictypes.cpp:200
Uml::DiagramType::EntityRelationship
@ EntityRelationship
Definition: basictypes.h:89
Uml::RoleType::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:811
Uml::SequenceMessage::fromString
Enum fromString(const QString &item)
Definition: basictypes.cpp:747
Uml::ModelType::toString
QString toString(Enum item)
Definition: basictypes.cpp:47
Uml::TextRole::Floating
@ Floating
Definition: basictypes.h:179
Uml::Region::toString
QString toString(Enum item)
Definition: basictypes.cpp:1132
Uml::ModelType::Deployment
@ Deployment
Definition: basictypes.h:45
Uml::Changeability::Enum
Enum
Definition: basictypes.h:204
TestBasicTypes::test_DomDocument_english
void test_DomDocument_english()
Definition: testbasictypes.cpp:115
Uml::Visibility::Public
@ Public
Definition: basictypes.h:60
Uml::ProgrammingLanguage::toString
QString toString(Enum item)
Definition: basictypes.cpp:873
Uml::TextRole::Enum
Enum
Definition: basictypes.h:178
TestBasicTypes::test_Visibility_toString
void test_Visibility_toString()
Definition: testbasictypes.cpp:240
Uml::DiagramType::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:267
Uml::ModelType::EntityRelationship
@ EntityRelationship
Definition: basictypes.h:46
TestBasicTypes::test_ModelType_toString
void test_ModelType_toString()
Definition: testbasictypes.cpp:186
Uml::ProgrammingLanguage::fromString
Enum fromString(const QString &item)
Definition: basictypes.cpp:925
a
QString a
Definition: petalnode.cpp:18
Uml::Visibility::toString
QString toString(Enum item, bool mnemonic)
Definition: basictypes.cpp:107
Uml::ModelType::Component
@ Component
Definition: basictypes.h:44
TestBasicTypes::test_QString_non_english
void test_QString_non_english()
Definition: testbasictypes.cpp:92
testbasictypes.h
Uml::DiagramType::N_DIAGRAMTYPES
@ N_DIAGRAMTYPES
Definition: basictypes.h:91
basictypes.h
Uml::Region::Enum
Enum
Definition: basictypes.h:310
Uml::RoleType::B
@ B
Definition: basictypes.h:240
Uml::ParameterDirection::Out
@ Out
Definition: basictypes.h:259
Uml::DiagramType::toString
QString toString(Enum item)
Definition: basictypes.cpp:168
Uml::TextRole::fromString
Enum fromString(const QString &item)
Definition: basictypes.cpp:626
Uml::AssociationType::Enum
Enum
Definition: basictypes.h:106
Uml::AssociationType::Generalization
@ Generalization
Definition: basictypes.h:107
visibility
Definition: visibility.py:1
Uml::AssociationType::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:449
Uml::Region::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:1194
Uml::DiagramType::fromString
Enum fromString(const QString &item)
Definition: basictypes.cpp:236
TestBasicTypes::test_Visibility_fromString
void test_Visibility_fromString()
Definition: testbasictypes.cpp:256
TestBasicTypes::test_QString_english
void test_QString_english()
Definition: testbasictypes.cpp:69
Uml::DiagramType::Sequence
@ Sequence
Definition: basictypes.h:83
Uml::Corner::Enum
Enum
Definition: basictypes.h:333
Uml::Visibility::Enum
Enum
Definition: basictypes.h:59
Uml::ModelType::N_MODELTYPES
@ N_MODELTYPES
Definition: basictypes.h:47
Uml::ParameterDirection::toString
QString toString(Enum item)
Definition: basictypes.cpp:825
Uml::DiagramType::Class
@ Class
Definition: basictypes.h:81
Uml::Changeability::toString
QString toString(Enum item)
Definition: basictypes.cpp:677
Uml::TextRole::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:662
A
Definition: testbasictypes.cpp:33
Uml::Changeability::fromString
Enum fromString(const QString &item)
Definition: basictypes.cpp:695
Uml::SignatureType::ShowSig
@ ShowSig
Definition: basictypes.h:164
Uml::RoleType::fromString
Enum fromString(const QString &item)
Definition: basictypes.cpp:797
Uml::ModelType::UseCase
@ UseCase
Definition: basictypes.h:43
TestBasicTypes::test_ProgrammingLanguage_toString_fromString
void test_ProgrammingLanguage_toString_fromString()
Definition: testbasictypes.cpp:439
A::~A
virtual ~A()
Definition: testbasictypes.cpp:35
Uml::SignatureType::NoSig
@ NoSig
Definition: basictypes.h:163
Uml::SignatureType::toString
QString toString(Enum item)
Definition: basictypes.cpp:536
Uml::Corner::fromInt
static Enum fromInt(int item)
Definition: basictypes.cpp:1246
Uml::DiagramType::Undefined
@ Undefined
Definition: basictypes.h:80
TestBasicTypes::test_DiagramType_toString
void test_DiagramType_toString()
Definition: testbasictypes.cpp:281
Uml::SequenceMessage::Enum
Enum
Definition: basictypes.h:219
TestBasicTypes::test_ParameterDirection_toString_fromString
void test_ParameterDirection_toString_fromString()
Definition: testbasictypes.cpp:427
Uml::TextRole::Reserved
@ Reserved
Definition: basictypes.h:192
TestBasicTypes::test_DomDocument_non_english
void test_DomDocument_non_english()
Definition: testbasictypes.cpp:150
Uml::DiagramType::Activity
@ Activity
Definition: basictypes.h:86
Uml::Visibility::Private
@ Private
Definition: basictypes.h:61
Uml::ModelType::fromString
Enum fromString(const QString &item)
Definition: basictypes.cpp:69
Uml::TextRole::toString
QString toString(Enum item)
Definition: basictypes.cpp:588
Uml::Visibility::Protected
@ Protected
Definition: basictypes.h:62
Uml::DiagramType::Deployment
@ Deployment
Definition: basictypes.h:88
Uml::Region::SouthWest
@ SouthWest
Definition: basictypes.h:319
Uml::ParameterDirection::fromString
Enum fromString(const QString &item)
Definition: basictypes.cpp:843
Uml::Visibility::fromString
Enum fromString(const QString &item, bool checkUnkown)
Definition: basictypes.cpp:127
TestBasicTypes::test_DiagramType_forLoop
void test_DiagramType_forLoop()
Definition: testbasictypes.cpp:330
TestBasicTypes::test_TextRole_toString_fromString
void test_TextRole_toString_fromString()
Definition: testbasictypes.cpp:379
Uml::AssociationType::fromString
Enum fromString(const QString &item)
Definition: basictypes.cpp:396
B
Definition: testbasictypes.cpp:39
Uml::RoleType::Enum
Enum
Definition: basictypes.h:238
Uml::Corner::fromString
static Enum fromString(const QString &item)
Definition: basictypes.cpp:1228