summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/adapterDeactivation/Client.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-09-30 17:51:43 +0000
committerMarc Laukien <marc@zeroc.com>2002-09-30 17:51:43 +0000
commite1e3c23eb93918e12ffbe031608dfbd50d68a14c (patch)
tree22056f159dfd4601a05aa298ec54ebf243428c35 /cpp/test/Ice/adapterDeactivation/Client.cpp
parentFixed typo in comment. (diff)
downloadice-e1e3c23eb93918e12ffbe031608dfbd50d68a14c.tar.bz2
ice-e1e3c23eb93918e12ffbe031608dfbd50d68a14c.tar.xz
ice-e1e3c23eb93918e12ffbe031608dfbd50d68a14c.zip
bug fixes ; added adapter deactivation tests
Diffstat (limited to 'cpp/test/Ice/adapterDeactivation/Client.cpp')
-rw-r--r--cpp/test/Ice/adapterDeactivation/Client.cpp50
1 files changed, 50 insertions, 0 deletions
diff --git a/cpp/test/Ice/adapterDeactivation/Client.cpp b/cpp/test/Ice/adapterDeactivation/Client.cpp
new file mode 100644
index 00000000000..a0420bdcf95
--- /dev/null
+++ b/cpp/test/Ice/adapterDeactivation/Client.cpp
@@ -0,0 +1,50 @@
+// **********************************************************************
+//
+// Copyright (c) 2002
+// Mutable Realms, Inc.
+// Huntsville, AL, USA
+//
+// All Rights Reserved
+//
+// **********************************************************************
+
+#include <Ice/Application.h>
+#include <TestCommon.h>
+#include <Test.h>
+
+using namespace std;
+using namespace Ice;
+
+class TestServer : public Application
+{
+public:
+
+ virtual int run(int, char*[]);
+};
+
+int
+main(int argc, char* argv[])
+{
+ TestServer app;
+ return app.main(argc, argv);
+}
+
+int
+TestServer::run(int argc, char* argv[])
+{
+ TestPrx allTests(const CommunicatorPtr&);
+ TestPrx obj = allTests(communicator());
+
+ cout << "testing whether server is gone... " << flush;
+ try
+ {
+ obj->ice_ping();
+ test(false);
+ }
+ catch(const LocalException&)
+ {
+ cout << "ok" << endl;
+ }
+
+ return EXIT_SUCCESS;
+}