diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-02-24 23:17:59 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-02-24 23:17:59 +0000 |
commit | dbed306fd58a4007be3df458e571bf4fd4302dce (patch) | |
tree | 5705f720d547fe3681829e2fa1337f3eef18174e /java/sca/modules/extensibility/src/test | |
parent | 2ee5c99d377a56d012604d5886df5b35142d4237 (diff) |
A more complete fix for TUSCANY-2869
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@747607 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/extensibility/src/test')
-rw-r--r-- | java/sca/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscovererTestCase.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/java/sca/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscovererTestCase.java b/java/sca/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscovererTestCase.java index 288c759a18..cfab64bef7 100644 --- a/java/sca/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscovererTestCase.java +++ b/java/sca/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscovererTestCase.java @@ -59,6 +59,16 @@ public class ContextClassLoaderServiceDiscovererTestCase { descriptor = discover.getFirstServiceDeclaration("notthere"); Assert.assertNull(descriptor); } + + @Test + public void testXPathFactory() { + Set<ServiceDeclaration> discriptors = discover.getServiceDeclarations("javax.xml.xpath.XPathFactory"); + if (!discriptors.isEmpty()) { + ServiceDeclaration d = discriptors.iterator().next(); + Assert.assertNotNull(d.getClassName()); + Assert.assertTrue(d.getAttributes().containsKey("class")); + } + } /** |