Skip to content

Commit 4e74a10

Browse files
1 parent fa003ed commit 4e74a10

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

bookkeeper-server/src/test/java/org/apache/bookkeeper/tests/BookieTest.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,24 @@ public void cleanUp() {
6464
conf.clear();
6565
}
6666

67+
@Test
68+
public void test() throws IOException, BookieException, InterruptedException {
69+
System.out.println("----------- ADD -----------");
70+
System.out.println("Entry: " + entry);
71+
System.out.println("Ack Before Sync: " + ackBeforeSync);
72+
System.out.println("Write Callback: " + cb);
73+
System.out.println("CTX: " + ctx);
74+
System.out.println("Master Key: " + masterKey);
75+
System.out.println("PRIMA: " + bookie.getTotalFreeSpace());
76+
System.out.println("TOT: " + bookie.getTotalDiskSpace());
77+
78+
bookie.addEntry(entry, ackBeforeSync, cb, ctx, masterKey);
79+
80+
System.out.println("DOPO: " + bookie.getTotalFreeSpace());
81+
82+
assertEquals(2,2);
83+
}
84+
6785
@Test
6886
public void testAddAndRead() throws IOException, BookieException, InterruptedException {
6987
System.out.println("----------- ADD -----------");

0 commit comments

Comments
 (0)