From 2f5d35d9040fbe2632682d54ef80e14fd548acc1 Mon Sep 17 00:00:00 2001 From: humberto Date: Tue, 28 Nov 2023 20:53:08 +0100 Subject: [PATCH] #36581 Add @DisabledOnIntegrationTest like other tests --- .../it/panache/PanacheFunctionalityTest.java | 21 ++++++++++++++++++- .../reactive/PanacheFunctionalityTest.java | 3 +++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/PanacheFunctionalityTest.java b/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/PanacheFunctionalityTest.java index 41f7f53e7efbf5..97be6b3a543631 100644 --- a/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/PanacheFunctionalityTest.java +++ b/integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/PanacheFunctionalityTest.java @@ -239,14 +239,17 @@ void testEnhancement27184DeleteDetached() { RestAssured.when().get("/test/testEnhancement27184DeleteDetached").then().body(is("OK")); } + /** + * This test is disabled in native mode as there is no interaction with the quarkus integration test endpoint. + */ @Test @Transactional + @DisabledOnIntegrationTest void testSimpleEntityProjection() { Person person = new Person(); person.name = "1"; person.uniqueName = "1"; person.persist(); - PersonName personName = Person.find(" name = ?1", "1") .project(PersonName.class) .firstResult(); @@ -254,8 +257,12 @@ void testSimpleEntityProjection() { Assertions.assertEquals("1", personName.name); } + /** + * This test is disabled in native mode as there is no interaction with the quarkus integration test endpoint. + */ @Test @Transactional + @DisabledOnIntegrationTest // Test for https://github.com/quarkusio/quarkus/issues/28844 void testSimpleEntityProjection2() { Person person = new Person(); @@ -269,8 +276,12 @@ void testSimpleEntityProjection2() { Assertions.assertEquals("1", personName); } + /** + * This test is disabled in native mode as there is no interaction with the quarkus integration test endpoint. + */ @Test @Transactional + @DisabledOnIntegrationTest void testNestedEntityProjection_WithQuery() { Person person = new Person(); person.name = "2"; @@ -291,8 +302,12 @@ void testNestedEntityProjection_WithQuery() { Assertions.assertEquals("street 2", personDTO.address.street); } + /** + * This test is disabled in native mode as there is no interaction with the quarkus integration test endpoint. + */ @Test @Transactional + @DisabledOnIntegrationTest void testNestedEntityProjection() { Person person = new Person(); person.name = "3"; @@ -313,8 +328,12 @@ void testNestedEntityProjection() { Assertions.assertEquals("Height: 170, weight: 75", personDTO.description.getDescription()); } + /** + * This test is disabled in native mode as there is no interaction with the quarkus integration test endpoint. + */ @Test @Transactional + @DisabledOnIntegrationTest void testDogDto2Projection() { Person hum = new Person(); hum.name = "hum"; diff --git a/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/PanacheFunctionalityTest.java b/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/PanacheFunctionalityTest.java index 777c27c2e79073..5e1910b67d9f4f 100644 --- a/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/PanacheFunctionalityTest.java +++ b/integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/PanacheFunctionalityTest.java @@ -304,6 +304,7 @@ public void testBeerRepository() { RestAssured.when().get("/test-repo/beers").then().body(is("OK")); } + @DisabledOnIntegrationTest @Test @TestReactiveTransaction // Test for https://github.com/quarkusio/quarkus/issues/28844 @@ -322,6 +323,7 @@ void testSelectNameProjection(UniAsserter asserter) { asserter.execute(() -> person.delete()); } + @DisabledOnIntegrationTest @Test @TestReactiveTransaction void testNestedEntityProjection(UniAsserter asserter) { @@ -347,6 +349,7 @@ void testNestedEntityProjection(UniAsserter asserter) { asserter.execute(() -> person.delete()); } + @DisabledOnIntegrationTest @Test @TestReactiveTransaction void testDogDto2Projection(UniAsserter asserter) {