Author: ulhasbhole
Date: Tue Sep 4 09:33:31 2007
New Revision: 572730
URL: http://svn.apache.org/viewvc?rev=572730&view=rev
Log:
* Applied patch for CXF-771 on behalf of Sergey Beryozkin relateed to WS-Policy.
Modified:
incubator/cxf/trunk/api/pom.xml
incubator/cxf/trunk/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/PolicyEngineTest.java
Modified: incubator/cxf/trunk/api/pom.xml
URL:
http://svn.apache.org/viewvc/incubator/cxf/trunk/api/pom.xml?rev=572730&r1=572729&r2=572730&view=diff
==============================================================================
--- incubator/cxf/trunk/api/pom.xml (original)
+++ incubator/cxf/trunk/api/pom.xml Tue Sep 4 09:33:31 2007
@@ -78,8 +78,9 @@
<artifactId>wstx-asl</artifactId>
</dependency>
<dependency>
- <groupId>org.apache.ws.commons.neethi</groupId>
+ <groupId>org.apache.neethi</groupId>
<artifactId>neethi</artifactId>
+ <version>2.0.2</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
Modified:
incubator/cxf/trunk/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/PolicyEngineTest.java
URL:
http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/PolicyEngineTest.java?rev=572730&r1=572729&r2=572730&view=diff
==============================================================================
---
incubator/cxf/trunk/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/PolicyEngineTest.java
(original)
+++
incubator/cxf/trunk/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/PolicyEngineTest.java
Tue Sep 4 09:33:31 2007
@@ -632,10 +632,14 @@
Policy p = new Policy();
a = new PrimitiveAssertion(new QName("http://x.y.z", "a"));
p.addAssertion(a);
- PolicyReference pr = new PolicyReference();
- pr.setURI("a#b");
- engine.getRegistry().register("a#b", p);
+ // id has no #
+ engine.getRegistry().register("ab", p);
+
+ // local reference is an id + #
+ PolicyReference pr = new PolicyReference();
+ pr.setURI("#ab");
+
engine.addAssertions(pr, false, assertions);
assertEquals(1, assertions.size());
assertSame(a, assertions.iterator().next());