This is an automated email from the ASF dual-hosted git repository. rec pushed a commit to branch bugfix/303-Build-fails-on-Windows-if-namespace-contains-whitespace in repository https://gitbox.apache.org/repos/asf/uima-uimaj.git
commit a5a8e915521d2109660bb58ffd80152b16db3167 Author: Richard Eckart de Castilho <[email protected]> AuthorDate: Fri Feb 17 11:17:24 2023 +0100 Issue #303: Build fails on Windows if namespace contains whitespace - Try using deprecated non-escaping toURL() because it seems that might be what the tested code is using internally as well --- .../apache/uima/resource/metadata/impl/ImportResolverTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/uimaj-core/src/test/java/org/apache/uima/resource/metadata/impl/ImportResolverTest.java b/uimaj-core/src/test/java/org/apache/uima/resource/metadata/impl/ImportResolverTest.java index 766edf787..5dd304fcf 100644 --- a/uimaj-core/src/test/java/org/apache/uima/resource/metadata/impl/ImportResolverTest.java +++ b/uimaj-core/src/test/java/org/apache/uima/resource/metadata/impl/ImportResolverTest.java @@ -101,10 +101,10 @@ public class ImportResolverTest { assertThat(ts.getTypes()).as("Type count after resolving the descriptor").hasSize(3); assertThat(ts.getImports()).hasSize(0); - String typeSystem2 = new File(descriptor.getParent(), "Transitive-with-3-nodes-2.xml").toURI() - .toURL().toString(); - String typeSystem3 = new File(descriptor.getParent(), "Transitive-with-3-nodes-3.xml").toURI() - .toURL().toString(); + String typeSystem2 = new File(descriptor.getParent(), "Transitive-with-3-nodes-2.xml").toURL() + .toString(); + String typeSystem3 = new File(descriptor.getParent(), "Transitive-with-3-nodes-3.xml").toURL() + .toString(); Map<String, XMLizable> cache = resMgr.getImportCache(); assertThat(cache).containsOnlyKeys(typeSystem2, typeSystem3);
