Skip to content

Commit

Permalink
Improve layout for nested tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-yevsyukov committed Nov 17, 2023
1 parent c50a391 commit 358fdef
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions java-runtime/src/test/java/io/spine/validate/OneofSpec.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ import org.junit.jupiter.api.Test
@DisplayName(VALIDATION_SHOULD + "consider `oneof`")
internal class OneofSpec : ValidationOfConstraintTest() {

@DisplayName("valid if")
@Nested
internal inner class Valid {
@Nested internal inner class
`valid if` {

@Test
fun `a required field is set to a non-default value`() = assertValid {
Expand Down Expand Up @@ -102,9 +101,8 @@ internal class OneofSpec : ValidationOfConstraintTest() {
}
}

@DisplayName("invalid if")
@Nested
internal inner class Invalid {
@Nested internal inner class
`invalid if` {

@Test
fun `a required field is set to the default value`() {
Expand Down

0 comments on commit 358fdef

Please sign in to comment.