Skip to content

Commit 261d792

Browse files
committed
HHH-15591 Add @FailureExpected to failing tests
1 parent 39a1ca2 commit 261d792

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/jpa/mapping/UnidirectionalOneToManyOrderColumnTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import jakarta.persistence.Table;
1717

1818
import org.hibernate.testing.orm.junit.EntityManagerFactoryScope;
19+
import org.hibernate.testing.orm.junit.FailureExpected;
1920
import org.hibernate.testing.orm.junit.JiraKey;
2021
import org.hibernate.testing.orm.junit.Jpa;
2122

@@ -177,6 +178,7 @@ public void testRemovingOneAndAddingTwoElements(EntityManagerFactoryScope scope)
177178
}
178179

179180
@Test
181+
@FailureExpected(jiraKey = "HHH-15591")
180182
public void testSwapElementsAtZeroAndOne(EntityManagerFactoryScope scope) {
181183
long parentId = scope.fromTransaction(
182184
entityManager -> {
@@ -197,14 +199,15 @@ public void testSwapElementsAtZeroAndOne(EntityManagerFactoryScope scope) {
197199
ChildData child1 = children.get( 1 );
198200
children.set(0, child1);
199201
children.set(1, child0);
200-
202+
201203
return parent.id;
202204
}
203205
);
204206
// if the above works, then test on {"Two", "One"}
205207
}
206208

207209
@Test
210+
@FailureExpected(jiraKey = "HHH-15591")
208211
public void testAddAtZeroDeleteAtTwo(EntityManagerFactoryScope scope) {
209212
long parentId = scope.fromTransaction(
210213
entityManager -> {

0 commit comments

Comments
 (0)