Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test case for parameterized tests without explicit source
- Loading branch information
Henry Coles
committed
Jan 3, 2023
1 parent
acb6406
commit 67f77ae
Showing
3 changed files
with
30 additions
and
4 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
19 changes: 19 additions & 0 deletions
19
src/test/java/org/pitest/junit5/repository/ParameterizedNoExplicitSource.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,19 @@ | ||
package org.pitest.junit5.repository; | ||
|
||
import org.junit.jupiter.params.ParameterizedTest; | ||
import org.junit.jupiter.params.provider.MethodSource; | ||
|
||
import java.util.stream.Stream; | ||
|
||
public class ParameterizedNoExplicitSource { | ||
|
||
@ParameterizedTest | ||
@MethodSource() | ||
public void parameterizedTest(String string) { | ||
|
||
} | ||
|
||
static Stream<String> parameterizedTest() { | ||
return Stream.of("foo", "bar"); | ||
} | ||
} |
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