Skip to content

Commit

Permalink
fix checkstyle & tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dao-jun committed Feb 4, 2025
1 parent abb6e81 commit ef8ecd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@
package org.apache.pulsar.broker.service.persistent;

import static com.google.common.base.Preconditions.checkArgument;
import com.google.common.annotations.VisibleForTesting;
import java.util.Optional;
import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;

import com.google.common.annotations.VisibleForTesting;
import org.apache.bookkeeper.mledger.AsyncCallbacks;
import org.apache.bookkeeper.mledger.ManagedCursor;
import org.apache.bookkeeper.mledger.ManagedLedgerException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ public void testGetFindPositionRange_LastTimestampIsZero() {
assertNotNull(range);
assertNotNull(range.getLeft());
assertNull(range.getRight());
assertEquals(range.getLeft(), PositionFactory.create(3, 0));
assertEquals(range.getLeft(), PositionFactory.create(2, 0));
}

@Test
Expand All @@ -654,7 +654,7 @@ public void testGetFindPositionRange_LastTimestampIsZeroWithNoEntries() {
assertNotNull(range);
assertNotNull(range.getLeft());
assertNull(range.getRight());
assertEquals(range.getLeft(), PositionFactory.create(2, 9));
assertEquals(range.getLeft(), PositionFactory.create(2, 0));
}

@Test
Expand Down Expand Up @@ -689,7 +689,7 @@ public void testGetFindPositionRange_MixedTimestamps() {
assertNotNull(range);
assertNotNull(range.getLeft());
assertNotNull(range.getRight());
assertEquals(range.getLeft(), PositionFactory.create(3, 0));
assertEquals(range.getLeft(), PositionFactory.create(2, 0));
assertEquals(range.getRight(), PositionFactory.create(3, 9));
}

Expand Down

0 comments on commit ef8ecd4

Please sign in to comment.