Skip to content

Commit 13c2648

Browse files
committed
[#noissue] Remove Jdk17Utils.assumeFalse
1 parent 063fa74 commit 13c2648

File tree

3 files changed

+3
-40
lines changed

3 files changed

+3
-40
lines changed

commons-server/src/test/java/com/navercorp/pinpoint/common/server/scatter/FuzzyRowFilterTest.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ public class FuzzyRowFilterTest {
1717

1818
@Test
1919
public void test() {
20-
Jdk17Utils.assumeFalse();
21-
2220
byte[] a1 = {'?', 5};
2321
byte[] a2 = {'?', 6};
2422
byte[] fuzzy = {1, 0};
@@ -28,18 +26,18 @@ public void test() {
2826

2927
KeyValue keyValue = new KeyValue(new byte[]{0, 1}, 1L);
3028
Filter.ReturnCode returnCode = filter.filterCell(keyValue);
31-
Assertions.assertEquals(returnCode, Filter.ReturnCode.SEEK_NEXT_USING_HINT);
29+
Assertions.assertEquals(Filter.ReturnCode.SEEK_NEXT_USING_HINT, returnCode);
3230

3331
KeyValue keyValue2 = new KeyValue(new byte[]{0, 5}, 1L);
3432
Filter.ReturnCode returnCode2 = filter.filterCell(keyValue2);
35-
Assertions.assertEquals(returnCode2, Filter.ReturnCode.INCLUDE);
33+
Assertions.assertEquals(Filter.ReturnCode.INCLUDE, returnCode2);
3634
}
3735

3836
@Test
3937
public void test_reverseTimeStamp() {
4038
for (int i = 0; i < 560; i += 1) {
4139
short j = reverseTimestamp((short) i);
42-
logger.debug(i + " hex:" + Integer.toHexString(i) + " rev:" + j + " rhex:" + Integer.toHexString(j));
40+
logger.debug("{} hex: {} rev: {} rhex:{}", i, Integer.toHexString(i), j, Integer.toHexString(j));
4341
}
4442
}
4543

commons-server/src/test/java/com/navercorp/pinpoint/common/server/scatter/FuzzyRowKeyBuilderTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ public class FuzzyRowKeyBuilderTest {
1616

1717
@Test
1818
public void build_include() throws IOException {
19-
Jdk17Utils.assumeFalse();
20-
2119
final long high = 100;
2220
final long low = 0;
2321
Byte slotNumber = fuzzyRowKeyFactory.getKey(high);
@@ -48,8 +46,6 @@ public void build_skip() throws IOException {
4846

4947
@Test
5048
public void build_include_range() throws IOException {
51-
Jdk17Utils.assumeFalse();
52-
5349
// 0 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
5450
// slot=[100, 200, 400, 800, 1600, 3200, 6400, 12800, 25600, 51200, 102400, 204800, 409600]
5551
final long high = 400;

commons-server/src/test/java/com/navercorp/pinpoint/common/server/scatter/Jdk17Utils.java

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)