Skip to content

Commit

Permalink
corrected after review
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita-Smirnov-Exactpro committed Jun 12, 2024
1 parent 994e56f commit 63122d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/kotlin/com/exactpro/th2/common/event/TestEvent.kt
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ class TestEvent {
.rawBody(rawBody.toByteArray())
assertThrows(IllegalStateException::class.java) {
event.bodyData(data)
}.also { assertEquals("Body data can't be added to body data of event '${event.id}' because raw body is already sed", it.message) }
}.also { assertEquals("Body data can't be added to body data of event '${event.id}' because raw body is already set", it.message) }
}

@Test
Expand All @@ -331,7 +331,7 @@ class TestEvent {
.rawBody(rawBody.toByteArray())
assertThrows(IllegalStateException::class.java) {
event.rawBody(rawBody.toByteArray())
}.also { assertEquals("Raw body in event '${event.id}' already sed with value '${rawBody.substring(0, 25)}'", it.message) }
}.also { assertEquals("Raw body in event '${event.id}' already set with value '${rawBody.substring(0, 25)}'", it.message) }
}

@Test
Expand All @@ -340,7 +340,7 @@ class TestEvent {
.rawBody(rawBody.toByteArray())
assertThrows(IllegalStateException::class.java) {
event.description("test-description")
}.also { assertEquals("Description can't be added to body data of event '${event.id}' because raw body is already sed", it.message) }
}.also { assertEquals("Description can't be added to body data of event '${event.id}' because raw body is already set", it.message) }
}

@Test
Expand Down

0 comments on commit 63122d8

Please sign in to comment.