diff --git a/plugins/src/functionalTest/java/br/dev/pedrolamarao/gradle/metal/MetalDependencyTest.java b/plugins/src/functionalTest/java/br/dev/pedrolamarao/gradle/metal/MetalDependencyTest.java index a867480..4b46507 100644 --- a/plugins/src/functionalTest/java/br/dev/pedrolamarao/gradle/metal/MetalDependencyTest.java +++ b/plugins/src/functionalTest/java/br/dev/pedrolamarao/gradle/metal/MetalDependencyTest.java @@ -13,10 +13,10 @@ import static org.gradle.testkit.runner.TaskOutcome.SUCCESS; @DisplayName("Gradle Metal dependency resolution") -public class MetalDependencyTest extends MetalTestBase +class MetalDependencyTest extends MetalTestBase { @Test - public void subproject () throws IOException + void subproject () throws IOException { // base library @@ -201,7 +201,7 @@ int main (int argc, char * argv []) } @Test - public void composite () throws IOException + void composite () throws IOException { // base library @@ -400,7 +400,7 @@ int main (int argc, char * argv []) } @Test - public void libraryTest () throws IOException + void libraryTest () throws IOException { final var fooDir = projectDir.resolve("foo"); Files.createDirectories(fooDir); diff --git a/plugins/src/functionalTest/java/br/dev/pedrolamarao/gradle/metal/MetalExtensionTest.java b/plugins/src/functionalTest/java/br/dev/pedrolamarao/gradle/metal/MetalExtensionTest.java index b573c81..8d5cff1 100644 --- a/plugins/src/functionalTest/java/br/dev/pedrolamarao/gradle/metal/MetalExtensionTest.java +++ b/plugins/src/functionalTest/java/br/dev/pedrolamarao/gradle/metal/MetalExtensionTest.java @@ -13,10 +13,10 @@ import static org.gradle.testkit.runner.TaskOutcome.UP_TO_DATE; @DisplayName("Gradle Metal extension") -public class MetalExtensionTest extends MetalTestBase +class MetalExtensionTest extends MetalTestBase { @Test - public void archiveFileName () throws IOException + void archiveFileName () throws IOException { Files.writeString(projectDir.resolve("build.gradle.kts"), """ @@ -43,7 +43,7 @@ public void archiveFileName () throws IOException } @Test - public void locateTool () throws IOException + void locateTool () throws IOException { Files.writeString(projectDir.resolve("build.gradle.kts"), """ diff --git a/plugins/src/functionalTest/java/br/dev/pedrolamarao/gradle/metal/MetalIxxPrecompileTest.java b/plugins/src/functionalTest/java/br/dev/pedrolamarao/gradle/metal/MetalIxxPrecompileTest.java index 959270c..2bf3dcf 100644 --- a/plugins/src/functionalTest/java/br/dev/pedrolamarao/gradle/metal/MetalIxxPrecompileTest.java +++ b/plugins/src/functionalTest/java/br/dev/pedrolamarao/gradle/metal/MetalIxxPrecompileTest.java @@ -14,10 +14,10 @@ import static org.gradle.testkit.runner.TaskOutcome.SUCCESS; @DisplayName("Gradle Metal C++ module interface support") -public class MetalIxxPrecompileTest extends MetalTestBase +class MetalIxxPrecompileTest extends MetalTestBase { @Test - public void compile () throws IOException + void compile () throws IOException { Files.createDirectories(projectDir.resolve("src")); diff --git a/plugins/src/functionalTest/java/br/dev/pedrolamarao/gradle/metal/MetalLibraryTest.java b/plugins/src/functionalTest/java/br/dev/pedrolamarao/gradle/metal/MetalLibraryTest.java index 3ff6277..7731314 100644 --- a/plugins/src/functionalTest/java/br/dev/pedrolamarao/gradle/metal/MetalLibraryTest.java +++ b/plugins/src/functionalTest/java/br/dev/pedrolamarao/gradle/metal/MetalLibraryTest.java @@ -13,11 +13,11 @@ import static org.gradle.testkit.runner.TaskOutcome.*; @DisplayName("Gradle Metal library project") -public class MetalLibraryTest extends MetalTestBase +class MetalLibraryTest extends MetalTestBase { @DisplayName("compile with Assembler sources") @Test - public void compileAsm () throws IOException + void compileAsm () throws IOException { Files.createDirectories(projectDir.resolve("src/main/asm")); Files.writeString(projectDir.resolve("src/main/asm/foo.s"), @@ -117,7 +117,7 @@ public void compileAsm () throws IOException @DisplayName("compile with C sources") @Test - public void compileC () throws IOException + void compileC () throws IOException { Files.createDirectories(projectDir.resolve("src/main/cpp")); Files.writeString(projectDir.resolve("src/main/cpp/foo.h"), @@ -226,7 +226,7 @@ int main (int argc, char * argv[]) @DisplayName("compile with C++ sources") @Test - public void compileCxx () throws IOException + void compileCxx () throws IOException { Files.createDirectories(projectDir.resolve("src/main/cpp")); Files.writeString(projectDir.resolve("src/main/cpp/foo.h"), @@ -367,7 +367,7 @@ int main (int argc, char * argv[]) @DisplayName("compile with no sources") @Test - public void empty () throws IOException + void empty () throws IOException { Files.writeString(projectDir.resolve("build.gradle.kts"), """ diff --git a/plugins/src/functionalTest/java/br/dev/pedrolamarao/gradle/metal/MetalTargetTest.java b/plugins/src/functionalTest/java/br/dev/pedrolamarao/gradle/metal/MetalTargetTest.java index 5bc1422..cd2c2aa 100644 --- a/plugins/src/functionalTest/java/br/dev/pedrolamarao/gradle/metal/MetalTargetTest.java +++ b/plugins/src/functionalTest/java/br/dev/pedrolamarao/gradle/metal/MetalTargetTest.java @@ -1,18 +1,17 @@ package br.dev.pedrolamarao.gradle.metal; import org.gradle.testkit.runner.GradleRunner; +import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import java.io.IOException; import java.nio.file.Files; -/** - * Gradle Metal target support. - */ -public class MetalTargetTest extends MetalTestBase +@DisplayName("Gradle Metal target support") +class MetalTargetTest extends MetalTestBase { @Test - public void targets () throws IOException + void targets () throws IOException { Files.createDirectories(projectDir.resolve("src/main/cpp")); Files.writeString(projectDir.resolve("src/main/cpp/main.h"),