summaryrefslogtreecommitdiff
path: root/js/test/Ice/exceptions/Client.js
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2014-07-10 16:51:36 -0400
committerBernard Normier <bernard@zeroc.com>2014-07-10 16:51:36 -0400
commit7f767642e79e2775a958781011f13e3d1710c7bd (patch)
treefdb3eb1f826305d0bf3dd659d70c3930001f80c0 /js/test/Ice/exceptions/Client.js
parentICE-5573 - .NET TimeoutException ignores Dispatcher (diff)
downloadice-7f767642e79e2775a958781011f13e3d1710c7bd.tar.bz2
ice-7f767642e79e2775a958781011f13e3d1710c7bd.tar.xz
ice-7f767642e79e2775a958781011f13e3d1710c7bd.zip
Fixed ICE-5379, Object Adapter should reject null servant, in C++, Java, C# and JS
Diffstat (limited to 'js/test/Ice/exceptions/Client.js')
-rw-r--r--js/test/Ice/exceptions/Client.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/js/test/Ice/exceptions/Client.js b/js/test/Ice/exceptions/Client.js
index 9d61f846dcd..6034cedb0a4 100644
--- a/js/test/Ice/exceptions/Client.js
+++ b/js/test/Ice/exceptions/Client.js
@@ -177,6 +177,25 @@
{
test(ex instanceof Ice.AlreadyRegisteredException);
}
+ try
+ {
+ adapter.add(obj, communicator.stringToIdentity(""));
+ test(false);
+ }
+ catch(ex)
+ {
+ test(ex instanceof Ice.IllegalIdentityException);
+ test(ex.id.name == "");
+ }
+ try
+ {
+ adapter.add(null, communicator.stringToIdentity("x"));
+ test(false);
+ }
+ catch(ex)
+ {
+ test(ex instanceof Ice.IllegalServantException);
+ }
adapter.remove(communicator.stringToIdentity("x"));
try