umbrello: unittests/testbasictypes.h Source File

umbrello 2.31.1 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:99
Uml::ModelType::Enum
Enum
Definition: basictypes.h:75
TestBasicTypes::test_RoleType_toString_fromString
void test_RoleType_toString_fromString()
Definition: testbasictypes.cpp:415
Uml::DiagramType::Component
@ Component
Definition: basictypes.h:104
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:1181
TestBasicTypes::test_Corner_toString_fromString
void test_Corner_toString_fromString()
Definition: testbasictypes.cpp:463
Uml::Visibility::Implementation
@ Implementation
Definition: basictypes.h:80
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:288
Uml::SignatureType::NoSigNoVis
@ NoSigNoVis
Definition: basictypes.h:183
Uml::SequenceMessage::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:784
Uml::ParameterDirection::In
@ In
Definition: basictypes.h:274
Uml::AssociationType::Reserved
@ Reserved
Definition: basictypes.h:146
Uml::Region::Error
@ Error
Definition: basictypes.h:328
Uml::Corner::BottomLeft
@ BottomLeft
Definition: basictypes.h:354
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:876
Uml::DiagramType::State
@ State
Definition: basictypes.h:102
TestBasicTypes::test_SequenceMessage_toString_fromString
void test_SequenceMessage_toString_fromString()
Definition: testbasictypes.cpp:403
Uml::RoleType::A
@ A
Definition: basictypes.h:256
Uml::SignatureType::fromString
Enum fromString(const QString &item)
Definition: basictypes.cpp:573
Uml::ProgrammingLanguage::Reserved
@ Reserved
Definition: basictypes.h:309
Uml::SequenceMessage::toString
QString toString(Enum item)
Definition: basictypes.cpp:742
Uml::ModelType::Logical
@ Logical
Definition: basictypes.h:93
Uml::ProgrammingLanguage::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:992
Uml::Corner::toString
static QString toString(Enum item)
Definition: basictypes.cpp:1225
Uml::ModelType::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:122
TestBasicTypes::test_DiagramType_fromString
void test_DiagramType_fromString()
Definition: testbasictypes.cpp:305
Uml::DiagramType::Enum
Enum
Definition: basictypes.h:94
Uml::DiagramType::Collaboration
@ Collaboration
Definition: basictypes.h:101
Uml::SignatureType::SigNoVis
@ SigNoVis
Definition: basictypes.h:182
TestBasicTypes::test_AssociationType_toString_fromString
void test_AssociationType_toString_fromString()
Definition: testbasictypes.cpp:353
Uml::Changeability::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:728
Uml::ProgrammingLanguage::ActionScript
@ ActionScript
Definition: basictypes.h:289
Uml::Corner::TopLeft
@ TopLeft
Definition: basictypes.h:351
TestBasicTypes::test_ModelType_forLoop
void test_ModelType_forLoop()
Definition: testbasictypes.cpp:222
Uml::RoleType::toString
QString toString(Enum item)
Definition: basictypes.cpp:798
getPointer
A * getPointer()
Definition: testbasictypes.cpp:47
Uml::ParameterDirection::Enum
Enum
Definition: basictypes.h:273
Uml::AssociationType::toString
QString toString(Enum item)
Definition: basictypes.cpp:300
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:106
Uml::RoleType::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:828
Uml::SequenceMessage::fromString
Enum fromString(const QString &item)
Definition: basictypes.cpp:764
Uml::ModelType::toString
QString toString(Enum item)
Definition: basictypes.cpp:81
Uml::TextRole::Floating
@ Floating
Definition: basictypes.h:196
Uml::Region::toString
QString toString(Enum item)
Definition: basictypes.cpp:1149
Uml::ModelType::Deployment
@ Deployment
Definition: basictypes.h:96
Uml::Changeability::Enum
Enum
Definition: basictypes.h:221
TestBasicTypes::test_DomDocument_english
void test_DomDocument_english()
Definition: testbasictypes.cpp:115
Uml::Visibility::Public
@ Public
Definition: basictypes.h:77
Uml::ProgrammingLanguage::toString
QString toString(Enum item)
Definition: basictypes.cpp:890
Uml::TextRole::Enum
Enum
Definition: basictypes.h:195
TestBasicTypes::test_Visibility_toString
void test_Visibility_toString()
Definition: testbasictypes.cpp:240
Uml::DiagramType::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:284
Uml::ModelType::EntityRelationship
@ EntityRelationship
Definition: basictypes.h:97
TestBasicTypes::test_ModelType_toString
void test_ModelType_toString()
Definition: testbasictypes.cpp:186
Uml::ProgrammingLanguage::fromString
Enum fromString(const QString &item)
Definition: basictypes.cpp:942
a
QString a
Definition: petalnode.cpp:18
Uml::Visibility::toString
QString toString(Enum item, bool mnemonic)
Definition: basictypes.cpp:124
Uml::ModelType::Component
@ Component
Definition: basictypes.h:95
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:108
basictypes.h
Uml::Region::Enum
Enum
Definition: basictypes.h:327
Uml::RoleType::B
@ B
Definition: basictypes.h:257
Uml::ParameterDirection::Out
@ Out
Definition: basictypes.h:276
Uml::DiagramType::toString
QString toString(Enum item)
Definition: basictypes.cpp:185
Uml::TextRole::fromString
Enum fromString(const QString &item)
Definition: basictypes.cpp:643
Uml::AssociationType::Enum
Enum
Definition: basictypes.h:123
Uml::AssociationType::Generalization
@ Generalization
Definition: basictypes.h:124
visibility
Definition: visibility.py:1
Uml::AssociationType::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:466
Uml::Region::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:1211
Uml::DiagramType::fromString
Enum fromString(const QString &item)
Definition: basictypes.cpp:253
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:100
Uml::Corner::Enum
Enum
Definition: basictypes.h:350
Uml::Visibility::Enum
Enum
Definition: basictypes.h:76
Uml::ModelType::N_MODELTYPES
@ N_MODELTYPES
Definition: basictypes.h:98
Uml::ParameterDirection::toString
QString toString(Enum item)
Definition: basictypes.cpp:842
Uml::DiagramType::Class
@ Class
Definition: basictypes.h:98
Uml::Changeability::toString
QString toString(Enum item)
Definition: basictypes.cpp:694
Uml::TextRole::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:679
A
Definition: testbasictypes.cpp:33
Uml::Changeability::fromString
Enum fromString(const QString &item)
Definition: basictypes.cpp:712
Uml::SignatureType::ShowSig
@ ShowSig
Definition: basictypes.h:181
Uml::RoleType::fromString
Enum fromString(const QString &item)
Definition: basictypes.cpp:814
Uml::ModelType::UseCase
@ UseCase
Definition: basictypes.h:94
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:180
Uml::SignatureType::toString
QString toString(Enum item)
Definition: basictypes.cpp:553
Uml::Corner::fromInt
static Enum fromInt(int item)
Definition: basictypes.cpp:1263
Uml::DiagramType::Undefined
@ Undefined
Definition: basictypes.h:97
TestBasicTypes::test_DiagramType_toString
void test_DiagramType_toString()
Definition: testbasictypes.cpp:281
Uml::SequenceMessage::Enum
Enum
Definition: basictypes.h:236
TestBasicTypes::test_ParameterDirection_toString_fromString
void test_ParameterDirection_toString_fromString()
Definition: testbasictypes.cpp:427
Uml::TextRole::Reserved
@ Reserved
Definition: basictypes.h:209
TestBasicTypes::test_DomDocument_non_english
void test_DomDocument_non_english()
Definition: testbasictypes.cpp:150
Uml::DiagramType::Activity
@ Activity
Definition: basictypes.h:103
Uml::Visibility::Private
@ Private
Definition: basictypes.h:78
Uml::ModelType::fromString
Enum fromString(const QString &item)
Definition: basictypes.cpp:103
Uml::TextRole::toString
QString toString(Enum item)
Definition: basictypes.cpp:605
Uml::Visibility::Protected
@ Protected
Definition: basictypes.h:79
Uml::DiagramType::Deployment
@ Deployment
Definition: basictypes.h:105
Uml::Region::SouthWest
@ SouthWest
Definition: basictypes.h:336
Uml::ParameterDirection::fromString
Enum fromString(const QString &item)
Definition: basictypes.cpp:860
Uml::Visibility::fromString
Enum fromString(const QString &item, bool checkUnkown)
Definition: basictypes.cpp:144
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:413
B
Definition: testbasictypes.cpp:39
Uml::RoleType::Enum
Enum
Definition: basictypes.h:255
Uml::Corner::fromString
static Enum fromString(const QString &item)
Definition: basictypes.cpp:1245