-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
91 additions
and
2 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
3 changes: 3 additions & 0 deletions
3
logger-interceptor/src/main/resources/META-INF/services/README.md
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,3 @@ | ||
# Interceptor | ||
|
||
Welcome to Logger interceptor! |
7 changes: 7 additions & 0 deletions
7
logger-interceptor/src/main/resources/META-INF/services/example.json
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,7 @@ | ||
{ | ||
"pluginClass": "io.conduktor.example.loggerinterceptor.LoggerInterceptorPlugin", | ||
"priority": 100, | ||
"config": { | ||
"loggingStyle": "obiWan" | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...tor/src/test/java/io/conduktor/example/loggerinterceptor/LoggerInterceptorPluginTest.java
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,28 @@ | ||
package io.conduktor.example.loggerinterceptor; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
public class LoggerInterceptorPluginTest { | ||
@Test | ||
void hasReadme() { | ||
assertThat(new LoggerInterceptorPlugin().readme()) | ||
.contains("Welcome to Logger interceptor!"); | ||
} | ||
|
||
@Test | ||
void hasTags() { | ||
assertThat(new LoggerInterceptorPlugin().tags()) | ||
.containsExactly("data"); | ||
} | ||
|
||
@Test | ||
void hasExamples() { | ||
assertThat(new LoggerInterceptorPlugin().examples()) | ||
.hasSize(1); | ||
assertThat(new LoggerInterceptorPlugin().examples().get(0)) | ||
.contains("\"pluginClass\": \"io.conduktor.example.loggerinterceptor.LoggerInterceptorPlugin\""); | ||
|
||
} | ||
} |