Skip to content

Commit

Permalink
test: Improve code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahoo-Wang committed Mar 23, 2023
1 parent 384dff1 commit f92e0b6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ internal class CoSecJsonSerializerTest {
}
}
assertThat(testPolicy, `is`(notNullValue()))
val policyJson = CoSecJsonSerializer.writeValueAsString(testPolicy)
assertThat(CoSecJsonSerializer.readValue(policyJson, Policy::class.java), `is`(notNullValue()))
}

@ParameterizedTest
Expand Down Expand Up @@ -118,7 +120,7 @@ internal class CoSecJsonSerializerTest {

@ParameterizedTest
@MethodSource("deserializePolicyErrorProvider")
fun deserializePolicyError(policyJson:String) {
fun deserializePolicyError(policyJson: String) {
Assertions.assertThrows(IllegalArgumentException::class.java) {
CoSecJsonSerializer.readValue(
policyJson,
Expand Down

0 comments on commit f92e0b6

Please sign in to comment.