@ -329,21 +329,21 @@ public class MergedReftableTest {
public void overlappedUpdateIndices ( ) throws IOException {
public void overlappedUpdateIndices ( ) throws IOException {
ByteArrayOutputStream buf = new ByteArrayOutputStream ( ) ;
ByteArrayOutputStream buf = new ByteArrayOutputStream ( ) ;
ReftableWriter writer = new ReftableWriter ( buf )
ReftableWriter writer = new ReftableWriter ( buf )
. setMinUpdateIndex ( 1 )
. setMinUpdateIndex ( 2 )
. setMaxUpdateIndex ( 3 )
. setMaxUpdateIndex ( 4 )
. begin ( ) ;
. begin ( ) ;
writer . writeRef ( ref ( "refs/heads/a" , 1 ) , 1 ) ;
writer . writeRef ( ref ( "refs/heads/a" , 10 ) , 2 ) ;
writer . writeRef ( ref ( "refs/heads/b" , 2 ) , 3 ) ;
writer . writeRef ( ref ( "refs/heads/b" , 20 ) , 4 ) ;
writer . finish ( ) ;
writer . finish ( ) ;
byte [ ] base = buf . toByteArray ( ) ;
byte [ ] base = buf . toByteArray ( ) ;
buf = new ByteArrayOutputStream ( ) ;
buf = new ByteArrayOutputStream ( ) ;
writer = new ReftableWriter ( buf )
writer = new ReftableWriter ( buf )
. setMinUpdateIndex ( 2 )
. setMinUpdateIndex ( 1 )
. setMaxUpdateIndex ( 4 )
. setMaxUpdateIndex ( 3 )
. begin ( ) ;
. begin ( ) ;
writer . writeRef ( ref ( "refs/heads/a" , 10 ) , 2 ) ;
writer . writeRef ( ref ( "refs/heads/a" , 1 ) , 1 ) ;
writer . writeRef ( ref ( "refs/heads/b" , 20 ) , 4 ) ;
writer . writeRef ( ref ( "refs/heads/b" , 2 ) , 3 ) ;
writer . finish ( ) ;
writer . finish ( ) ;
byte [ ] delta = buf . toByteArray ( ) ;
byte [ ] delta = buf . toByteArray ( ) ;
@ -368,21 +368,21 @@ public class MergedReftableTest {
public void enclosedUpdateIndices ( ) throws IOException {
public void enclosedUpdateIndices ( ) throws IOException {
ByteArrayOutputStream buf = new ByteArrayOutputStream ( ) ;
ByteArrayOutputStream buf = new ByteArrayOutputStream ( ) ;
ReftableWriter writer = new ReftableWriter ( buf )
ReftableWriter writer = new ReftableWriter ( buf )
. setMinUpdateIndex ( 1 )
. setMinUpdateIndex ( 2 )
. setMaxUpdateIndex ( 4 )
. setMaxUpdateIndex ( 3 )
. begin ( ) ;
. begin ( ) ;
writer . writeRef ( ref ( "refs/heads/a" , 1 ) , 1 ) ;
writer . writeRef ( ref ( "refs/heads/a" , 10 ) , 2 ) ;
writer . writeRef ( ref ( "refs/heads/b" , 20 ) , 4 ) ;
writer . writeRef ( ref ( "refs/heads/b" , 2 ) , 3 ) ;
writer . finish ( ) ;
writer . finish ( ) ;
byte [ ] base = buf . toByteArray ( ) ;
byte [ ] base = buf . toByteArray ( ) ;
buf = new ByteArrayOutputStream ( ) ;
buf = new ByteArrayOutputStream ( ) ;
writer = new ReftableWriter ( buf )
writer = new ReftableWriter ( buf )
. setMinUpdateIndex ( 2 )
. setMinUpdateIndex ( 1 )
. setMaxUpdateIndex ( 3 )
. setMaxUpdateIndex ( 4 )
. begin ( ) ;
. begin ( ) ;
writer . writeRef ( ref ( "refs/heads/a" , 10 ) , 2 ) ;
writer . writeRef ( ref ( "refs/heads/a" , 1 ) , 1 ) ;
writer . writeRef ( ref ( "refs/heads/b" , 2 ) , 3 ) ;
writer . writeRef ( ref ( "refs/heads/b" , 20 ) , 4 ) ;
writer . finish ( ) ;
writer . finish ( ) ;
byte [ ] delta = buf . toByteArray ( ) ;
byte [ ] delta = buf . toByteArray ( ) ;