Skip to content

Commit

Permalink
fix test installScriptsFromResourceFolder (win) (#1433)
Browse files Browse the repository at this point in the history
* fix test (win)

Signed-off-by: qGYdXbY2 <[email protected]>

* fix test testValidateIntersectsWithAntimeridian()

Signed-off-by: qGYdXbY2 <[email protected]>

---------

Signed-off-by: qGYdXbY2 <[email protected]>
  • Loading branch information
qGYdXbY2 authored Jan 21, 2025
1 parent 818edf2 commit f3f914e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public CompilationStepGraph compile(Job job) {
job.getId(),
((DatasetDescription.Space<?>) job.getSource()).getFilters(),
((DatasetDescription.Space<?>) job.getSource()).getVersionRef(),
"Space" );
"space" );

}
}
2 changes: 1 addition & 1 deletion xyz-util/src/main/java/com/here/xyz/util/db/pg/Script.java
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ private static List<String> scanResourceFolder(ScriptResourcePath scriptResource
files.add(file);
return ensureInitScriptIsFirst(files.stream()
.filter(fileName -> fileName.endsWith(fileSuffix))
.map(fileName -> resourceFolder + File.separator + fileName)
.map(fileName -> resourceFolder + "/" + fileName) // script.scriptResourcePath always stored as unix path
.toList(), scriptResourcePath.initScript());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public void testValidateNullGeometry(){
@Test
public void testValidateIntersectsWithAntimeridian() throws InvalidGeometryException {
LineStringCoordinates coordinates = new LineStringCoordinates();
coordinates.add(new Position(0, 0));
coordinates.add(new Position(0, 1));
coordinates.add(new Position(179.999999, 0));
coordinates.add(new Position(179.999999, 1));

//Geometry filter intersects with anti meridian!
Assertions.assertThrows(GeometryException.class, () -> GeometryValidator.validateGeometry(new LineString().withCoordinates(coordinates), 100));
Expand Down

0 comments on commit f3f914e

Please sign in to comment.