removed dependency from kotlin
This commit is contained in:
@@ -17,21 +17,20 @@ import java.security.MessageDigest;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
|
||||
class InputStreamProvider implements ArgumentsProvider {
|
||||
|
||||
@Override
|
||||
@SneakyThrows
|
||||
public Stream<? extends Arguments> provideArguments(ExtensionContext context) {
|
||||
return Stream.of(
|
||||
Arguments.of(getClass().getResourceAsStream("/index.html")),
|
||||
Arguments.of(Files.newInputStream(Paths.get("/tmp/citylots.json")))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class BasicTest {
|
||||
|
||||
private static class InputStreamProvider implements ArgumentsProvider {
|
||||
|
||||
@Override
|
||||
@SneakyThrows
|
||||
public Stream<? extends Arguments> provideArguments(ExtensionContext context) {
|
||||
return Stream.of(
|
||||
Arguments.of(getClass().getResourceAsStream("/index.html")),
|
||||
Arguments.of(Files.newInputStream(Paths.get("/tmp/citylots.json")))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@SneakyThrows
|
||||
@ParameterizedTest
|
||||
@ArgumentsSource(InputStreamProvider.class)
|
||||
|
Reference in New Issue
Block a user