You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by de...@apache.org on 2019/05/19 22:06:45 UTC
[sis] branch geoapi-4.0 updated: Fix typo and improve message.
This is an automated email from the ASF dual-hosted git repository.
desruisseaux pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git
The following commit(s) were added to refs/heads/geoapi-4.0 by this push:
new cd6a0b4 Fix typo and improve message.
cd6a0b4 is described below
commit cd6a0b402e773072fed0b4748f22ad92e06f6656
Author: Martin Desruisseaux <ma...@geomatys.com>
AuthorDate: Mon May 20 00:06:27 2019 +0200
Fix typo and improve message.
---
.../src/test/java/org/apache/sis/test/OptionalTestData.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/core/sis-utility/src/test/java/org/apache/sis/test/OptionalTestData.java b/core/sis-utility/src/test/java/org/apache/sis/test/OptionalTestData.java
index c322e0c..5abdad4 100644
--- a/core/sis-utility/src/test/java/org/apache/sis/test/OptionalTestData.java
+++ b/core/sis-utility/src/test/java/org/apache/sis/test/OptionalTestData.java
@@ -82,7 +82,7 @@ public enum OptionalTestData {
}
/**
- * Returns the path to the test file if {@code $IS_DATA} is defined an the file exists, or {@code null} otherwise.
+ * Returns the path to the test file if {@code $SIS_DATA} is defined an the file exists, or {@code null} otherwise.
*
* @return path to the test file, or {@code null} if none.
*/
@@ -107,7 +107,7 @@ public enum OptionalTestData {
*/
public InputStream open() throws IOException {
final Path path = path();
- assumeNotNull(name(), path);
+ assumeNotNull("File “$SIS_DATA/Tests/" + filename + "” has not been found.", path);
return Files.newInputStream(path);
}