[PIE-1531] Allow whitespace in file paths loaded from resources directory (#1329)

* [PIE-1531] Allow whitespace in file paths loaded from resources directory.

* replace Resources.getResource call

* Update LocalPermissioningConfigurationValidatorTest.java

* Update RpcAuthFileValidatorTest.java

* fix paths

* Update SmartContractNodePermissioningAcceptanceTestBase.java

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
This commit is contained in:
Abdelhamid Bakhta
2019-04-24 19:15:05 +02:00
committed by GitHub
parent b5c5fb9e2a
commit 48c51ac78d
19 changed files with 75 additions and 73 deletions

View File

@@ -34,7 +34,7 @@ public final class BlockTestUtil {
try {
Files.write(
target,
Resources.toByteArray(Resources.getResource("1000.blocks")),
Resources.toByteArray(BlockTestUtil.class.getResource("/1000.blocks")),
StandardOpenOption.CREATE,
StandardOpenOption.TRUNCATE_EXISTING);
} catch (final IOException ex) {