diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/amazon-lambda-example/java/src/test/java/org/acme/lambda/LambdaHandlerTest.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/amazon-lambda-example/java/src/test/java/org/acme/lambda/LambdaHandlerTest.java index 95252e2a2e9b2..baf9701430ac4 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/amazon-lambda-example/java/src/test/java/org/acme/lambda/LambdaHandlerTest.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/amazon-lambda-example/java/src/test/java/org/acme/lambda/LambdaHandlerTest.java @@ -8,10 +8,10 @@ import static org.hamcrest.CoreMatchers.containsString; @QuarkusTest -public class LambdaHandlerTest { +class LambdaHandlerTest { @Test - public void testSimpleLambdaSuccess() throws Exception { + void testSimpleLambdaSuccess() throws Exception { // you test your lambdas by invoking on http://localhost:8081 // this works in dev mode too diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/test/java/org/acme/FunctionTest.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/test/java/org/acme/FunctionTest.java index b699e5643d4eb..9481e8461430f 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/test/java/org/acme/FunctionTest.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-example/java/src/test/java/org/acme/FunctionTest.java @@ -27,7 +27,7 @@ * Unit test for Function class. */ @QuarkusTest -public class FunctionTest { +class FunctionTest { @Inject Function function; @@ -36,7 +36,7 @@ public class FunctionTest { * Unit test for HttpTriggerJava method. */ @Test - public void testHttpTriggerJava() throws Exception { + void testHttpTriggerJava() throws Exception { // Setup @SuppressWarnings("unchecked") final HttpRequestMessage> req = mock(HttpRequestMessage.class); diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/java/src/test/java/org/acme/GreetingTest.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/java/src/test/java/org/acme/GreetingTest.java index 2b549c62a38f0..a271a6d55fd65 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/java/src/test/java/org/acme/GreetingTest.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/azure-functions-http-example/java/src/test/java/org/acme/GreetingTest.java @@ -7,10 +7,10 @@ import static org.hamcrest.CoreMatchers.is; @QuarkusTest -public class GreetingTest { +class GreetingTest { @Test - public void testHelloEndpoint() { + void testHelloEndpoint() { given() .when().get("/hello") .then() diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-amazon-lambda-example/java/src/native-test/java/org/acme/funqy/FunqyIT.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-amazon-lambda-example/java/src/native-test/java/org/acme/funqy/FunqyIT.java index 54da79f8c643b..dc381eb9d88b2 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-amazon-lambda-example/java/src/native-test/java/org/acme/funqy/FunqyIT.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-amazon-lambda-example/java/src/native-test/java/org/acme/funqy/FunqyIT.java @@ -3,7 +3,7 @@ import io.quarkus.test.junit.QuarkusIntegrationTest; @QuarkusIntegrationTest -public class FunqyIT extends FunqyTest { +class FunqyIT extends FunqyTest { // Run the same tests diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-amazon-lambda-example/java/src/test/java/org/acme/funqy/FunqyTest.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-amazon-lambda-example/java/src/test/java/org/acme/funqy/FunqyTest.java index 24d660e94898a..4c66de335fe50 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-amazon-lambda-example/java/src/test/java/org/acme/funqy/FunqyTest.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-amazon-lambda-example/java/src/test/java/org/acme/funqy/FunqyTest.java @@ -7,10 +7,10 @@ import static org.hamcrest.CoreMatchers.containsString; @QuarkusTest -public class FunqyTest { +class FunqyTest { @Test - public void testFunqyLambda() throws Exception { + void testFunqyLambda() throws Exception { // you test your lambdas by invoking on http://localhost:8081 // this works in dev mode too diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/test/java/org/acme/funqygooglecloudfunctions/GreetingFunctionsCloudEventsTest.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/test/java/org/acme/funqygooglecloudfunctions/GreetingFunctionsCloudEventsTest.java index ca4f54b69ae9a..40b5f1263d36e 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/test/java/org/acme/funqygooglecloudfunctions/GreetingFunctionsCloudEventsTest.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/test/java/org/acme/funqygooglecloudfunctions/GreetingFunctionsCloudEventsTest.java @@ -10,8 +10,9 @@ @QuarkusTest @WithFunction(value = FunctionType.FUNQY_CLOUD_EVENTS, functionName = "helloCloudEvent") class GreetingFunctionsCloudEventsTest { + @Test - public void testHelloCloudEvent() { + void testHelloCloudEvent() { given() .body("{\n" + " \"bucket\": \"MY_BUCKET\",\n" + diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/test/java/org/acme/funqygooglecloudfunctions/GreetingFunctionsPubSubTest.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/test/java/org/acme/funqygooglecloudfunctions/GreetingFunctionsPubSubTest.java index d01e8941c7cd3..f651ce7ecc394 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/test/java/org/acme/funqygooglecloudfunctions/GreetingFunctionsPubSubTest.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/test/java/org/acme/funqygooglecloudfunctions/GreetingFunctionsPubSubTest.java @@ -10,8 +10,9 @@ @QuarkusTest @WithFunction(value = FunctionType.FUNQY_BACKGROUND, functionName = "helloPubSubWorld") class GreetingFunctionsPubSubTest { + @Test - public void testHelloPubSubWorld() { + void testHelloPubSubWorld() { given() .body("{\"data\":{\"data\":\"world\"}}") .when() diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/test/java/org/acme/funqygooglecloudfunctions/GreetingFunctionsStorageTest.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/test/java/org/acme/funqygooglecloudfunctions/GreetingFunctionsStorageTest.java index 7f12f32d344c7..d1b5f530039c6 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/test/java/org/acme/funqygooglecloudfunctions/GreetingFunctionsStorageTest.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-google-cloud-functions-example/java/src/test/java/org/acme/funqygooglecloudfunctions/GreetingFunctionsStorageTest.java @@ -10,8 +10,9 @@ @QuarkusTest @WithFunction(value = FunctionType.FUNQY_BACKGROUND, functionName = "helloGCSWorld") class GreetingFunctionsStorageTest { + @Test - public void testHelloGCSWorld() { + void testHelloGCSWorld() { given() .body("{\"data\":{\"name\":\"hello.txt\"}}") .when() diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-knative-events-example/java/src/native-test/java/org/acme/funqy/cloudevent/FunqyIT.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-knative-events-example/java/src/native-test/java/org/acme/funqy/cloudevent/FunqyIT.java index 963be67ece024..49cf0ae5dfad3 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-knative-events-example/java/src/native-test/java/org/acme/funqy/cloudevent/FunqyIT.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-knative-events-example/java/src/native-test/java/org/acme/funqy/cloudevent/FunqyIT.java @@ -3,7 +3,7 @@ import io.quarkus.test.junit.QuarkusIntegrationTest; @QuarkusIntegrationTest -public class FunqyIT extends FunqyTest { +class FunqyIT extends FunqyTest { // Run the same tests diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-knative-events-example/java/src/test/java/org/acme/funqy/cloudevent/FunqyTest.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-knative-events-example/java/src/test/java/org/acme/funqy/cloudevent/FunqyTest.java index 38b42eacc8236..77d96b870c209 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-knative-events-example/java/src/test/java/org/acme/funqy/cloudevent/FunqyTest.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/funqy-knative-events-example/java/src/test/java/org/acme/funqy/cloudevent/FunqyTest.java @@ -12,10 +12,10 @@ import static org.hamcrest.Matchers.notNullValue; @QuarkusTest -public class FunqyTest { +class FunqyTest { @Test - public void testCloudEvent() { + void testCloudEvent() { RestAssured.given().contentType("application/json") .header("ce-specversion", "1.0") .header("ce-id", UUID.randomUUID().toString()) diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/test/java/org/acme/googlecloudfunctions/HelloWorldBackgroundFunctionTest.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/test/java/org/acme/googlecloudfunctions/HelloWorldBackgroundFunctionTest.java index b23ec79b21331..bb9e8d776e7a1 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/test/java/org/acme/googlecloudfunctions/HelloWorldBackgroundFunctionTest.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/test/java/org/acme/googlecloudfunctions/HelloWorldBackgroundFunctionTest.java @@ -10,8 +10,9 @@ @QuarkusTest @WithFunction(FunctionType.BACKGROUND) class HelloWorldBackgroundFunctionTest { + @Test - public void testAccept() { + void testAccept() { given() .body("{\"data\":{\"name\":\"hello.txt\"}}") .when() diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/test/java/org/acme/googlecloudfunctions/HelloWorldCloudEventsFunctionTest.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/test/java/org/acme/googlecloudfunctions/HelloWorldCloudEventsFunctionTest.java index 69239e60e7106..cbec1062d2d51 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/test/java/org/acme/googlecloudfunctions/HelloWorldCloudEventsFunctionTest.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/test/java/org/acme/googlecloudfunctions/HelloWorldCloudEventsFunctionTest.java @@ -10,8 +10,9 @@ @QuarkusTest @WithFunction(FunctionType.CLOUD_EVENTS) class HelloWorldCloudEventsFunctionTest { + @Test - public void testAccept() { + void testAccept() { given() .body("{\n" + " \"bucket\": \"MY_BUCKET\",\n" + diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/test/java/org/acme/googlecloudfunctions/HelloWorldHttpFunctionTest.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/test/java/org/acme/googlecloudfunctions/HelloWorldHttpFunctionTest.java index bbbec9751c95b..e82b3bd500884 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/test/java/org/acme/googlecloudfunctions/HelloWorldHttpFunctionTest.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/examples/google-cloud-functions-example/java/src/test/java/org/acme/googlecloudfunctions/HelloWorldHttpFunctionTest.java @@ -11,8 +11,9 @@ @QuarkusTest @WithFunction(FunctionType.HTTP) class HelloWorldHttpFunctionTest { + @Test - public void testService() { + void testService() { when() .get() .then() diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/funqy-http-codestart/java/src/test/java/org/acme/MyFunctionsTest.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/funqy-http-codestart/java/src/test/java/org/acme/MyFunctionsTest.java index d192d90bf55db..4e5e7bf38c635 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/funqy-http-codestart/java/src/test/java/org/acme/MyFunctionsTest.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/funqy-http-codestart/java/src/test/java/org/acme/MyFunctionsTest.java @@ -8,10 +8,10 @@ import static org.hamcrest.Matchers.containsString; @QuarkusTest -public class MyFunctionsTest { +class MyFunctionsTest { @Test - public void testFun() { + void testFun() { given() .post("/fun") .then() @@ -20,7 +20,7 @@ public void testFun() { } @Test - public void testFunWithName() { + void testFunWithName() { given() .contentType(ContentType.JSON) .body("{\"name\": \"Friend\"}") diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/grpc-codestart/java/src/test/java/org/acme/HelloGrpcServiceTest.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/grpc-codestart/java/src/test/java/org/acme/HelloGrpcServiceTest.java index 2d8502471625e..fb8e1a9ea63ae 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/grpc-codestart/java/src/test/java/org/acme/HelloGrpcServiceTest.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/grpc-codestart/java/src/test/java/org/acme/HelloGrpcServiceTest.java @@ -10,13 +10,13 @@ import org.junit.jupiter.api.Test; @QuarkusTest -public class HelloGrpcServiceTest { +class HelloGrpcServiceTest { @GrpcClient HelloGrpc helloGrpc; @Test - public void testHello() { + void testHello() { HelloReply reply = helloGrpc .sayHello(HelloRequest.newBuilder().setName("Neo").build()).await().atMost(Duration.ofSeconds(5)); assertEquals("Hello Neo!", reply.getMessage()); diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/reactive-routes-codestart/java/src/test/java/org/acme/MyDeclarativeRoutesTest.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/reactive-routes-codestart/java/src/test/java/org/acme/MyDeclarativeRoutesTest.java index 0b9bcdd542565..a8b62b792351d 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/reactive-routes-codestart/java/src/test/java/org/acme/MyDeclarativeRoutesTest.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/reactive-routes-codestart/java/src/test/java/org/acme/MyDeclarativeRoutesTest.java @@ -8,15 +8,16 @@ import io.quarkus.test.junit.QuarkusTest; @QuarkusTest -public class MyDeclarativeRoutesTest { - @Test - public void testHelloRouteEndpointWithNameParameter() { - given().when().get("hello-route?name=Quarkus").then().statusCode(200).body(is("Hello Quarkus !!")); - } +class MyDeclarativeRoutesTest { - @Test - public void testHelloRouteEndpointWithoutNameParameter() { - given().when().get("hello-route").then().statusCode(200).body(is("Hello Reactive Route !!")); - } + @Test + void testHelloRouteEndpointWithNameParameter() { + given().when().get("hello-route?name=Quarkus").then().statusCode(200).body(is("Hello Quarkus !!")); + } + + @Test + void testHelloRouteEndpointWithoutNameParameter() { + given().when().get("hello-route").then().statusCode(200).body(is("Hello Reactive Route !!")); + } } diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/java/src/native-test/java/org/acme/{resource.class-name}IT.tpl.qute.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/java/src/native-test/java/org/acme/{resource.class-name}IT.tpl.qute.java index 41cdadc177952..e1dc4213b0e54 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/java/src/native-test/java/org/acme/{resource.class-name}IT.tpl.qute.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/java/src/native-test/java/org/acme/{resource.class-name}IT.tpl.qute.java @@ -3,6 +3,6 @@ import io.quarkus.test.junit.QuarkusIntegrationTest; @QuarkusIntegrationTest -public class {resource.class-name}IT extends {resource.class-name}Test { +class {resource.class-name}IT extends {resource.class-name}Test { // Execute the same tests but in packaged mode. } diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/java/src/test/java/org/acme/{resource.class-name}Test.tpl.qute.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/java/src/test/java/org/acme/{resource.class-name}Test.tpl.qute.java index aca41d9528af0..424df995ecd22 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/java/src/test/java/org/acme/{resource.class-name}Test.tpl.qute.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-codestart/java/src/test/java/org/acme/{resource.class-name}Test.tpl.qute.java @@ -7,10 +7,10 @@ import static org.hamcrest.CoreMatchers.is; @QuarkusTest -public class {resource.class-name}Test { +class {resource.class-name}Test { @Test - public void testHelloEndpoint() { + void testHelloEndpoint() { given() .when().get("{resource.path}") .then() diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/java/src/native-test/java/org/acme/{resource.class-name}IT.tpl.qute.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/java/src/native-test/java/org/acme/{resource.class-name}IT.tpl.qute.java index 41cdadc177952..e1dc4213b0e54 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/java/src/native-test/java/org/acme/{resource.class-name}IT.tpl.qute.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/java/src/native-test/java/org/acme/{resource.class-name}IT.tpl.qute.java @@ -3,6 +3,6 @@ import io.quarkus.test.junit.QuarkusIntegrationTest; @QuarkusIntegrationTest -public class {resource.class-name}IT extends {resource.class-name}Test { +class {resource.class-name}IT extends {resource.class-name}Test { // Execute the same tests but in packaged mode. } diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/java/src/test/java/org/acme/{resource.class-name}Test.tpl.qute.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/java/src/test/java/org/acme/{resource.class-name}Test.tpl.qute.java index aca41d9528af0..424df995ecd22 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/java/src/test/java/org/acme/{resource.class-name}Test.tpl.qute.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/resteasy-reactive-codestart/java/src/test/java/org/acme/{resource.class-name}Test.tpl.qute.java @@ -7,10 +7,10 @@ import static org.hamcrest.CoreMatchers.is; @QuarkusTest -public class {resource.class-name}Test { +class {resource.class-name}Test { @Test - public void testHelloEndpoint() { + void testHelloEndpoint() { given() .when().get("{resource.path}") .then() diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/java/src/native-test/java/org/acme/{resource.class-name}IT.tpl.qute.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/java/src/native-test/java/org/acme/{resource.class-name}IT.tpl.qute.java index 41cdadc177952..e1dc4213b0e54 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/java/src/native-test/java/org/acme/{resource.class-name}IT.tpl.qute.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/java/src/native-test/java/org/acme/{resource.class-name}IT.tpl.qute.java @@ -3,6 +3,6 @@ import io.quarkus.test.junit.QuarkusIntegrationTest; @QuarkusIntegrationTest -public class {resource.class-name}IT extends {resource.class-name}Test { +class {resource.class-name}IT extends {resource.class-name}Test { // Execute the same tests but in packaged mode. } diff --git a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/java/src/test/java/org/acme/{resource.class-name}Test.tpl.qute.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/java/src/test/java/org/acme/{resource.class-name}Test.tpl.qute.java index aca41d9528af0..424df995ecd22 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/java/src/test/java/org/acme/{resource.class-name}Test.tpl.qute.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/spring-web-codestart/java/src/test/java/org/acme/{resource.class-name}Test.tpl.qute.java @@ -7,10 +7,10 @@ import static org.hamcrest.CoreMatchers.is; @QuarkusTest -public class {resource.class-name}Test { +class {resource.class-name}Test { @Test - public void testHelloEndpoint() { + void testHelloEndpoint() { given() .when().get("{resource.path}") .then() diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/AmazonLambdaCodestartTest/testContent/src_test_java_ilove_quark_us_lambda_LambdaHandlerTest.java b/integration-tests/devtools/src/test/resources/__snapshots__/AmazonLambdaCodestartTest/testContent/src_test_java_ilove_quark_us_lambda_LambdaHandlerTest.java index a4cd06203b932..cd1bd5451b62a 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/AmazonLambdaCodestartTest/testContent/src_test_java_ilove_quark_us_lambda_LambdaHandlerTest.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/AmazonLambdaCodestartTest/testContent/src_test_java_ilove_quark_us_lambda_LambdaHandlerTest.java @@ -8,10 +8,10 @@ import static org.hamcrest.CoreMatchers.containsString; @QuarkusTest -public class LambdaHandlerTest { +class LambdaHandlerTest { @Test - public void testSimpleLambdaSuccess() throws Exception { + void testSimpleLambdaSuccess() throws Exception { // you test your lambdas by invoking on http://localhost:8081 // this works in dev mode too diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/FunqyAmazonLambdaCodestartTest/testContent/src_test_java_ilove_quark_us_funqy_FunqyIT.java b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyAmazonLambdaCodestartTest/testContent/src_test_java_ilove_quark_us_funqy_FunqyIT.java index 832ce6b1bb785..96079c2b9bed6 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/FunqyAmazonLambdaCodestartTest/testContent/src_test_java_ilove_quark_us_funqy_FunqyIT.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyAmazonLambdaCodestartTest/testContent/src_test_java_ilove_quark_us_funqy_FunqyIT.java @@ -3,7 +3,7 @@ import io.quarkus.test.junit.QuarkusIntegrationTest; @QuarkusIntegrationTest -public class FunqyIT extends FunqyTest { +class FunqyIT extends FunqyTest { // Run the same tests diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/FunqyAmazonLambdaCodestartTest/testContent/src_test_java_ilove_quark_us_funqy_FunqyTest.java b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyAmazonLambdaCodestartTest/testContent/src_test_java_ilove_quark_us_funqy_FunqyTest.java index b0f17923ae8ce..04c81b4b1adc8 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/FunqyAmazonLambdaCodestartTest/testContent/src_test_java_ilove_quark_us_funqy_FunqyTest.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyAmazonLambdaCodestartTest/testContent/src_test_java_ilove_quark_us_funqy_FunqyTest.java @@ -7,10 +7,10 @@ import static org.hamcrest.CoreMatchers.containsString; @QuarkusTest -public class FunqyTest { +class FunqyTest { @Test - public void testFunqyLambda() throws Exception { + void testFunqyLambda() throws Exception { // you test your lambdas by invoking on http://localhost:8081 // this works in dev mode too diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctionsCloudEventsTest.java b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctionsCloudEventsTest.java index b902cb6bc535d..cac635f032d1b 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctionsCloudEventsTest.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctionsCloudEventsTest.java @@ -10,8 +10,9 @@ @QuarkusTest @WithFunction(value = FunctionType.FUNQY_CLOUD_EVENTS, functionName = "helloCloudEvent") class GreetingFunctionsCloudEventsTest { + @Test - public void testHelloCloudEvent() { + void testHelloCloudEvent() { given() .body("{\n" + " \"bucket\": \"MY_BUCKET\",\n" + diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctionsPubSubTest.java b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctionsPubSubTest.java index 96f75c3ec6777..b65eddf782c72 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctionsPubSubTest.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctionsPubSubTest.java @@ -10,8 +10,9 @@ @QuarkusTest @WithFunction(value = FunctionType.FUNQY_BACKGROUND, functionName = "helloPubSubWorld") class GreetingFunctionsPubSubTest { + @Test - public void testHelloPubSubWorld() { + void testHelloPubSubWorld() { given() .body("{\"data\":{\"data\":\"world\"}}") .when() diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctionsStorageTest.java b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctionsStorageTest.java index be65eb45f9dc5..440603c077412 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctionsStorageTest.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyGoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_funqygooglecloudfunctions_GreetingFunctionsStorageTest.java @@ -10,8 +10,9 @@ @QuarkusTest @WithFunction(value = FunctionType.FUNQY_BACKGROUND, functionName = "helloGCSWorld") class GreetingFunctionsStorageTest { + @Test - public void testHelloGCSWorld() { + void testHelloGCSWorld() { given() .body("{\"data\":{\"name\":\"hello.txt\"}}") .when() diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/FunqyHttpCodestartTest/testContent/src_test_java_ilove_quark_us_MyFunctionsTest.java b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyHttpCodestartTest/testContent/src_test_java_ilove_quark_us_MyFunctionsTest.java index 65850cad613eb..d128e607ddd2e 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/FunqyHttpCodestartTest/testContent/src_test_java_ilove_quark_us_MyFunctionsTest.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyHttpCodestartTest/testContent/src_test_java_ilove_quark_us_MyFunctionsTest.java @@ -8,10 +8,10 @@ import static org.hamcrest.Matchers.containsString; @QuarkusTest -public class MyFunctionsTest { +class MyFunctionsTest { @Test - public void testFun() { + void testFun() { given() .post("/fun") .then() @@ -20,7 +20,7 @@ public void testFun() { } @Test - public void testFunWithName() { + void testFunWithName() { given() .contentType(ContentType.JSON) .body("{\"name\": \"Friend\"}") diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/FunqyKnativeEventsCodestartTest/testContent/src_test_java_ilove_quark_us_funqy_cloudevent_FunqyIT.java b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyKnativeEventsCodestartTest/testContent/src_test_java_ilove_quark_us_funqy_cloudevent_FunqyIT.java index a7d713e8d54f4..4c9e912a408b0 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/FunqyKnativeEventsCodestartTest/testContent/src_test_java_ilove_quark_us_funqy_cloudevent_FunqyIT.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyKnativeEventsCodestartTest/testContent/src_test_java_ilove_quark_us_funqy_cloudevent_FunqyIT.java @@ -3,7 +3,7 @@ import io.quarkus.test.junit.QuarkusIntegrationTest; @QuarkusIntegrationTest -public class FunqyIT extends FunqyTest { +class FunqyIT extends FunqyTest { // Run the same tests diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/FunqyKnativeEventsCodestartTest/testContent/src_test_java_ilove_quark_us_funqy_cloudevent_FunqyTest.java b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyKnativeEventsCodestartTest/testContent/src_test_java_ilove_quark_us_funqy_cloudevent_FunqyTest.java index 9eb6515ddcc7f..456e6c162119f 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/FunqyKnativeEventsCodestartTest/testContent/src_test_java_ilove_quark_us_funqy_cloudevent_FunqyTest.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/FunqyKnativeEventsCodestartTest/testContent/src_test_java_ilove_quark_us_funqy_cloudevent_FunqyTest.java @@ -12,10 +12,10 @@ import static org.hamcrest.Matchers.notNullValue; @QuarkusTest -public class FunqyTest { +class FunqyTest { @Test - public void testCloudEvent() { + void testCloudEvent() { RestAssured.given().contentType("application/json") .header("ce-specversion", "1.0") .header("ce-id", UUID.randomUUID().toString()) diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_googlecloudfunctions_HelloWorldBackgroundFunctionTest.java b/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_googlecloudfunctions_HelloWorldBackgroundFunctionTest.java index d1226399ee1d4..903e8bbdcf3bb 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_googlecloudfunctions_HelloWorldBackgroundFunctionTest.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_googlecloudfunctions_HelloWorldBackgroundFunctionTest.java @@ -10,8 +10,9 @@ @QuarkusTest @WithFunction(FunctionType.BACKGROUND) class HelloWorldBackgroundFunctionTest { + @Test - public void testAccept() { + void testAccept() { given() .body("{\"data\":{\"name\":\"hello.txt\"}}") .when() diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_googlecloudfunctions_HelloWorldCloudEventsFunctionTest.java b/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_googlecloudfunctions_HelloWorldCloudEventsFunctionTest.java index c407b7258d43f..5cc446ac5a42d 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_googlecloudfunctions_HelloWorldCloudEventsFunctionTest.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_googlecloudfunctions_HelloWorldCloudEventsFunctionTest.java @@ -10,8 +10,9 @@ @QuarkusTest @WithFunction(FunctionType.CLOUD_EVENTS) class HelloWorldCloudEventsFunctionTest { + @Test - public void testAccept() { + void testAccept() { given() .body("{\n" + " \"bucket\": \"MY_BUCKET\",\n" + diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_googlecloudfunctions_HelloWorldHttpFunctionTest.java b/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_googlecloudfunctions_HelloWorldHttpFunctionTest.java index bdc8438f56a97..c211a5d932b4d 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_googlecloudfunctions_HelloWorldHttpFunctionTest.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/GoogleCloudFunctionsCodestartTest/testContent/src_test_java_ilove_quark_us_googlecloudfunctions_HelloWorldHttpFunctionTest.java @@ -11,8 +11,9 @@ @QuarkusTest @WithFunction(FunctionType.HTTP) class HelloWorldHttpFunctionTest { + @Test - public void testService() { + void testService() { when() .get() .then() diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/GrpcCodestartTest/testContent/src_test_java_ilove_quark_us_HelloGrpcServiceTest.java b/integration-tests/devtools/src/test/resources/__snapshots__/GrpcCodestartTest/testContent/src_test_java_ilove_quark_us_HelloGrpcServiceTest.java index 0d49375e4cafd..4f06eb5fc2cf8 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/GrpcCodestartTest/testContent/src_test_java_ilove_quark_us_HelloGrpcServiceTest.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/GrpcCodestartTest/testContent/src_test_java_ilove_quark_us_HelloGrpcServiceTest.java @@ -10,13 +10,13 @@ import org.junit.jupiter.api.Test; @QuarkusTest -public class HelloGrpcServiceTest { +class HelloGrpcServiceTest { @GrpcClient HelloGrpc helloGrpc; @Test - public void testHello() { + void testHello() { HelloReply reply = helloGrpc .sayHello(HelloRequest.newBuilder().setName("Neo").build()).await().atMost(Duration.ofSeconds(5)); assertEquals("Hello Neo!", reply.getMessage()); diff --git a/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveRoutesCodestartTest/testContent/src_test_java_ilove_quark_us_MyDeclarativeRoutesTest.java b/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveRoutesCodestartTest/testContent/src_test_java_ilove_quark_us_MyDeclarativeRoutesTest.java index 7e340f95e9b83..c2f8bb718b797 100644 --- a/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveRoutesCodestartTest/testContent/src_test_java_ilove_quark_us_MyDeclarativeRoutesTest.java +++ b/integration-tests/devtools/src/test/resources/__snapshots__/ReactiveRoutesCodestartTest/testContent/src_test_java_ilove_quark_us_MyDeclarativeRoutesTest.java @@ -8,15 +8,16 @@ import io.quarkus.test.junit.QuarkusTest; @QuarkusTest -public class MyDeclarativeRoutesTest { - @Test - public void testHelloRouteEndpointWithNameParameter() { - given().when().get("hello-route?name=Quarkus").then().statusCode(200).body(is("Hello Quarkus !!")); - } +class MyDeclarativeRoutesTest { - @Test - public void testHelloRouteEndpointWithoutNameParameter() { - given().when().get("hello-route").then().statusCode(200).body(is("Hello Reactive Route !!")); - } + @Test + void testHelloRouteEndpointWithNameParameter() { + given().when().get("hello-route?name=Quarkus").then().statusCode(200).body(is("Hello Quarkus !!")); + } + + @Test + void testHelloRouteEndpointWithoutNameParameter() { + given().when().get("hello-route").then().statusCode(200).body(is("Hello Reactive Route !!")); + } }