reta commented on code in PR #1978:
URL: https://github.com/apache/cxf/pull/1978#discussion_r1695631017
##########
services/sts/sts-core/src/test/java/org/apache/cxf/sts/operation/ValidateJWTTransformationTest.java:
##########
@@ -206,7 +206,9 @@ public void testJWTToSAMLTransformationRealm() throws
Exception {
TokenProviderResponse providerResponse = createJWT();
Element wrapper =
createTokenWrapper((String)providerResponse.getToken());
Document doc = wrapper.getOwnerDocument();
- wrapper = (Element)doc.appendChild(wrapper);
+ if (doc.getDocumentElement() == null) {
Review Comment:
@kaiyaok2 this change is a bit suspicious, why the document element will be
null here?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]