Date: Wednesday, June 21, 2006 @ 16:14:35
  Author: marc
    Path: /cvsroot/carob/carob/test

Modified: ConnectionSetup.cpp (1.7 -> 1.8) ConnectionSetup.hpp (1.4 ->
          1.5)

doxygen and cosmetic fixes related to controller adress/settings


---------------------+
 ConnectionSetup.cpp |   10 ++++++++--
 ConnectionSetup.hpp |   14 ++++++++------
 2 files changed, 16 insertions(+), 8 deletions(-)


Index: carob/test/ConnectionSetup.cpp
diff -u carob/test/ConnectionSetup.cpp:1.7 carob/test/ConnectionSetup.cpp:1.8
--- carob/test/ConnectionSetup.cpp:1.7  Tue Apr  4 18:35:58 2006
+++ carob/test/ConnectionSetup.cpp      Wed Jun 21 16:14:34 2006
@@ -32,11 +32,17 @@
 
 void ConnectionSetup::setUp()
 {
-  ConnectionParameters connectionPrms(L"localhost",
+#if 1
+  ConnectionParameters connectionPrms;
+#else
+  // Put your controller settings here.
+  // Check this constructor for more details.
+  ConnectionParameters connectionPrms(L"myhost",
                                       25322,
                                       L"myDB",
                                       L"user",
-                                      L"");  
+                                      L"");
+#endif
   connectionPtr = new Connection(connectionPrms);
 }
 
Index: carob/test/ConnectionSetup.hpp
diff -u carob/test/ConnectionSetup.hpp:1.4 carob/test/ConnectionSetup.hpp:1.5
--- carob/test/ConnectionSetup.hpp:1.4  Mon Feb 27 16:47:23 2006
+++ carob/test/ConnectionSetup.hpp      Wed Jun 21 16:14:34 2006
@@ -31,12 +31,14 @@
 #include "Connection.hpp"
 
 /**
- * Test super class for running tests on a valid connection to a local
- * controller.
- * Defines setUp() and tearDown() functions to connect to localhost:25322,
- * db "myDB" user "user" pass "". Inherit from this class to launch tests and
- * get rid of connection aspects. No testing is done here !
- * A controller *MUST* run locally for test success !!!
+ * Test super class for running tests on a valid connection to a
+ * controller.  Defines setUp() and tearDown() functions to connect to
+ * a controller (by default: host "localhost", db "myDB", user "user",
+ * etc. Modify ConnectionSetup.cpp according to your needs.
+ * 
+ * Derive this class to get connected to a controller for free.  No
+ * testing is done here! A controller *MUST* run at the given address
+ * for test success.
  */
 class ConnectionSetup : CppUnit::TestFixture
 {

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to