directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r160797 - directory/naming/trunk/naming-core/src/test/org/apache/naming/SelectorContextTest.java
Date Sun, 10 Apr 2005 18:51:42 GMT
Author: psteitz
Date: Sun Apr 10 11:51:42 2005
New Revision: 160797

URL: http://svn.apache.org/viewcvs?view=rev&rev=160797
Log:
Add missing fail stmnts, java:/comp failure.

Modified:
    directory/naming/trunk/naming-core/src/test/org/apache/naming/SelectorContextTest.java

Modified: directory/naming/trunk/naming-core/src/test/org/apache/naming/SelectorContextTest.java
URL: http://svn.apache.org/viewcvs/directory/naming/trunk/naming-core/src/test/org/apache/naming/SelectorContextTest.java?view=diff&r1=160796&r2=160797
==============================================================================
--- directory/naming/trunk/naming-core/src/test/org/apache/naming/SelectorContextTest.java
(original)
+++ directory/naming/trunk/naming-core/src/test/org/apache/naming/SelectorContextTest.java
Sun Apr 10 11:51:42 2005
@@ -58,11 +58,19 @@
     public void testParseName() throws Exception {
         try {
             initialContext.lookup("java:x");
+            fail("expecting NameNotFoundException");
         } catch (NameNotFoundException ex) {
             // expected 
         }
         try {
             initialContext.lookup("hava:x");
+            fail("expecting NamingException");
+        } catch (NamingException ex) {
+            // expected 
+        }     
+        try {
+            initialContext.lookup("java:/comp/env");
+            fail("expecting NamingException");
         } catch (NamingException ex) {
             // expected 
         }     



Mime
View raw message