Skip to content

Commit

Permalink
add invocation of createNameTest3 test from servlet.
Browse files Browse the repository at this point in the history
Signed-off-by: gurunrao <gurunandan.rao@oracle.com>
  • Loading branch information
gurunrao authored and scottmarlow committed Feb 16, 2022
1 parent 7c9c795 commit 48a128b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, 2021 Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2007, 2022 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
Expand Down Expand Up @@ -113,6 +113,9 @@ private void dispatch(HttpServletRequest req, HttpServletResponse res)
} else if (testname.equals("createNameTest2")) {
TestUtil.logMsg("Starting createNameTest2");
createNameTest2(req, res);
} else if (testname.equals("createNameTest3")) {
TestUtil.logMsg("Starting createNameTest3");
createNameTest3(req, res);
} else {
throw new ServletException(
"The testname '" + testname + "' was not found in the test servlet");
Expand Down Expand Up @@ -446,7 +449,7 @@ private void createNameTest2(HttpServletRequest req, HttpServletResponse res)
resultProps.list(out);
}

private void createNameTest3(HttpServletRequest req, HttpServletResponse res)
private void createNameTest3(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
TestUtil.logTrace("createNameTest3");
Properties resultProps = new Properties();
Expand All @@ -465,10 +468,8 @@ private void createNameTest3(HttpServletRequest req, HttpServletResponse res)
pass = false;
} else {
String localName = name.getLocalName();
String prefix = name.getPrefix();
String uri = name.getURI();
TestUtil.logMsg("localName=" + localName);
TestUtil.logMsg("prefix=" + prefix);
TestUtil.logMsg("uri=" + uri);
if (localName == null) {
TestUtil.logErr("localName is null (expected MyName1)");
Expand Down
@@ -1,5 +1,5 @@
#Signature file v4.1
#Version 1.0
#Version 3.0

CLSS public abstract jakarta.xml.soap.AttachmentPart
cons public init()
Expand Down

0 comments on commit 48a128b

Please sign in to comment.