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

- minor

parent e929396e
Branches
No related tags found
No related merge requests found
Pipeline #3836 failed
...@@ -40,7 +40,7 @@ public class TestSLUBStoragePlugin { ...@@ -40,7 +40,7 @@ public class TestSLUBStoragePlugin {
@Before @Before
public void setUp() throws IOException { public void setUp() throws IOException {
testroot = Files.createTempDirectory("testslubstorage"); testroot = Files.createTempDirectory("testslubstorage");
Files.createFile(of(testroot.toAbsolutePath().toString() + "/foo")); Files.createFile(of(testroot.toAbsolutePath() + "/foo"));
mock = new SLUBStoragePlugin(); mock = new SLUBStoragePlugin();
HashMap<String, String> map = new HashMap<String,String> (); HashMap<String, String> map = new HashMap<String,String> ();
map.put("DIR_ROOT", testroot.toAbsolutePath().toString()); map.put("DIR_ROOT", testroot.toAbsolutePath().toString());
...@@ -74,7 +74,7 @@ public class TestSLUBStoragePlugin { ...@@ -74,7 +74,7 @@ public class TestSLUBStoragePlugin {
@Test @Test
public void getFullFilePath() { public void getFullFilePath() {
assertEquals( "getFullFilePath", testroot.toAbsolutePath().toString()+"/2022", mock.getFullFilePath("/2022")); assertEquals( "getFullFilePath", testroot.toAbsolutePath()+"/2022", mock.getFullFilePath("/2022"));
} }
@Test @Test
public void retrieveEntity() { public void retrieveEntity() {
...@@ -88,7 +88,7 @@ public class TestSLUBStoragePlugin { ...@@ -88,7 +88,7 @@ public class TestSLUBStoragePlugin {
@Test @Test
public void retrieveEntity_dirroot() { public void retrieveEntity_dirroot() {
try { try {
InputStream is = mock.retrieveEntity(testroot.toAbsolutePath().toString() + "/foo"); InputStream is = mock.retrieveEntity(testroot.toAbsolutePath() + "/foo");
assertTrue("retrieveEntity", true); assertTrue("retrieveEntity", true);
} catch (IllegalArgumentException e) { } catch (IllegalArgumentException e) {
assertEquals("retrieveEntity", "", e.getMessage()); 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