Skip to content

Commit

Permalink
GH-882 - Use a more unique bookmark separator.
Browse files Browse the repository at this point in the history
  • Loading branch information
meistermeier committed Jul 22, 2021
1 parent 57d34f5 commit 962edfc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
*/
public class BoltTransaction extends AbstractTransaction {

public static final String BOOKMARK_SEPARATOR = "BS";
public static final String BOOKMARK_SEPARATOR = "/_BS_/";
private static final String NEO_CLIENT_ERROR_SECURITY = "Neo.ClientError.Security";
private final Transaction nativeTransaction;
private final Session nativeSession;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void shouldPassBookmarksToDriver() {

@Test
public void shouldPassMultiValueBookmarksToDriver() {
Set<String> bookmarkStringRepresentation = new HashSet<>(Arrays.asList("bookmark1", "bookmark2", "bookmark3-part1BSbookmark3-part2"));
Set<String> bookmarkStringRepresentation = new HashSet<>(Arrays.asList("bookmark1", "bookmark2", "bookmark3-part1/_BS_/bookmark3-part2"));

Transaction transaction = session.beginTransaction(Transaction.Type.READ_ONLY, bookmarkStringRepresentation);
ArgumentCaptor<SessionConfig> argumentCaptor = ArgumentCaptor.forClass(SessionConfig.class);
Expand Down Expand Up @@ -142,6 +142,6 @@ public void shouldDealWithMultiValueBookmarks() {
transaction.close();

String lastBookmark = session.getLastBookmark();
assertThat(lastBookmark).isEqualTo("bookmark-part1BSbookmark-part2");
assertThat(lastBookmark).isEqualTo("bookmark-part1/_BS_/bookmark-part2");
}
}

0 comments on commit 962edfc

Please sign in to comment.