Skip to content

Commit 3882775

Browse files
committed
quarkusio#36581 Add @DisabledOnIntegrationTest like other tests
1 parent 445a003 commit 3882775

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

integration-tests/hibernate-orm-panache/src/test/java/io/quarkus/it/panache/PanacheFunctionalityTest.java

+20-1
Original file line numberDiff line numberDiff line change
@@ -239,23 +239,30 @@ void testEnhancement27184DeleteDetached() {
239239
RestAssured.when().get("/test/testEnhancement27184DeleteDetached").then().body(is("OK"));
240240
}
241241

242+
/**
243+
* This test is disabled in native mode as there is no interaction with the quarkus integration test endpoint.
244+
*/
242245
@Test
243246
@Transactional
247+
@DisabledOnIntegrationTest
244248
void testSimpleEntityProjection() {
245249
Person person = new Person();
246250
person.name = "1";
247251
person.uniqueName = "1";
248252
person.persist();
249-
250253
PersonName personName = Person.find(" name = ?1", "1")
251254
.project(PersonName.class)
252255
.firstResult();
253256
person.delete();
254257
Assertions.assertEquals("1", personName.name);
255258
}
256259

260+
/**
261+
* This test is disabled in native mode as there is no interaction with the quarkus integration test endpoint.
262+
*/
257263
@Test
258264
@Transactional
265+
@DisabledOnIntegrationTest
259266
// Test for https://github.com/quarkusio/quarkus/issues/28844
260267
void testSimpleEntityProjection2() {
261268
Person person = new Person();
@@ -269,8 +276,12 @@ void testSimpleEntityProjection2() {
269276
Assertions.assertEquals("1", personName);
270277
}
271278

279+
/**
280+
* This test is disabled in native mode as there is no interaction with the quarkus integration test endpoint.
281+
*/
272282
@Test
273283
@Transactional
284+
@DisabledOnIntegrationTest
274285
void testNestedEntityProjection_WithQuery() {
275286
Person person = new Person();
276287
person.name = "2";
@@ -291,8 +302,12 @@ void testNestedEntityProjection_WithQuery() {
291302
Assertions.assertEquals("street 2", personDTO.address.street);
292303
}
293304

305+
/**
306+
* This test is disabled in native mode as there is no interaction with the quarkus integration test endpoint.
307+
*/
294308
@Test
295309
@Transactional
310+
@DisabledOnIntegrationTest
296311
void testNestedEntityProjection() {
297312
Person person = new Person();
298313
person.name = "3";
@@ -313,8 +328,12 @@ void testNestedEntityProjection() {
313328
Assertions.assertEquals("Height: 170, weight: 75", personDTO.description.getDescription());
314329
}
315330

331+
/**
332+
* This test is disabled in native mode as there is no interaction with the quarkus integration test endpoint.
333+
*/
316334
@Test
317335
@Transactional
336+
@DisabledOnIntegrationTest
318337
void testDogDto2Projection() {
319338
Person hum = new Person();
320339
hum.name = "hum";

integration-tests/hibernate-reactive-panache/src/test/java/io/quarkus/it/panache/reactive/PanacheFunctionalityTest.java

+3
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ public void testBeerRepository() {
304304
RestAssured.when().get("/test-repo/beers").then().body(is("OK"));
305305
}
306306

307+
@DisabledOnIntegrationTest
307308
@Test
308309
@TestReactiveTransaction
309310
// Test for https://github.com/quarkusio/quarkus/issues/28844
@@ -322,6 +323,7 @@ void testSelectNameProjection(UniAsserter asserter) {
322323
asserter.execute(() -> person.delete());
323324
}
324325

326+
@DisabledOnIntegrationTest
325327
@Test
326328
@TestReactiveTransaction
327329
void testNestedEntityProjection(UniAsserter asserter) {
@@ -347,6 +349,7 @@ void testNestedEntityProjection(UniAsserter asserter) {
347349
asserter.execute(() -> person.delete());
348350
}
349351

352+
@DisabledOnIntegrationTest
350353
@Test
351354
@TestReactiveTransaction
352355
void testDogDto2Projection(UniAsserter asserter) {

0 commit comments

Comments
 (0)