diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-05-09 09:59:37 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-05-09 09:59:37 +0000 |
commit | 754eac4c3527879ebf43fcd38a9970c0e735e00d (patch) | |
tree | e6ce1c6aab5402f0e0acf046ed841738bc95627b /cpp/test/IceGrid/allocation/AllTests.cpp | |
parent | Simplified Application view; fixed PropertySets issues (diff) | |
download | ice-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.cpp | 27 |
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 |