ws-scout-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tcunn...@apache.org
Subject svn commit: r798564 - /webservices/scout/branches/scout-1.1/src/test/java/org/apache/ws/scout/registry/BusinessQueryManager2Test.java
Date Tue, 28 Jul 2009 15:35:32 GMT
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: scout-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: scout-dev-help@ws.apache.org


Mime
View raw message