From 9d7b1b85f72f01223246c633ac62a04edb6d6058 Mon Sep 17 00:00:00 2001 From: Marco Bungart Date: Sun, 7 May 2023 00:33:02 +0200 Subject: [PATCH] Cleanup codestarter tests - Remove unnecessary modifiers - Unify line-breaks - Unify indentation --- .../src/test/java/org/acme/lambda/LambdaHandlerTest.java | 5 ++--- .../java/src/native-test/java/org/acme/funqy/FunqyIT.java | 2 +- .../java/src/test/java/org/acme/funqy/FunqyTest.java | 5 ++--- .../GreetingFunctionsCloudEventsTest.java | 2 +- .../GreetingFunctionsPubSubTest.java | 2 +- .../GreetingFunctionsStorageTest.java | 2 +- .../java/org/acme/funqy/cloudevent/FunqyIT.java | 2 +- .../src/test/java/org/acme/funqy/cloudevent/FunqyTest.java | 5 ++--- .../HelloWorldBackgroundFunctionTest.java | 2 +- .../HelloWorldCloudEventsFunctionTest.java | 2 +- .../googlecloudfunctions/HelloWorldHttpFunctionTest.java | 2 +- .../java/src/test/java/org/acme/FunctionTest.java | 4 ++-- .../java/src/test/java/org/acme/GreetingTest.java | 5 ++--- .../java/src/test/java/org/acme/MyFunctionsTest.java | 7 +++---- .../java/src/test/java/org/acme/HelloGrpcServiceTest.java | 5 ++--- .../java/org/acme/{resource.class-name}IT.tpl.qute.java | 2 +- .../java/org/acme/{resource.class-name}Test.tpl.qute.java | 5 ++--- .../java/org/acme/{resource.class-name}IT.tpl.qute.java | 2 +- .../java/org/acme/{resource.class-name}Test.tpl.qute.java | 5 ++--- .../java/org/acme/{resource.class-name}IT.tpl.qute.java | 2 +- .../java/org/acme/{resource.class-name}Test.tpl.qute.java | 5 ++--- 21 files changed, 32 insertions(+), 41 deletions(-) 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..ec935b9b5975f 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,9 @@ 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/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..878e31c2a6704 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,9 @@ 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..881889a1a0952 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 @@ -11,7 +11,7 @@ @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..02bd0fc89ccc5 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 @@ -11,7 +11,7 @@ @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..8ef9bfc106896 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 @@ -11,7 +11,7 @@ @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..0340c6450543a 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,9 @@ 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..db6ed1f55963f 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 @@ -11,7 +11,7 @@ @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..4dcd0bdfb1224 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 @@ -11,7 +11,7 @@ @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..0307a6da30ceb 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 @@ -12,7 +12,7 @@ @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/azure-functions-codestart/java/src/test/java/org/acme/FunctionTest.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/azure-functions-codestart/java/src/test/java/org/acme/FunctionTest.java index b699e5643d4eb..9481e8461430f 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/azure-functions-codestart/java/src/test/java/org/acme/FunctionTest.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/azure-functions-codestart/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/extension-codestarts/azure-functions-http-codestart/java/src/test/java/org/acme/GreetingTest.java b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/azure-functions-http-codestart/java/src/test/java/org/acme/GreetingTest.java index 2b549c62a38f0..a78bbfdbeeb8a 100644 --- a/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/azure-functions-http-codestart/java/src/test/java/org/acme/GreetingTest.java +++ b/devtools/project-core-extension-codestarts/src/main/resources/codestarts/quarkus/extension-codestarts/azure-functions-http-codestart/java/src/test/java/org/acme/GreetingTest.java @@ -7,10 +7,9 @@ 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/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..862782c740b53 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,9 @@ import static org.hamcrest.Matchers.containsString; @QuarkusTest -public class MyFunctionsTest { - +class MyFunctionsTest { @Test - public void testFun() { + void testFun() { given() .post("/fun") .then() @@ -20,7 +19,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..16e9bc1ee25ad 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,12 @@ 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/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..b02cd1aac42e2 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,9 @@ 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..b02cd1aac42e2 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,9 @@ 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..b02cd1aac42e2 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,9 @@ 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()