Skip to content

Commit a7b49d6

Browse files
thscthsc
authored andcommitted
chunkreader can be openend with empty root folder - asp3engine not!
1 parent 29a9615 commit a7b49d6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/BasicTests.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ private void removeDirectory(String dirname) {
5050

5151
@Test
5252
public void usage() throws IOException, ASP3Exception, InterruptedException {
53-
54-
5553
// create folder
5654
this.removeDirectory(ALICE_FOLDER); // clean previous version before
5755
File folder = new File(ALICE_FOLDER);
@@ -64,13 +62,13 @@ public void usage() throws IOException, ASP3Exception, InterruptedException {
6462
TestReader aliceReader = new TestReader("Alice");
6563
TestReader bobReader = new TestReader("Bob");
6664

67-
ASP3ChunkStorage aliceWriter = ASP3EngineFS.getASP3Engine("Alice", ALICE_FOLDER, aliceReader);
65+
ASP3ChunkStorage aliceWriter = ASP3EngineFS.getASP3ChunkStorage("Alice", ALICE_FOLDER);
6866

6967
String messageAlice2Bob = "hallo Bob";
7068
aliceWriter.add(ALICE_BOB_CHAT_URL, messageAlice2Bob);
7169

7270

73-
ASP3ChunkStorage bobWriter = ASP3EngineFS.getASP3Engine("Bob", BOB_FOLDER, bobReader);
71+
ASP3ChunkStorage bobWriter = ASP3EngineFS.getASP3ChunkStorage("Bob", BOB_FOLDER);
7472

7573
String messageBob2Alice = "hi Alice";
7674
bobWriter.add(ALICE_BOB_CHAT_URL, messageBob2Alice);

0 commit comments

Comments
 (0)