File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
main/kotlin/org/koin/example/qualifier
test/kotlin/org.koin.example Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -37,5 +37,6 @@ public class QualifierModule {
3737 public fun anotherList (): StuffList = StuffList (listOf (Stuff (" 1" ),Stuff (" 2" )))
3838
3939 @Single
40+ @Named(" another-counter" )
4041 public fun anotherCounter (@Named(" another-counter" ) stuffs : StuffList ): StuffCounter = StuffCounter (stuffs.list," another-counter" )
4142}
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ class TestModule {
113113 assertEquals(ints,koin.get<MyInjectFactory >{ parametersOf(ints) }.ints)
114114
115115 assertEquals(2 ,koin.get<StuffList >(named(" another-counter" )).list.size)
116- assertEquals(" another-counter" ,koin.get<StuffCounter >().name)
116+ assertEquals(" another-counter" ,koin.get<StuffCounter >(named( " another-counter " ) ).name)
117117
118118 assertNotNull(koin.getOrNull<MyType .MyChildType >())
119119
You can’t perform that action at this time.
0 commit comments