-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🎨 프로퍼티 이름 변경 jandi.default-webhook-url -> jandi.webhook-url. JandiAut…
…oConfiguration 와 DefaultJandiService 의존성 제거
- Loading branch information
이용홍
committed
Mar 7, 2023
1 parent
bfd7486
commit ff881b8
Showing
5 changed files
with
32 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/test/kotlin/herbaccara/jandi/DefaultJandiServiceTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package herbaccara.jandi | ||
|
||
import herbaccara.jandi.model.ConnectInfo | ||
import herbaccara.jandi.model.JandiMessage | ||
import org.junit.jupiter.api.Test | ||
|
||
class DefaultJandiServiceTest { | ||
|
||
@Test | ||
fun test() { | ||
val jandiService = | ||
DefaultJandiService("") | ||
|
||
jandiService.send( | ||
JandiMessage( | ||
"[[PizzaHouse]](http://url_to_text) You have a new Pizza order.", | ||
"#FAC11B", | ||
listOf( | ||
ConnectInfo("Topping", "Pepperoni"), | ||
ConnectInfo("Location", "Empire State Building, 5th Ave, New York", "http://url_to_text") | ||
) | ||
) | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
jandi: | ||
enabled: true | ||
default-webhook-url: | ||
webhook-url: | ||
webhook: | ||
enabled: true | ||
path: /jandi/webhook |