Skip to content

Commit

Permalink
add assert
Browse files Browse the repository at this point in the history
  • Loading branch information
yl187661 committed Jan 10, 2019
1 parent a18645f commit 7c9eb0a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.util.stream.Collectors;

import org.apache.arrow.plasma.exceptions.DuplicateObjectException;
import org.junit.Assert;

public class PlasmaClientTest {

Expand Down Expand Up @@ -146,6 +147,7 @@ public void doTest() {
System.out.println("Plasma java client get multi-object test success.");
try {
pLink.put(id1, value1, null);
Assert.fail("Fail to throw DuplicateObjectException when put an object into plasma store twice.");
} catch (DuplicateObjectException e) {
System.out.println("Plasma java client put same object twice exception test success.");
}
Expand Down

0 comments on commit 7c9eb0a

Please sign in to comment.