Skip to content

Commit

Permalink
Issue#475 Non @test method test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil-Gabaydullin committed Mar 15, 2023
1 parent 83da373 commit 301ec17
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ void identification() {
" assertThat(str).isEqualTo(\"test\");",
" verifyNoInteractions(mock5);",
" }",
"",
" void testNonTestMethod() {",
" Object mock1 = mock(Object.class);",
" Object mock2 = mock(Object.class);",
" verifyNoInteractions(mock1);",
" verifyNoInteractions(mock2);",
" }",
"}")
.addSourceLines(
"B.java",
Expand Down Expand Up @@ -152,6 +159,13 @@ void identification() {
" assertThat(str).isEqualTo(\"test\");",
" verifyNoInteractions(mock5);",
" }",
"",
" void testNonTestMethod() {",
" Object mock1 = mock(Object.class);",
" Object mock2 = mock(Object.class);",
" Mockito.verifyNoInteractions(mock1);",
" Mockito.verifyNoInteractions(mock2);",
" }",
"}")
.doTest();
}
Expand Down

0 comments on commit 301ec17

Please sign in to comment.