@Test public void shouldCreatePathWithData() throws Exception { // Given createCommand.data = "node data"; // When createCommand.doExecute(curator); // Then verify(createBuilder).forPath(createCommand.path, createCommand.data.getBytes()); }
@Test public void shouldCreateRecursivePathWithData() throws Exception { // Given createCommand.recursive = true; createCommand.data = "node data"; // When createCommand.doExecute(curator); // Then verify(createBuilder).creatingParentsIfNeeded(); verify(createBuilder).forPath(createCommand.path, createCommand.data.getBytes()); }