File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed
misk-core/src/main/kotlin/misk/tokens
src/main/kotlin/wisp/token Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ class FakeTokenGeneratorModule : KAbstractModule() {
77 override fun configure () {
88 bind<TokenGenerator >().to<FakeTokenGenerator >()
99 multibind<TestFixture >().to<FakeTokenGenerator >()
10+ multibind<TestFixture >().to< wisp.token.FakeTokenGenerator > ()
1011 bind<TokenGenerator2 >().to<FakeTokenGenerator2 >()
1112 }
1213}
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ dependencies {
88 api(project(" :wisp:wisp-token" ))
99 api(project(" :misk-testing-api" ))
1010
11+ api(libs.jakartaInject)
1112 testImplementation(libs.kotestAssertionsShared)
1213 testImplementation(libs.kotestCommon)
1314 testImplementation(libs.kotestFrameworkApi)
Original file line number Diff line number Diff line change @@ -6,8 +6,9 @@ import wisp.token.TokenGenerator.Companion.CANONICALIZE_LENGTH_MIN
66import wisp.token.TokenGenerator.Companion.canonicalize
77import java.util.*
88import java.util.concurrent.atomic.AtomicLong
9+ import jakarta.inject.Inject
910
10- class FakeTokenGenerator : FakeFixture (), TokenGenerator {
11+ class FakeTokenGenerator @Inject constructor() : FakeFixture(), TokenGenerator {
1112 internal val nextByLabel by resettable {
1213 Collections .synchronizedMap<String , AtomicLong >(
1314 mutableMapOf ()
You can’t perform that action at this time.
0 commit comments