Skip to content

Commit c564310

Browse files
chore(internal): fix multipart tests
1 parent c5e1647 commit c564310

File tree

4 files changed

+4
-52
lines changed

4 files changed

+4
-52
lines changed

cas-parser-java-core/src/test/kotlin/com/cas_parser/api/models/casparser/CasParserCamsKfintechParamsTest.kt

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,6 @@ internal class CasParserCamsKfintechParamsTest {
5555

5656
val body = params._body()
5757

58-
assertThat(body.filterValues { !it.value.isNull() })
59-
.usingRecursiveComparison()
60-
// TODO(AssertJ): Replace this and the `mapValues` below with:
61-
// https://github.com/assertj/assertj/issues/3165
62-
.withEqualsForType(
63-
{ a, b -> a.readBytes() contentEquals b.readBytes() },
64-
InputStream::class.java,
65-
)
66-
.isEqualTo(
67-
mapOf().mapValues { (_, field) ->
68-
field.map { (it as? ByteArray)?.inputStream() ?: it }
69-
}
70-
)
58+
assertThat(body.filterValues { !it.value.isNull() }).isEmpty()
7159
}
7260
}

cas-parser-java-core/src/test/kotlin/com/cas_parser/api/models/casparser/CasParserCdslParamsTest.kt

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,6 @@ internal class CasParserCdslParamsTest {
5555

5656
val body = params._body()
5757

58-
assertThat(body.filterValues { !it.value.isNull() })
59-
.usingRecursiveComparison()
60-
// TODO(AssertJ): Replace this and the `mapValues` below with:
61-
// https://github.com/assertj/assertj/issues/3165
62-
.withEqualsForType(
63-
{ a, b -> a.readBytes() contentEquals b.readBytes() },
64-
InputStream::class.java,
65-
)
66-
.isEqualTo(
67-
mapOf().mapValues { (_, field) ->
68-
field.map { (it as? ByteArray)?.inputStream() ?: it }
69-
}
70-
)
58+
assertThat(body.filterValues { !it.value.isNull() }).isEmpty()
7159
}
7260
}

cas-parser-java-core/src/test/kotlin/com/cas_parser/api/models/casparser/CasParserNsdlParamsTest.kt

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,6 @@ internal class CasParserNsdlParamsTest {
5555

5656
val body = params._body()
5757

58-
assertThat(body.filterValues { !it.value.isNull() })
59-
.usingRecursiveComparison()
60-
// TODO(AssertJ): Replace this and the `mapValues` below with:
61-
// https://github.com/assertj/assertj/issues/3165
62-
.withEqualsForType(
63-
{ a, b -> a.readBytes() contentEquals b.readBytes() },
64-
InputStream::class.java,
65-
)
66-
.isEqualTo(
67-
mapOf().mapValues { (_, field) ->
68-
field.map { (it as? ByteArray)?.inputStream() ?: it }
69-
}
70-
)
58+
assertThat(body.filterValues { !it.value.isNull() }).isEmpty()
7159
}
7260
}

cas-parser-java-core/src/test/kotlin/com/cas_parser/api/models/casparser/CasParserSmartParseParamsTest.kt

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,6 @@ internal class CasParserSmartParseParamsTest {
5555

5656
val body = params._body()
5757

58-
assertThat(body.filterValues { !it.value.isNull() })
59-
.usingRecursiveComparison()
60-
// TODO(AssertJ): Replace this and the `mapValues` below with:
61-
// https://github.com/assertj/assertj/issues/3165
62-
.withEqualsForType(
63-
{ a, b -> a.readBytes() contentEquals b.readBytes() },
64-
InputStream::class.java,
65-
)
66-
.isEqualTo(
67-
mapOf().mapValues { (_, field) ->
68-
field.map { (it as? ByteArray)?.inputStream() ?: it }
69-
}
70-
)
58+
assertThat(body.filterValues { !it.value.isNull() }).isEmpty()
7159
}
7260
}

0 commit comments

Comments
 (0)