00001 #ifndef CONTROLTEST_H
00002 #define CONTROLTEST_H
00003
00004 #include "testbench.h"
00005 #include "testui.h"
00006
00007 #include <control/controllerfactory.h>
00008 #include <domain/taskmanagerdata.h>
00009
00010 class ControlTest : public TestInterface
00011 {
00012 Q_OBJECT
00013 Q_INTERFACES(TestInterface)
00014
00015 public:
00016
00017 domain::TaskManagerData* taskManagerData;
00018 TestUi* ui;
00019 control::ControllerFactory* factory;
00020 control::ControllerInterface* controller;
00021
00022 QString name() const;
00023
00024 private:
00025
00026 bool loadData();
00027
00028 private slots:
00029
00030 void initTestCase();
00031 void cleanupTestCase();
00032 void init();
00033 void cleanup();
00034
00035 void testSelectUser();
00036 void testCreateUser();
00037 void testAdjustClock();
00038 void testTaskCreator();
00039 void testTaskModifier();
00040 void testTaskUpdater();
00041 void testTaskRemover();
00042 void testTaskWorker();
00043 void testProjectAssigner();
00044 void testProjectCreator();
00045 void testProjectRemover();
00046 void testResourceCreator();
00047 void testResourceReservationMaker();
00048 void testInvitationReplier();
00049 void testInvitationManager();
00050 void testFocusStrategies();
00051 };
00052
00053 #endif