Lumiera  0.pre.03
»edit your freedom«
session-manager-test.cpp
Go to the documentation of this file.
1 /*
2  SessionManager(Test) - accessing, loading and saving the Session/Model
3 
4  Copyright (C)
5  2008, Hermann Vosseler <Ichthyostega@web.de>
6 
7   **Lumiera** is free software; you can redistribute it and/or modify it
8   under the terms of the GNU General Public License as published by the
9   Free Software Foundation; either version 2 of the License, or (at your
10   option) any later version. See the file COPYING for further details.
11 
12 * *****************************************************************/
13 
19 #include "lib/test/run.hpp"
22 //#include "lib/util.hpp"
23 
24 //using std::string;
25 
26 
27 namespace steam {
28 namespace mobject {
29 namespace session {
30 namespace test {
31 
32 
33  /***************************************************************************/
40  class SessionManager_test : public Test
41  {
42  virtual void
43  run (Arg arg)
44  {
46  clearSession();
48 
49  clearSession();
51  string serialized;
52  saveSession (serialized);
53  loadSession (serialized);
54  CHECK (checkTestsession1());
55  }
56 
57 
59  void
61  {
62  PSess sess = Session::current;
63  CHECK (sess->isValid());
64  }
65 
66 
72  void
74  {
75  UNIMPLEMENTED ("clear objects in current session");
77  }
78 
79 
84  void
86  {
87  UNIMPLEMENTED ("construct a pristine session");
89  }
90 
91 
97  void
99  {
100  UNIMPLEMENTED ("rebuild session using a mock serialiser");
101  }
102 
103 
109  void
110  loadSession (const string& src)
111  {
112  UNIMPLEMENTED ("loading real session");
113  }
114 
115 
120  void
121  saveSession (string& dest)
122  {
123  UNIMPLEMENTED ("Serialise current session");
124  }
125  };
126 
127 
129  LAUNCHER (SessionManager_test, "function session");
130 
131 
132 
133 }}}} // namespace steam::mobject::session::test
virtual void reset()=0
reset all session config and start with a pristine default session.
Definition: run.hpp:40
Check the session management operations provided by mobject::session::Session This includes accessing...
static session::SessManager & current
access point to the current Session
Definition: session.hpp:120
Steam-Layer implementation namespace root.
Namespace of Session and user visible high-level objects.
Definition: sequence.hpp:65
void buildTestsession1()
Create a Test Session configuration usable for various Tests.
Simplistic test class runner.
creation, access and Session lifecycle Interface.
Definition: session.hpp:152
virtual void clear()=0
clear current session contents without resetting overall session config.
bool checkTestsession1()
Analyse the current (global) Session to verify the configuration of "Test-Session 1"...
Dummy session content prepared for unit test.
Primary Interface to the current Session.