Skip to content

Commit

Permalink
test: removes implicit config dir from base verticle test.
Browse files Browse the repository at this point in the history
  • Loading branch information
outofcoffee committed Feb 22, 2025
1 parent d51c950 commit 56ec49a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ class HBasePluginTest : BaseVerticleTest() {

override val pluginClass = HBasePluginImpl::class.java

override val testConfigDirs = listOf(
"/config"
)

companion object {
@JvmStatic
@BeforeAll
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ import org.junit.jupiter.api.Test
class RestPluginTest : BaseVerticleTest() {
override val pluginClass = RestPluginImpl::class.java

override val testConfigDirs = listOf(
"/config"
)

@BeforeEach
@Throws(Exception::class)
override fun setUp(vertx: Vertx, testContext: VertxTestContext) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ import javax.net.ssl.SSLSession
class SfdcPluginImplTest : BaseVerticleTest() {
override val pluginClass = SfdcPluginImpl::class.java

override val testConfigDirs = listOf(
"/config"
)

@BeforeEach
@Throws(Exception::class)
override fun setUp(vertx: Vertx, testContext: VertxTestContext) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,6 @@ abstract class BaseVerticleTest {
}.toTypedArray()
}

/**
* @return the relative path under the test resources directory, starting with a slash, e.g "/my-config"
*/
protected open val testConfigDirs = listOf("/config")

@Throws(IOException::class)
private fun findFreePort() = ServerSocket(0).use { it.localPort }

Expand All @@ -127,6 +122,11 @@ abstract class BaseVerticleTest {

protected abstract val pluginClass: Class<out Plugin?>

/**
* @return the relative path under the test resources directory, starting with a slash, e.g "/my-config"
*/
protected abstract val testConfigDirs: List<String>

companion object {
@JvmStatic
protected val host = "localhost"
Expand Down

0 comments on commit 56ec49a

Please sign in to comment.