File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
main/kotlin/dev/newspicel/di
test/kotlin/dev/newspicel/di Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ abstract class DIJavaPlugin : JavaPlugin() {
26
26
protected lateinit var stereotypesClasses: List <KClass <* >>
27
27
private lateinit var controllerClasses: List <KClass <* >>
28
28
29
- private val projectPackagePath: String = this .javaClass.`package`.name
29
+ open val projectPackagePath: String
30
+ get() = this .javaClass.`package`.name
30
31
31
32
abstract fun startDI ()
32
33
abstract fun <T : Any > getExistingBinding (type : KClass <T >, qualifier : String? = null): T ?
Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ package dev.newspicel.di
2
2
3
3
import be.seeseemelk.mockbukkit.MockBukkit
4
4
import be.seeseemelk.mockbukkit.ServerMock
5
- import dev.newspicel.di.Repository
6
- import dev.newspicel.di.Service
7
5
import io.kotest.matchers.shouldBe
8
6
import io.kotest.matchers.shouldNotBe
9
7
import dev.newspicel.di.commands.CommandTestController
@@ -15,7 +13,7 @@ import org.junit.jupiter.api.BeforeEach
15
13
import org.junit.jupiter.api.TestInstance
16
14
17
15
@TestInstance(TestInstance .Lifecycle .PER_METHOD )
18
- class SpringJavaPluginTest {
16
+ class GuiceJavaPluginTest {
19
17
20
18
private lateinit var server: ServerMock
21
19
private lateinit var plugin: TestPlugin
You can’t perform that action at this time.
0 commit comments