summaryrefslogtreecommitdiff
path: root/cpp/test/IceGrid/allocation/AllTests.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2006-05-09 09:59:37 +0000
committerBenoit Foucher <benoit@zeroc.com>2006-05-09 09:59:37 +0000
commit754eac4c3527879ebf43fcd38a9970c0e735e00d (patch)
treee6ce1c6aab5402f0e0acf046ed841738bc95627b /cpp/test/IceGrid/allocation/AllTests.cpp
parentSimplified Application view; fixed PropertySets issues (diff)
downloadice-754eac4c3527879ebf43fcd38a9970c0e735e00d.tar.bz2
ice-754eac4c3527879ebf43fcd38a9970c0e735e00d.tar.xz
ice-754eac4c3527879ebf43fcd38a9970c0e735e00d.zip
Fixed allocateByType bug, fixed TODO XXX
Diffstat (limited to 'cpp/test/IceGrid/allocation/AllTests.cpp')
-rw-r--r--cpp/test/IceGrid/allocation/AllTests.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/cpp/test/IceGrid/allocation/AllTests.cpp b/cpp/test/IceGrid/allocation/AllTests.cpp
index abd833962cc..600aa967ec5 100644
--- a/cpp/test/IceGrid/allocation/AllTests.cpp
+++ b/cpp/test/IceGrid/allocation/AllTests.cpp
@@ -494,6 +494,33 @@ allTests(const Ice::CommunicatorPtr& communicator)
session1->setAllocationTimeout(0);
session2->setAllocationTimeout(0);
+
+ try
+ {
+ obj = session1->allocateObjectByType("::Unknown");
+ test(false);
+ }
+ catch(const AllocationTimeoutException&)
+ {
+ test(false);
+ }
+ catch(const AllocationException&)
+ {
+ }
+
+ try
+ {
+ obj = session1->allocateObjectByType("::NotAllocatable");
+ test(false);
+ }
+ catch(const AllocationTimeoutException&)
+ {
+ test(false);
+ }
+ catch(const AllocationException&)
+ {
+ }
+
obj = session1->allocateObjectByType("::Test");
test(obj && obj->ice_getIdentity().name == "allocatable");
try