Skip to content
Snippets Groups Projects
Commit c3381398 authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- minor

parent e929396e
Branches
Tags
No related merge requests found
Pipeline #3836 failed
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment