Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Import Process
Fedora Ingest Service
Commits
8a81e9e0
Commit
8a81e9e0
authored
Nov 02, 2020
by
Thomas Bernhart
Browse files
Fix integration tests
parent
10f40f28
Changes
1
Show whitespace changes
Inline
Side-by-side
src/integrationTest/kotlin/ServiceTest.kt
View file @
8a81e9e0
...
...
@@ -17,6 +17,7 @@
*/
package
org.memobase
import
com.beust.klaxon.Klaxon
import
java.io.File
import
java.io.FileInputStream
import
java.time.Duration
...
...
@@ -35,6 +36,7 @@ import org.apache.kafka.common.serialization.StringDeserializer
import
org.apache.kafka.common.serialization.StringSerializer
import
org.apache.logging.log4j.LogManager
import
org.assertj.core.api.Assertions.assertThat
import
org.junit.jupiter.api.Assertions.assertNotNull
import
org.junit.jupiter.api.TestInstance
import
org.junit.jupiter.api.extension.ExtendWith
import
org.junit.jupiter.params.ParameterizedTest
...
...
@@ -122,7 +124,9 @@ class ServiceTest {
assertThat
(
totalConsumerRecords
)
.
size
().
isEqualTo
(
expectedRecordCount
)
assertThat
(
totalConsumerRecords
[
0
].
value
()).
isEqualTo
(
params
.
expectedIngestReports
[
0
].
toJson
())
val
receivedReport
=
Klaxon
().
parse
<
Report
>(
totalConsumerRecords
[
0
].
value
())
assertNotNull
(
receivedReport
)
assertThat
(
receivedReport
).
isEqualTo
(
params
.
expectedIngestReports
[
0
])
}
private
fun
kafkaTests
()
=
Stream
.
of
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment