Skip to content

Commit

Permalink
remove test added in error
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/xmlbeans/trunk@1918536 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
pjfanning committed Jun 24, 2024
1 parent a3864e9 commit 65afdab
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static String pretty(XMLName name)
if (name == null)
return "null";

if (name.getNamespaceUri() == null || name.getNamespaceUri().isEmpty())
if (name.getNamespaceUri() == null || name.getNamespaceURI().isEmpty())
return name.getLocalName();

return name.getLocalName() + "@" + name.getNamespaceUri();
Expand Down Expand Up @@ -109,7 +109,7 @@ public static String hexsafe(String s)

public static String hexsafedir(XMLName name)
{
if (name.getNamespaceUri() == null || name.getNamespaceUri().isEmpty())
if (name.getNamespaceUri() == null || name.getNamespaceURI().isEmpty())
return "_nons/" + hexsafe(name.getLocalName());
return hexsafe(name.getNamespaceUri()) + "/" + hexsafe(name.getLocalName());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ protected void fillUpLocalElement(Element element, org.apache.xmlbeans.impl.xb.x
if (!element.isRef())
{
assert element.getName().getNamespaceURI().equals(tns) ||
element.getName().getNamespaceUri().isEmpty();
element.getName().getNamespaceURI().isEmpty();
fillUpTypeOnElement(element.getType(), localSElement, tns);
localSElement.setName(element.getName().getLocalPart());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ public int getRecovered() {
*/
private QName compatName(QName name, String chameleonNamespace) {
// first check for a chameleonNamespace namespace
if (name.getNamespaceUri().isEmpty() && chameleonNamespace != null && chameleonNamespace.length() > 0) {
if (name.getNamespaceURI().isEmpty() && chameleonNamespace != null && chameleonNamespace.length() > 0) {
name = new QName(chameleonNamespace, name.getLocalPart());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1387,7 +1387,7 @@ static SchemaLocalAttributeImpl translateAttribute(
state.error(XmlErrorCodes.NO_XSI, new Object[]{"http://www.w3.org/2001/XMLSchema-instance"}, xsdAttr.xgetName());
}

if (qname.getNamespaceUri().isEmpty() && qname.getLocalPart().equals("xmlns")) {
if (qname.getNamespaceURI().isEmpty() && qname.getLocalPart().equals("xmlns")) {
state.error(XmlErrorCodes.NO_XMLNS, null, xsdAttr.xgetName());
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/apache/xmlbeans/impl/store/Saver.java
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ private void processElement() {
// which has no namespace, then we must make sure that pushing
// the mappings causes the default namespace to be empty

boolean ensureDefaultEmpty = name.getNamespaceUri().isEmpty();
boolean ensureDefaultEmpty = name.getNamespaceURI().isEmpty();

pushMappings(_cur, ensureDefaultEmpty);

Expand Down
17 changes: 0 additions & 17 deletions src/test/java/compile/scomp/checkin/CompilationTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -313,23 +313,6 @@ void testPricequote() {
assertTrue(outputjar.exists(), "Cannot find " + outputjar);
}

@Test
void testScéimreSonraí() {
deltree(xbeanOutput("compile/scomp/scéimresonraí"));
// First, compile schema
File srcdir = xbeanOutput("compile/scomp/scéimresonraí/src");
File classesdir = xbeanOutput("compile/scomp/scéimresonraí/classes");
File outputjar = xbeanOutput("compile/scomp/scéimresonraí/scéimresonraí.jar");
Parameters params = new Parameters();
params.setXsdFiles(xbeanCase("ScéimreSonraí/scéimresonraí.xsd"));
params.setSrcDir(srcdir);
params.setClassesDir(classesdir);
params.setOutputJar(outputjar);
params.setVerbose(true);
assertTrue(SchemaCompiler.compile(params), "Build failed " + fwroot);
assertTrue(outputjar.exists(), "Cannot find " + outputjar);
}

@Test
void testBase64Binary() {
deltree(xbeanOutput("compile/scomp/base64Binary"));
Expand Down

This file was deleted.

0 comments on commit 65afdab

Please sign in to comment.