Skip to content

Commit

Permalink
Remove @QuarkusTest for simple unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvisser committed Aug 14, 2024
1 parent f4b470b commit 17bae7d
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion git-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-rest-client-reactive-jackson</artifactId>
<artifactId>quarkus-rest-client-jackson</artifactId>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.rabobank.ret.git.plugin

import io.quarkus.test.junit.QuarkusTest
import io.rabobank.ret.IntelliSearch
import io.rabobank.ret.RetContext
import io.rabobank.ret.git.plugin.command.AutoCompleteCommand
Expand Down Expand Up @@ -31,7 +30,6 @@ import java.io.PrintWriter
import java.io.StringWriter
import java.time.ZonedDateTime

@QuarkusTest
class AutoCompleteCommandTest {
private lateinit var commandLine: CommandLine
private val gitProvider = mock<GitProvider>()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.rabobank.ret.git.plugin

import io.quarkus.test.junit.QuarkusTest
import io.rabobank.ret.RetContext
import io.rabobank.ret.git.plugin.command.PullRequestCreateCommand
import io.rabobank.ret.git.plugin.config.ExceptionMessageHandler
Expand Down Expand Up @@ -29,7 +28,6 @@ import java.net.URI

private const val BASE_URL = "https://test.git"

@QuarkusTest
internal class PullRequestCreateCommandTest {
private val gitProvider = mock<GitProvider>()
private val mockedBrowserUtils = mock<BrowserUtils>()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.rabobank.ret.git.plugin

import io.quarkus.test.junit.QuarkusTest
import io.rabobank.ret.git.plugin.command.PullRequestOpenCommand
import io.rabobank.ret.git.plugin.output.OutputHandler
import io.rabobank.ret.git.plugin.provider.GitProvider
Expand All @@ -23,7 +22,6 @@ import java.net.URI

private const val BASE_URL = "https://test.git"

@QuarkusTest
internal class PullRequestOpenCommandTest {
private val mockedGitProvider = mock<GitProvider>()
private val mockedBrowserUtils = mock<BrowserUtils>()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package io.rabobank.ret.git.plugin

import io.quarkus.test.junit.QuarkusTest
import io.rabobank.ret.RetConsole
import io.rabobank.ret.RetContext
import io.rabobank.ret.git.plugin.command.RepositoryCommand
Expand All @@ -26,7 +25,6 @@ import org.mockito.kotlin.whenever
import picocli.CommandLine
import java.net.URI

@QuarkusTest
internal class RepositoryCommandTest {
private val mockedGitProvider = mock<GitProvider>()
private val mockedBrowserUtils = mock<BrowserUtils>()
Expand Down
2 changes: 1 addition & 1 deletion splunk-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-rest-client-reactive-jackson</artifactId>
<artifactId>quarkus-rest-client-jackson</artifactId>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,16 @@ class SplunkPluginConfig : Configurable() {

override fun properties() =
listOf(
ConfigurationProperty(BASE_URL, "Enter the Splunk base URL (<base-url> in <base-url>/en-US/app/<app-name>/search)", required = true),
ConfigurationProperty(APP, "Enter your Splunk app name (<app-name> in <base-url>/en-US/app/<app-name>/search)", required = true),
ConfigurationProperty(
BASE_URL,
"Enter the Splunk base URL (<base-url> in <base-url>/en-US/app/<app-name>/search)",
required = true,
),
ConfigurationProperty(
APP,
"Enter your Splunk app name (<app-name> in <base-url>/en-US/app/<app-name>/search)",
required = true,
),
ConfigurationProperty(
INDEXES,
"Enter your Splunk index(es) (comma separated). E.g. my_index_a, my_index_b",
Expand Down

0 comments on commit 17bae7d

Please sign in to comment.