Skip to content

Commit

Permalink
Implement deletePrimitive method for mock primitive registry in Raft …
Browse files Browse the repository at this point in the history
…test.
  • Loading branch information
kuujo committed Aug 15, 2018
1 parent 3a35842 commit 0884b1c
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -1332,6 +1332,7 @@ private TestPrimitive createPrimitive(RaftClient client, ReadConsistency consist
(key, partitions) -> partitions.get(0));
PrimitiveRegistry registry = mock(PrimitiveRegistry.class);
when(registry.createPrimitive(any(String.class), any(PrimitiveType.class))).thenReturn(CompletableFuture.completedFuture(new PrimitiveInfo("raft-test", TestPrimitiveType.INSTANCE)));
when(registry.deletePrimitive(any(String.class))).thenReturn(CompletableFuture.completedFuture(null));
return new TestPrimitiveImpl(proxy, registry);
}

Expand Down

0 comments on commit 0884b1c

Please sign in to comment.