diff options
author | Michi Henning <michi@zeroc.com> | 2003-05-21 00:38:14 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2003-05-21 00:38:14 +0000 |
commit | d199514de764836c345483427f067afbb80bf4dd (patch) | |
tree | 0c1518021bfe5cd5349307dfbd6e10108be2a1a3 /cpp | |
parent | Fixed incorrect code generation for Patcher constructor for dictionaries (diff) | |
download | ice-d199514de764836c345483427f067afbb80bf4dd.tar.bz2 ice-d199514de764836c345483427f067afbb80bf4dd.tar.xz ice-d199514de764836c345483427f067afbb80bf4dd.zip |
Fixed exception slicing tests for icej to properly segregate client and
server. Added additional tests to ice and icej exception slicing tests
to make sure that the received exception instance is indeed sliced by
checking ice_name().
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/test/Ice/slicing/exceptions/AllTests.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cpp/test/Ice/slicing/exceptions/AllTests.cpp b/cpp/test/Ice/slicing/exceptions/AllTests.cpp index 83142e8139c..6aa4269054b 100644 --- a/cpp/test/Ice/slicing/exceptions/AllTests.cpp +++ b/cpp/test/Ice/slicing/exceptions/AllTests.cpp @@ -34,6 +34,7 @@ allTests(const Ice::CommunicatorPtr& communicator) catch(const Base& b) { test(b.b == "Base.b"); + test(b.ice_name() == "Base"); gotException = true; } catch(...) @@ -54,6 +55,7 @@ allTests(const Ice::CommunicatorPtr& communicator) catch(const Base& b) { test(b.b == "UnknownDerived.b"); + test(b.ice_name() == "Base"); gotException = true; } catch(...) @@ -75,6 +77,7 @@ allTests(const Ice::CommunicatorPtr& communicator) { test(k.b == "KnownDerived.b"); test(k.kd == "KnownDerived.kd"); + test(k.ice_name() == "KnownDerived"); gotException = true; } catch(...) @@ -96,6 +99,7 @@ allTests(const Ice::CommunicatorPtr& communicator) { test(k.b == "KnownDerived.b"); test(k.kd == "KnownDerived.kd"); + test(k.ice_name() == "KnownDerived"); gotException = true; } catch(...) @@ -116,6 +120,7 @@ allTests(const Ice::CommunicatorPtr& communicator) catch(const Base& b) { test(b.b == "UnknownIntermediate.b"); + test(b.ice_name() == "Base"); gotException = true; } catch(...) @@ -137,6 +142,7 @@ allTests(const Ice::CommunicatorPtr& communicator) { test(ki.b == "KnownIntermediate.b"); test(ki.ki == "KnownIntermediate.ki"); + test(ki.ice_name() == "KnownIntermediate"); gotException = true; } catch(...) @@ -159,6 +165,7 @@ allTests(const Ice::CommunicatorPtr& communicator) test(kmd.b == "KnownMostDerived.b"); test(kmd.ki == "KnownMostDerived.ki"); test(kmd.kmd == "KnownMostDerived.kmd"); + test(kmd.ice_name() == "KnownMostDerived"); gotException = true; } catch(...) @@ -180,6 +187,7 @@ allTests(const Ice::CommunicatorPtr& communicator) { test(ki.b == "KnownIntermediate.b"); test(ki.ki == "KnownIntermediate.ki"); + test(ki.ice_name() == "KnownIntermediate"); gotException = true; } catch(...) @@ -202,6 +210,7 @@ allTests(const Ice::CommunicatorPtr& communicator) test(kmd.b == "KnownMostDerived.b"); test(kmd.ki == "KnownMostDerived.ki"); test(kmd.kmd == "KnownMostDerived.kmd"); + test(kmd.ice_name() == "KnownMostDerived"); gotException = true; } catch(...) @@ -224,6 +233,7 @@ allTests(const Ice::CommunicatorPtr& communicator) test(kmd.b == "KnownMostDerived.b"); test(kmd.ki == "KnownMostDerived.ki"); test(kmd.kmd == "KnownMostDerived.kmd"); + test(kmd.ice_name() == "KnownMostDerived"); gotException = true; } catch(...) @@ -245,6 +255,7 @@ allTests(const Ice::CommunicatorPtr& communicator) { test(ki.b == "UnknownMostDerived1.b"); test(ki.ki == "UnknownMostDerived1.ki"); + test(ki.ice_name() == "KnownIntermediate"); gotException = true; } catch(...) @@ -267,6 +278,7 @@ allTests(const Ice::CommunicatorPtr& communicator) { test(ki.b == "UnknownMostDerived1.b"); test(ki.ki == "UnknownMostDerived1.ki"); + test(ki.ice_name() == "KnownIntermediate"); gotException = true; } catch(...) @@ -287,6 +299,7 @@ allTests(const Ice::CommunicatorPtr& communicator) catch(const Base& b) { test(b.b == "UnknownMostDerived2.b"); + test(b.ice_name() == "Base"); gotException = true; } catch(...) |