Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
quarkusio#36581 Add @DisabledOnIntegrationTest like other tests
Browse files Browse the repository at this point in the history
humcqc committed Jan 30, 2024
1 parent 8fcbf80 commit 2f5d35d
Showing 2 changed files with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -239,23 +239,30 @@ 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();
person.delete();
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";
Original file line number Diff line number Diff line change
@@ -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) {

0 comments on commit 2f5d35d

Please sign in to comment.