-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
skip afterAll callback for nexted classes, closes #21
- Loading branch information
Showing
3 changed files
with
44 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
grpcmock-junit5/src/test/java/org/grpcmock/junit5/test/NestedTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package org.grpcmock.junit5.test; | ||
|
||
import org.grpcmock.junit5.GrpcMockExtension; | ||
import org.junit.jupiter.api.Nested; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.extension.ExtendWith; | ||
|
||
/** | ||
* @author Fadelis | ||
*/ | ||
@ExtendWith(GrpcMockExtension.class) | ||
class NestedTest extends TestBase { | ||
|
||
@Nested | ||
class FirstNestedClass { | ||
|
||
@Test | ||
void should_run_nested_test_1() { | ||
runAndAssertSimpleHealthCheckRequest(); | ||
} | ||
} | ||
|
||
@Nested | ||
class SecondNestedClass { | ||
|
||
@Test | ||
void should_run_nested_test_2() { | ||
runAndAssertSimpleHealthCheckRequest(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters