Skip to content

Commit

Permalink
Add test insert with TTL and callback
Browse files Browse the repository at this point in the history
  • Loading branch information
furlaneto committed Feb 13, 2018
1 parent 980425c commit 88a8eaa
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -82,6 +82,11 @@ public void ShouldThrowExceptionWhenInsertWithTTL() {
assertThrows(UnsupportedOperationException.class, () -> entityManagerAsync.insert(getEntity(), Duration.ZERO));
}

@Test
public void ShouldThrowExceptionWhenInsertWithTTLAndCallback() {
assertThrows(UnsupportedOperationException.class, () -> entityManagerAsync.insert(getEntity(), Duration.ZERO, (d) -> {}));
}

@Test
public void shouldUpdateAsync() {
DocumentEntity entity = getEntity();
Expand Down

0 comments on commit 88a8eaa

Please sign in to comment.