From a82f8dda860714f446373e6c9406f13d8d6a2547 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 13 Aug 2021 18:40:34 +0530 Subject: Disable explicit API for tests (#1483) * build: disable explicit API for test tasks * Remove `internal` modifier from test classes --- .../test/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntryTest.kt | 2 +- format-common/src/test/kotlin/dev/msfjarvis/aps/util/time/TestClocks.kt | 2 +- format-common/src/test/kotlin/dev/msfjarvis/aps/util/totp/OtpTest.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'format-common') diff --git a/format-common/src/test/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntryTest.kt b/format-common/src/test/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntryTest.kt index df4dc42e..5479c6db 100644 --- a/format-common/src/test/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntryTest.kt +++ b/format-common/src/test/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntryTest.kt @@ -18,7 +18,7 @@ import kotlinx.coroutines.test.TestCoroutineScope import org.junit.Test @OptIn(ExperimentalCoroutinesApi::class, ExperimentalTime::class) -internal class PasswordEntryTest { +class PasswordEntryTest { private fun makeEntry(content: String) = PasswordEntry(fakeClock, testFinder, testScope, content.encodeToByteArray()) diff --git a/format-common/src/test/kotlin/dev/msfjarvis/aps/util/time/TestClocks.kt b/format-common/src/test/kotlin/dev/msfjarvis/aps/util/time/TestClocks.kt index d75cc900..5098bec9 100644 --- a/format-common/src/test/kotlin/dev/msfjarvis/aps/util/time/TestClocks.kt +++ b/format-common/src/test/kotlin/dev/msfjarvis/aps/util/time/TestClocks.kt @@ -13,7 +13,7 @@ import java.time.ZoneOffset.UTC /** * Implementation of [UserClock] that is fixed to [Instant.EPOCH] for deterministic time-based tests */ -internal class TestUserClock(instant: Instant) : UserClock() { +class TestUserClock(instant: Instant) : UserClock() { constructor() : this(Instant.EPOCH) diff --git a/format-common/src/test/kotlin/dev/msfjarvis/aps/util/totp/OtpTest.kt b/format-common/src/test/kotlin/dev/msfjarvis/aps/util/totp/OtpTest.kt index a2de94d8..bff7af1e 100644 --- a/format-common/src/test/kotlin/dev/msfjarvis/aps/util/totp/OtpTest.kt +++ b/format-common/src/test/kotlin/dev/msfjarvis/aps/util/totp/OtpTest.kt @@ -11,7 +11,7 @@ import kotlin.test.assertNotNull import kotlin.test.assertNull import org.junit.Test -internal class OtpTest { +class OtpTest { private fun generateOtp( counter: Long, -- cgit v1.2.3