diff --git a/build.gradle.kts b/build.gradle.kts index 6c6e3d1..b1a892d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,18 +1,11 @@ plugins { - // Apply the Kotlin JVM plugin to add support for Kotlin. - id("org.jetbrains.kotlin.jvm") version "1.3.70" - - // Apply the java-library plugin for API and implementation separation. `java-library` - application } group = "net.woggioni" version = "0.1" repositories { - // Use jcenter for resolving dependencies. - // You can declare any Maven/Ivy/file repository here. mavenLocal() jcenter() mavenCentral() @@ -21,14 +14,6 @@ repositories { fun property(name : String) = project.property(name).toString() dependencies { - // Align versions of all Kotlin components - compileOnly(platform("org.jetbrains.kotlin:kotlin-bom")) - testImplementation(platform("org.jetbrains.kotlin:kotlin-bom")) - - // Use the Kotlin JDK 8 standard library. - compileOnly("org.jetbrains.kotlin:kotlin-stdlib-jdk8") - testImplementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") - implementation("net.java.dev.jna", "jna", property("jna.version")) // https://mvnrepository.com/artifact/org.projectlombok/lombok @@ -40,12 +25,6 @@ dependencies { testRuntimeOnly("org.junit.jupiter", "junit-jupiter-engine", property("junit.version")) testImplementation("org.junit.jupiter","junit-jupiter-api", property("junit.version")) testImplementation("org.junit.jupiter","junit-jupiter-params", property("junit.version")) - testImplementation("net.woggioni", "jwo", "1.0") - -} - -application { - mainClassName = "net.woggioni.kzstd.HelloWorld" } diff --git a/src/test/java/net/woggioni/jzstd/BasicTest.java b/src/test/java/net/woggioni/jzstd/BasicTest.java index 43ab399..e96c186 100644 --- a/src/test/java/net/woggioni/jzstd/BasicTest.java +++ b/src/test/java/net/woggioni/jzstd/BasicTest.java @@ -17,21 +17,20 @@ import java.security.MessageDigest; import java.util.stream.Stream; -class InputStreamProvider implements ArgumentsProvider { - - @Override - @SneakyThrows - public Stream 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 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)