Skip to content

Commit

Permalink
CID-1813: Detekt
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedlajmileanix committed Aug 24, 2023
1 parent 412b4ee commit 4bad89b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package net.leanix.vsm.gitlab.broker.logs.domain


interface LogProvider {
fun sendAdminLog(adminLog: AdminLog)
fun sendStatusLog(statusLog: StatusLog)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class LoggingServiceTest {

private val logProvider = mockk<LogProvider>()
private val loggingService = LoggingService(logProvider)

@Test
fun `sending status log should call correct client`() {
val statusLog = StatusLog(
Expand All @@ -26,6 +27,7 @@ class LoggingServiceTest {
loggingService.sendStatusLog(statusLog)
verify(exactly = 1) { logProvider.sendStatusLog(statusLog) }
}

@Test
fun `sending admin log should call correct client`() {
val adminLog = AdminLog(
Expand Down

0 comments on commit 4bad89b

Please sign in to comment.