diff options
author | Marc Laukien <marc@zeroc.com> | 2004-04-07 00:13:35 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2004-04-07 00:13:35 +0000 |
commit | d702a6bd170669e2b959ae49b24224c72ab8f367 (patch) | |
tree | 0109385349191c72a45cb2c3860ace90f0702d18 /cpp/test/Ice/exceptions/AllTests.cpp | |
parent | facet changes (diff) | |
download | ice-d702a6bd170669e2b959ae49b24224c72ab8f367.tar.bz2 ice-d702a6bd170669e2b959ae49b24224c72ab8f367.tar.xz ice-d702a6bd170669e2b959ae49b24224c72ab8f367.zip |
facet changes
Diffstat (limited to 'cpp/test/Ice/exceptions/AllTests.cpp')
-rw-r--r-- | cpp/test/Ice/exceptions/AllTests.cpp | 57 |
1 files changed, 2 insertions, 55 deletions
diff --git a/cpp/test/Ice/exceptions/AllTests.cpp b/cpp/test/Ice/exceptions/AllTests.cpp index d4c67fc1bd5..56a993c18f9 100644 --- a/cpp/test/Ice/exceptions/AllTests.cpp +++ b/cpp/test/Ice/exceptions/AllTests.cpp @@ -156,8 +156,7 @@ public: } catch(const Ice::FacetNotExistException& ex) { - test(ex.facet.size() == 1); - test(ex.facet[0] == "no such facet"); + test(ex.facet == "no such facet"); } catch(...) { @@ -169,37 +168,6 @@ public: typedef IceUtil::Handle<AMI_Thrower_throwAasAFacetNotExistI> AMI_Thrower_throwAasAFacetNotExistIPtr; -class AMI_Thrower_throwAasAFacetNotExist2I : public AMI_Thrower_throwAasA, public CallbackBase -{ -public: - - virtual void ice_response() - { - test(false); - } - - virtual void ice_exception(const Ice::Exception& exc) - { - try - { - exc.ice_throw(); - } - catch(const Ice::FacetNotExistException& ex) - { - test(ex.facet.size() == 2); - test(ex.facet[0] == "no such facet"); - test(ex.facet[1] == "no such facet either"); - } - catch(...) - { - test(false); - } - called(); - } -}; - -typedef IceUtil::Handle<AMI_Thrower_throwAasAFacetNotExist2I> AMI_Thrower_throwAasAFacetNotExist2IPtr; - class AMI_Thrower_throwAorDasAorDI : public AMI_Thrower_throwAorDasAorD, public CallbackBase { public: @@ -1013,21 +981,7 @@ allTests(const Ice::CommunicatorPtr& communicator, bool collocated) } catch(const Ice::FacetNotExistException& ex) { - test(ex.facet.size() == 1); - test(ex.facet[0] == "no such facet"); - } - - ThrowerPrx thrower3 = ThrowerPrx::uncheckedCast(thrower2, "no such facet either"); - try - { - thrower3->ice_ping(); - test(false); - } - catch(const Ice::FacetNotExistException& ex) - { - test(ex.facet.size() == 2); - test(ex.facet[0] == "no such facet"); - test(ex.facet[1] == "no such facet either"); + test(ex.facet == "no such facet"); } } catch(...) @@ -1233,13 +1187,6 @@ allTests(const Ice::CommunicatorPtr& communicator, bool collocated) test(cb->check()); } - ThrowerPrx thrower3 = ThrowerPrx::uncheckedCast(thrower2, "no such facet either"); - { - AMI_Thrower_throwAasAFacetNotExist2IPtr cb = new AMI_Thrower_throwAasAFacetNotExist2I; - thrower3->throwAasA_async(cb, 1); - test(cb->check()); - } - cout << "ok" << endl; cout << "catching operation not exist exception with AMI... " << flush; |