mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 18:14:26 +00:00
Use platform file separator in SimpleMapConverterTest instead of '/'
This commit is contained in:
@@ -112,8 +112,12 @@ public class SimpleMapConverterTest {
|
|||||||
IllegalArgumentException exception = assertThrows(IllegalArgumentException.class,
|
IllegalArgumentException exception = assertThrows(IllegalArgumentException.class,
|
||||||
() -> simpleMapConverter.init());
|
() -> simpleMapConverter.init());
|
||||||
|
|
||||||
|
// Get path separator used for this platform (eg. / for Linux, \ for Windows)
|
||||||
|
String separator = File.separator;
|
||||||
|
|
||||||
assertThat(exception.getMessage(),
|
assertThat(exception.getMessage(),
|
||||||
is("An error occurs parsing " + dspaceDir.getAbsolutePath() + "/config/crosswalks/test.properties"));
|
is("An error occurs parsing " + dspaceDir.getAbsolutePath() + separator + "config" + separator
|
||||||
|
+ "crosswalks" + separator + "test.properties"));
|
||||||
|
|
||||||
Throwable cause = exception.getCause();
|
Throwable cause = exception.getCause();
|
||||||
assertThat(cause, notNullValue());
|
assertThat(cause, notNullValue());
|
||||||
|
Reference in New Issue
Block a user