Skip to content

Commit

Permalink
Issue #303: Build fails on Windows if namespace contains whitespace
Browse files Browse the repository at this point in the history
- Try using deprecated non-escaping toURL() because it seems that  might be what the tested code is using internally as well
  • Loading branch information
reckart committed Feb 17, 2023
1 parent 4b19991 commit 0440da9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,13 @@ public void testResolveImports() throws Exception {

String typeSystemImportedByLocation = new File(
"target/test-classes/TypeSystemDescriptionImplTest/TypeSystemImportedByLocation.xml")
.toURI().toURL().toString();
.toURL().toString();
String typeSystemImportedFromDataPath = new File(
"target/test-classes/TypeSystemDescriptionImplTest/dataPathDir/TypeSystemImportedFromDataPath.xml")
.toURI().toURL().toString();
.toURL().toString();
String typeSystemImportedByName = new File(
"target/test-classes/org/apache/uima/resource/metadata/impl/TypeSystemImportedByName.xml")
.toURI().toURL().toString();
.toURL().toString();

Map<String, XMLizable> cache = resMgr.getImportCache();
assertThat(cache).containsOnlyKeys(typeSystemImportedByLocation, typeSystemImportedByName,
Expand Down

0 comments on commit 0440da9

Please sign in to comment.