Author: tcunning
Date: Tue Jul 28 15:35:32 2009
New Revision: 798564

URL: http://svn.apache.org/viewvc?rev=798564&view=rev
Log:
SCOUT-85
Change exceptions so that we ignore the expected UnsupportedCapabilityException.

Modified:
    
webservices/scout/branches/scout-1.1/src/test/java/org/apache/ws/scout/registry/BusinessQueryManager2Test.java

Modified: 
webservices/scout/branches/scout-1.1/src/test/java/org/apache/ws/scout/registry/BusinessQueryManager2Test.java
URL: 
http://svn.apache.org/viewvc/webservices/scout/branches/scout-1.1/src/test/java/org/apache/ws/scout/registry/BusinessQueryManager2Test.java?rev=798564&r1=798563&r2=798564&view=diff
==============================================================================
--- 
webservices/scout/branches/scout-1.1/src/test/java/org/apache/ws/scout/registry/BusinessQueryManager2Test.java
 (original)
+++ 
webservices/scout/branches/scout-1.1/src/test/java/org/apache/ws/scout/registry/BusinessQueryManager2Test.java
 Tue Jul 28 15:35:32 2009
@@ -20,6 +20,8 @@
 import javax.xml.registry.infomodel.Key;
 import javax.xml.registry.infomodel.Organization;
 import javax.xml.registry.infomodel.RegistryPackage;
+import javax.xml.registry.UnsupportedCapabilityException;
+
 
 import org.apache.ws.scout.BaseTestCase;
 import org.junit.After;
@@ -210,7 +212,7 @@
                
                ArrayList classifications = new ArrayList();
                classifications.add(type);
-               
+
                BulkResponse br = bqm.findRegistryPackages(null, namePatterns, 
classifications, null);
                fail("findRegistryPackages is currently unsupported");
                
@@ -231,8 +233,10 @@
                assertEquals(null, br.getExceptions());
                assertEquals(br.getCollection(), 1);
         
-        } catch (JAXRException e) {
-               e.printStackTrace();
-               }                               
+        } catch (UnsupportedCapabilityException e) {
+               // We expect to fail here - findRegistryPackages is unsupported
+               } catch (Exception e) {
+                       fail ("Got exception : " + e.toString());
+               }
        }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to