From c3381398d0a004a536b81502cff2839c6f2f09de Mon Sep 17 00:00:00 2001
From: Andreas Romeyke <andreas.romeyke@slub-dresden.de>
Date: Wed, 5 Apr 2023 14:14:55 +0200
Subject: [PATCH] - minor

---
 .../plugin/storage/nfs/TestSLUBStoragePlugin.java           | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/java/org/slub/rosetta/dps/repository/plugin/storage/nfs/TestSLUBStoragePlugin.java b/java/org/slub/rosetta/dps/repository/plugin/storage/nfs/TestSLUBStoragePlugin.java
index e585d40..2a69a87 100644
--- a/java/org/slub/rosetta/dps/repository/plugin/storage/nfs/TestSLUBStoragePlugin.java
+++ b/java/org/slub/rosetta/dps/repository/plugin/storage/nfs/TestSLUBStoragePlugin.java
@@ -40,7 +40,7 @@ public class TestSLUBStoragePlugin {
   @Before
   public void setUp() throws IOException {
     testroot = Files.createTempDirectory("testslubstorage");
-    Files.createFile(of(testroot.toAbsolutePath().toString() + "/foo"));
+    Files.createFile(of(testroot.toAbsolutePath() + "/foo"));
     mock = new SLUBStoragePlugin();
     HashMap<String, String> map = new HashMap<String,String> ();
     map.put("DIR_ROOT", testroot.toAbsolutePath().toString());
@@ -74,7 +74,7 @@ public class TestSLUBStoragePlugin {
 
   @Test
   public void getFullFilePath() {
-    assertEquals( "getFullFilePath", testroot.toAbsolutePath().toString()+"/2022", mock.getFullFilePath("/2022"));
+    assertEquals( "getFullFilePath", testroot.toAbsolutePath()+"/2022", mock.getFullFilePath("/2022"));
   }
   @Test
   public void retrieveEntity() {
@@ -88,7 +88,7 @@ public class TestSLUBStoragePlugin {
   @Test
   public void retrieveEntity_dirroot() {
     try {
-      InputStream is = mock.retrieveEntity(testroot.toAbsolutePath().toString() + "/foo");
+      InputStream is = mock.retrieveEntity(testroot.toAbsolutePath() + "/foo");
       assertTrue("retrieveEntity", true);
     } catch (IllegalArgumentException e) {
       assertEquals("retrieveEntity", "", e.getMessage());
-- 
GitLab