From 82ccdb8cf8bcf835f5021b5e8a30474fd088fed7 Mon Sep 17 00:00:00 2001 From: Kowshik Prakasam Date: Wed, 31 Mar 2021 14:12:54 -0700 Subject: [PATCH] Initial commit --- core/src/test/scala/unit/kafka/log/LogSegmentTest.scala | 2 +- core/src/test/scala/unit/kafka/log/LogSegmentsTest.scala | 2 +- .../scala/unit/kafka/log/{LogUtils.scala => LogTestUtils.scala} | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename core/src/test/scala/unit/kafka/log/{LogUtils.scala => LogTestUtils.scala} (98%) diff --git a/core/src/test/scala/unit/kafka/log/LogSegmentTest.scala b/core/src/test/scala/unit/kafka/log/LogSegmentTest.scala index 435f4b642d585..3d2e2d7220ab6 100644 --- a/core/src/test/scala/unit/kafka/log/LogSegmentTest.scala +++ b/core/src/test/scala/unit/kafka/log/LogSegmentTest.scala @@ -43,7 +43,7 @@ class LogSegmentTest { def createSegment(offset: Long, indexIntervalBytes: Int = 10, time: Time = Time.SYSTEM): LogSegment = { - val seg = LogUtils.createSegment(offset, logDir, indexIntervalBytes, time) + val seg = LogTestUtils.createSegment(offset, logDir, indexIntervalBytes, time) segments += seg seg } diff --git a/core/src/test/scala/unit/kafka/log/LogSegmentsTest.scala b/core/src/test/scala/unit/kafka/log/LogSegmentsTest.scala index 17888aee67003..b6e686b02709d 100644 --- a/core/src/test/scala/unit/kafka/log/LogSegmentsTest.scala +++ b/core/src/test/scala/unit/kafka/log/LogSegmentsTest.scala @@ -32,7 +32,7 @@ class LogSegmentsTest { private def createSegment(offset: Long, indexIntervalBytes: Int = 10, time: Time = Time.SYSTEM): LogSegment = { - LogUtils.createSegment(offset, logDir, indexIntervalBytes, time) + LogTestUtils.createSegment(offset, logDir, indexIntervalBytes, time) } private def assertEntry(segment: LogSegment, tested: java.util.Map.Entry[java.lang.Long, LogSegment]): Unit = { diff --git a/core/src/test/scala/unit/kafka/log/LogUtils.scala b/core/src/test/scala/unit/kafka/log/LogTestUtils.scala similarity index 98% rename from core/src/test/scala/unit/kafka/log/LogUtils.scala rename to core/src/test/scala/unit/kafka/log/LogTestUtils.scala index 8bf9812b86acd..b52d8d84c5b25 100644 --- a/core/src/test/scala/unit/kafka/log/LogUtils.scala +++ b/core/src/test/scala/unit/kafka/log/LogTestUtils.scala @@ -22,7 +22,7 @@ import java.io.File import org.apache.kafka.common.record.FileRecords import org.apache.kafka.common.utils.Time -object LogUtils { +object LogTestUtils { /** * Create a segment with the given base offset */