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

testclassifier.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_CLASSIFIER_H
22 #define TEST_CLASSIFIER_H
23
24 #include "testbase.h"
25
29 class TEST_classifier: public TestBase
30 {
31 Q_OBJECT
32 private slots:
33 void test_equal();
34 void test_copyInto();
35 void test_clone();
36 void test_addAttributeWithType();
37 void test_addAttributeWithObject();
38 void test_addAttributeWithAttribute();
39 void test_removeAndCountAttribute();
40 void test_getAttributeList();
41 void test_addOperationWithPosition();
42 void test_addOperationWithLog();
43 void test_checkOperationSignature();
44 void test_removeAndCountOperation();
45 void test_getOperationList();
46 void test_addTemplateWithType();
47 void test_addTemplateWithLog();
48 void test_addTemplateWithPosition();
49 void test_removeAndCountTemplate();
50 void test_findTemplate();
51 void test_getTemplateList();
52 void test_takeItem();
53 void test_getFilteredList();
54 void test_resolveRef();
55 void test_findOperations();
56 void test_findChildObjectById();
57 void test_findOperation();
58 void test_findSuperClassConcepts();
59 void test_findSubClassConcepts();
60 void test_setGetClassAssoc();
61 void test_isInterface();
62 void test_setGetOriginType();
63 void test_setGetIsReference();
64 void test_hasAbstractOps();
65 void test_makeChildObject();
66 void test_getUniAssociationToBeImplemented();
67 void test_saveAndLoad();
68 };
69
70 #endif // TEST_CLASSIFIER_H
TestUML
Definition: testbase.h:135
datatype.h
TestUMLClassifier
TestUML< UMLClassifier, const QString & > TestUMLClassifier
Definition: testclassifier.cpp:320
UMLOperation::addParm
void addParm(UMLAttribute *parameter, int position=-1)
Definition: operation.cpp:276
UMLClassifier::findOperations
UMLOperationList findOperations(const QString &n)
Definition: classifier.cpp:522
UMLClassifier::getOpList
UMLOperationList getOpList(bool includeInherited=false, UMLClassifierSet *alreadyTraversed=0)
Definition: classifier.cpp:939
TEST_classifier::test_clone
void test_clone()
Definition: testclassifier.cpp:53
TEST_classifier::test_makeChildObject
void test_makeChildObject()
Definition: testclassifier.cpp:310
Uml::ProgrammingLanguage::Enum
Enum
Definition: basictypes.h:271
UMLClassifier::isInterface
bool isInterface() const
Definition: classifier.cpp:118
Uml::ProgrammingLanguage::PostgreSQL
@ PostgreSQL
Definition: basictypes.h:285
TEST_classifier::test_getAttributeList
void test_getAttributeList()
Definition: testclassifier.cpp:103
TEST_classifier::test_setGetIsReference
void test_setGetIsReference()
Definition: testclassifier.cpp:300
TEST_classifier::test_findSubClassConcepts
void test_findSubClassConcepts()
Definition: testclassifier.cpp:267
TEST_classifier::test_getTemplateList
void test_getTemplateList()
Definition: testclassifier.cpp:158
UMLDatatype
Non-graphical information for a Datatype.
Definition: datatype.h:26
operation.h
UMLClassifierListItem::getType
UMLClassifier * getType() const
Definition: classifierlistitem.cpp:102
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:353
TEST_classifier::test_findSuperClassConcepts
void test_findSuperClassConcepts()
Definition: testclassifier.cpp:254
association.h
TestUML::testLoad1
bool testLoad1(QDomDocument &qDoc)
Definition: testbase.h:157
TEST_classifier::test_setGetOriginType
void test_setGetOriginType()
Definition: testclassifier.cpp:295
model_utils.h
UMLClassifier::ALL
@ ALL
Definition: classifier.h:47
testbase.h
Model_Utils::NameAndType_List
QLinkedList< NameAndType > NameAndType_List
Auxiliary type for OpDescriptor.
Definition: model_utils.h:126
IS_NOT_IMPL
#define IS_NOT_IMPL()
Definition: testbase.h:37
TEST_classifier::test_hasAbstractOps
void test_hasAbstractOps()
Definition: testclassifier.cpp:305
TEST_classifier::test_takeItem
void test_takeItem()
Definition: testclassifier.cpp:163
TEST_classifier::test_addAttributeWithAttribute
void test_addAttributeWithAttribute()
Definition: testclassifier.cpp:79
UMLClassifierListItem::setTypeName
void setTypeName(const QString &type)
Definition: classifierlistitem.cpp:141
TEST_classifier
Definition: testclassifier.h:30
TEST_classifier::test_addOperationWithPosition
void test_addOperationWithPosition()
Definition: testclassifier.cpp:108
TestUML::testSave1
QDomDocument testSave1()
Definition: testbase.h:147
TEST_classifier::test_copyInto
void test_copyInto()
Definition: testclassifier.cpp:45
a
QString a
Definition: petalnode.cpp:18
UMLClassifier::addOperation
bool addOperation(UMLOperation *op, int position=-1)
Definition: classifier.cpp:310
UMLClassifier::findSuperClassConcepts
UMLClassifierList findSuperClassConcepts(ClassifierType type=ALL)
Definition: classifier.cpp:609
TEST_classifier::test_findOperations
void test_findOperations()
Definition: testclassifier.cpp:178
UMLClassifier::setBaseType
void setBaseType(UMLObject::ObjectType ot)
Definition: classifier.cpp:83
TEST_classifier::test_addAttributeWithType
void test_addAttributeWithType()
Definition: testclassifier.cpp:60
TEST_classifier::test_findTemplate
void test_findTemplate()
Definition: testclassifier.cpp:153
UMLApp::setActiveLanguage
void setActiveLanguage(Uml::ProgrammingLanguage::Enum pl)
Definition: uml.cpp:2514
TEST_classifier::test_addOperationWithLog
void test_addOperationWithLog()
Definition: testclassifier.cpp:113
TEST_classifier::test_saveAndLoad
void test_saveAndLoad()
Definition: testclassifier.cpp:322
TEST_classifier::test_removeAndCountAttribute
void test_removeAndCountAttribute()
Definition: testclassifier.cpp:84
Uml::AssociationType::Generalization
@ Generalization
Definition: basictypes.h:107
TEST_classifier::test_equal
void test_equal()
Definition: testclassifier.cpp:33
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
Model_Utils::NameAndType
Definition: model_utils.h:113
UMLAttribute
Sets up attribute information.
Definition: attribute.h:28
UMLClassifier::findSubClassConcepts
UMLClassifierList findSubClassConcepts(ClassifierType type=ALL)
Definition: classifier.cpp:570
testclassifier.h
TEST_classifier::test_addTemplateWithPosition
void test_addTemplateWithPosition()
Definition: testclassifier.cpp:143
classifier.h
TEST_classifier::test_getOperationList
void test_getOperationList()
Definition: testclassifier.cpp:128
TEST_classifier::test_removeAndCountOperation
void test_removeAndCountOperation()
Definition: testclassifier.cpp:123
TEST_classifier::test_getUniAssociationToBeImplemented
void test_getUniAssociationToBeImplemented()
Definition: testclassifier.cpp:315
UMLOperation
Definition: operation.h:25
TEST_classifier::test_resolveRef
void test_resolveRef()
Definition: testclassifier.cpp:173
uml.h
TEST_classifier::test_removeAndCountTemplate
void test_removeAndCountTemplate()
Definition: testclassifier.cpp:148
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
TEST_classifier::test_setGetClassAssoc
void test_setGetClassAssoc()
Definition: testclassifier.cpp:280
TEST_classifier::test_addTemplateWithType
void test_addTemplateWithType()
Definition: testclassifier.cpp:133
TEST_classifier::test_findChildObjectById
void test_findChildObjectById()
Definition: testclassifier.cpp:201
TEST_classifier::test_getFilteredList
void test_getFilteredList()
Definition: testclassifier.cpp:168
UMLClassifier::findOperation
UMLOperation * findOperation(const QString &name, Model_Utils::NameAndType_List params)
Definition: classifier.cpp:179
TEST_classifier::test_findOperation
void test_findOperation()
Definition: testclassifier.cpp:206
b
bool b
Definition: cxx11-null-pointer-constant.h:6
UMLApp::activeLanguage
Uml::ProgrammingLanguage::Enum activeLanguage() const
Definition: uml.cpp:2523
TEST_classifier::test_addTemplateWithLog
void test_addTemplateWithLog()
Definition: testclassifier.cpp:138
TestBase
Definition: testbase.h:48
TEST_classifier::test_isInterface
void test_isInterface()
Definition: testclassifier.cpp:285
TEST_classifier::test_checkOperationSignature
void test_checkOperationSignature()
Definition: testclassifier.cpp:118
Uml::AssociationType::Realization
@ Realization
Definition: basictypes.h:118
UMLPackage
Non-graphical information for a Package.
Definition: package.h:33
TEST_classifier::test_addAttributeWithObject
void test_addAttributeWithObject()
Definition: testclassifier.cpp:74