Skip to content

Commit 8da3f37

Browse files
committed
HHH-18592 - Remove deprecated @testForissue
Signed-off-by: Jan Schatteman <[email protected]>
1 parent 4a4c55f commit 8da3f37

File tree

1,457 files changed

+3761
-3734
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,457 files changed

+3761
-3734
lines changed

hibernate-c3p0/src/test/java/org/hibernate/test/c3p0/C3P0ConnectionProviderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.ConnectionProviderJdbcConnectionAccess;
1919
import org.hibernate.engine.jdbc.spi.JdbcServices;
2020

21-
import org.hibernate.testing.TestForIssue;
21+
import org.hibernate.testing.orm.junit.JiraKey;
2222
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
2323
import org.junit.Test;
2424

@@ -91,7 +91,7 @@ public void testHHH6635() throws Exception {
9191
assertTrue( "PooledDataSource BMean not found, please verify version of c3p0", mbeanfound );
9292
}
9393

94-
@Test @TestForIssue(jiraKey="HHH-9498")
94+
@Test @JiraKey(value="HHH-9498")
9595
public void testIsolationPropertyCouldBeEmpty() {
9696
C3P0ConnectionProvider provider = new C3P0ConnectionProvider();
9797
try {

hibernate-c3p0/src/test/java/org/hibernate/test/c3p0/C3P0DefaultIsolationLevelTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import org.hibernate.dialect.H2Dialect;
1212

1313
import org.hibernate.testing.RequiresDialect;
14-
import org.hibernate.testing.TestForIssue;
14+
import org.hibernate.testing.orm.junit.JiraKey;
1515
import org.hibernate.testing.jdbc.SQLStatementInterceptor;
1616
import org.hibernate.testing.junit4.BaseNonConfigCoreFunctionalTestCase;
1717
import org.junit.Test;
@@ -25,7 +25,7 @@
2525
/**
2626
* @author Vlad Mihalcea
2727
*/
28-
@TestForIssue(jiraKey = "HHH-12749")
28+
@JiraKey(value = "HHH-12749")
2929
@RequiresDialect(H2Dialect.class)
3030
public class C3P0DefaultIsolationLevelTest extends
3131
BaseNonConfigCoreFunctionalTestCase {

hibernate-c3p0/src/test/java/org/hibernate/test/c3p0/C3P0DifferentIsolationLevelTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import org.hibernate.dialect.H2Dialect;
1212

1313
import org.hibernate.testing.RequiresDialect;
14-
import org.hibernate.testing.TestForIssue;
14+
import org.hibernate.testing.orm.junit.JiraKey;
1515
import org.hibernate.testing.jdbc.SQLStatementInterceptor;
1616
import org.hibernate.testing.junit4.BaseNonConfigCoreFunctionalTestCase;
1717
import org.junit.Test;
@@ -25,7 +25,7 @@
2525
/**
2626
* @author Vlad Mihalcea
2727
*/
28-
@TestForIssue(jiraKey = "HHH-12749")
28+
@JiraKey(value = "HHH-12749")
2929
@RequiresDialect(H2Dialect.class)
3030
public class C3P0DifferentIsolationLevelTest extends
3131
BaseNonConfigCoreFunctionalTestCase {

hibernate-c3p0/src/test/java/org/hibernate/test/c3p0/JdbcCompatibilityTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
import org.hibernate.dialect.SQLServerDialect;
1212

13-
import org.hibernate.testing.TestForIssue;
13+
import org.hibernate.testing.orm.junit.JiraKey;
1414
import org.hibernate.testing.orm.junit.DomainModel;
1515
import org.hibernate.testing.orm.junit.RequiresDialect;
1616
import org.hibernate.testing.orm.junit.SessionFactory;
@@ -33,7 +33,7 @@
3333
public class JdbcCompatibilityTest {
3434

3535
@Test
36-
@TestForIssue(jiraKey = "HHH-11308")
36+
@JiraKey(value = "HHH-11308")
3737
public void testJdbc41(SessionFactoryScope scope) {
3838
scope.inTransaction( session -> {
3939
session.doWork( connection -> {
@@ -45,7 +45,7 @@ public void testJdbc41(SessionFactoryScope scope) {
4545
}
4646

4747
@Test
48-
@TestForIssue(jiraKey = "HHH-11308")
48+
@JiraKey(value = "HHH-11308")
4949
public void testJdbc42(SessionFactoryScope scope) {
5050
scope.inTransaction( session -> {
5151
for ( int i = 0; i < 5; i++ ) {

hibernate-c3p0/src/test/java/org/hibernate/test/c3p0/OracleSQLCallableStatementProxyTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import org.hibernate.dialect.OracleDialect;
1919

2020
import org.hibernate.testing.RequiresDialect;
21-
import org.hibernate.testing.TestForIssue;
21+
import org.hibernate.testing.orm.junit.JiraKey;
2222
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
2323
import org.junit.Before;
2424
import org.junit.Test;
@@ -30,7 +30,7 @@
3030
* @author Vlad Mihalcea
3131
*/
3232
@RequiresDialect(OracleDialect.class)
33-
@TestForIssue( jiraKey = "HHH-10256" )
33+
@JiraKey(value = "HHH-10256")
3434
public class OracleSQLCallableStatementProxyTest extends
3535
BaseCoreFunctionalTestCase {
3636

hibernate-c3p0/src/test/java/org/hibernate/test/c3p0/StatementCacheTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
import org.junit.Assert;
1515
import org.junit.Test;
1616

17-
import org.hibernate.testing.TestForIssue;
1817
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
18+
import org.hibernate.testing.orm.junit.JiraKey;
1919

2020
/**
2121
* Tests that when using cached prepared statement with batching enabled doesn't bleed over into new transactions.
@@ -24,7 +24,7 @@
2424
*/
2525
public class StatementCacheTest extends BaseCoreFunctionalTestCase {
2626
@Test
27-
@TestForIssue( jiraKey = "HHH-7193" )
27+
@JiraKey(value = "HHH-7193")
2828
public void testStatementCaching() {
2929
inSession(
3030
session -> {

hibernate-community-dialects/src/test/java/org/hibernate/community/dialect/DB2LegacyDialectTestCase.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import org.hibernate.query.spi.Limit;
1313
import org.hibernate.type.spi.TypeConfiguration;
1414

15-
import org.hibernate.testing.TestForIssue;
15+
import org.hibernate.testing.orm.junit.JiraKey;
1616
import org.hibernate.testing.junit4.BaseUnitTestCase;
1717
import org.junit.Before;
1818
import org.junit.Test;
@@ -37,7 +37,7 @@ public void setup() {
3737
}
3838

3939
@Test
40-
@TestForIssue(jiraKey = "HHH-6866")
40+
@JiraKey(value = "HHH-6866")
4141
public void testGetDefaultBinaryTypeName() {
4242
String actual = typeConfiguration.getDdlTypeRegistry().getTypeName( Types.BINARY, dialect );
4343
assertEquals(
@@ -48,7 +48,7 @@ public void testGetDefaultBinaryTypeName() {
4848
}
4949

5050
@Test
51-
@TestForIssue(jiraKey = "HHH-6866")
51+
@JiraKey(value = "HHH-6866")
5252
public void testGetExplicitBinaryTypeName() {
5353
// lower bound
5454
String actual = typeConfiguration.getDdlTypeRegistry().getTypeName( Types.BINARY, Size.length( 1) );
@@ -76,7 +76,7 @@ public void testGetExplicitBinaryTypeName() {
7676
}
7777

7878
@Test
79-
@TestForIssue(jiraKey = "HHH-12369")
79+
@JiraKey(value = "HHH-12369")
8080
public void testIntegerOverflowForMaxResults() {
8181
Limit rowSelection = new Limit();
8282
rowSelection.setFirstRow(1);

hibernate-community-dialects/src/test/java/org/hibernate/community/dialect/DerbyLegacyDialectTestCase.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
import static org.junit.Assert.assertEquals;
1313

14-
import org.hibernate.testing.TestForIssue;
14+
import org.hibernate.testing.orm.junit.JiraKey;
1515
import org.hibernate.testing.junit4.BaseUnitTestCase;
1616
import org.junit.Test;
1717

@@ -23,7 +23,7 @@
2323
public class DerbyLegacyDialectTestCase extends BaseUnitTestCase {
2424

2525
@Test
26-
@TestForIssue( jiraKey = "HHH-3972" )
26+
@JiraKey( value = "HHH-3972" )
2727
public void testInsertLimitClause() {
2828
final int limit = 50;
2929
final String input = "select * from tablename t where t.cat = 5";
@@ -34,7 +34,7 @@ public void testInsertLimitClause() {
3434
}
3535

3636
@Test
37-
@TestForIssue( jiraKey = "HHH-3972" )
37+
@JiraKey( value = "HHH-3972" )
3838
public void testInsertLimitWithOffsetClause() {
3939
final int limit = 50;
4040
final int offset = 200;
@@ -46,7 +46,7 @@ public void testInsertLimitWithOffsetClause() {
4646
}
4747

4848
@Test
49-
@TestForIssue( jiraKey = "HHH-3972" )
49+
@JiraKey( value = "HHH-3972" )
5050
public void testInsertLimitWithForUpdateClause() {
5151
final int limit = 50;
5252
final int offset = 200;
@@ -59,7 +59,7 @@ public void testInsertLimitWithForUpdateClause() {
5959
}
6060

6161
@Test
62-
@TestForIssue( jiraKey = "HHH-3972" )
62+
@JiraKey( value = "HHH-3972" )
6363
public void testInsertLimitWithWithClause() {
6464
final int limit = 50;
6565
final int offset = 200;
@@ -72,7 +72,7 @@ public void testInsertLimitWithWithClause() {
7272
}
7373

7474
@Test
75-
@TestForIssue( jiraKey = "HHH-3972" )
75+
@JiraKey( value = "HHH-3972" )
7676
public void testInsertLimitWithForUpdateAndWithClauses() {
7777
final int limit = 50;
7878
final int offset = 200;

hibernate-community-dialects/src/test/java/org/hibernate/community/dialect/InformixFunctionTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import jakarta.persistence.GeneratedValue;
1515
import jakarta.persistence.Id;
1616

17-
import org.hibernate.testing.TestForIssue;
17+
import org.hibernate.testing.orm.junit.JiraKey;
1818
import org.hibernate.testing.orm.junit.DomainModel;
1919
import org.hibernate.testing.orm.junit.RequiresDialect;
2020
import org.hibernate.testing.orm.junit.SessionFactory;
@@ -50,7 +50,7 @@ protected void prepareTest(SessionFactoryScope scope) {
5050
}
5151

5252
@Test
53-
@TestForIssue( jiraKey = "HHH-10846" )
53+
@JiraKey( value = "HHH-10846" )
5454
public void testConcat(SessionFactoryScope scope) {
5555
scope.inTransaction(
5656
(session) -> {
@@ -66,7 +66,7 @@ public void testConcat(SessionFactoryScope scope) {
6666
}
6767

6868
@Test
69-
@TestForIssue( jiraKey = "HHH-10846" )
69+
@JiraKey( value = "HHH-10846" )
7070
public void testSubstring(SessionFactoryScope scope) {
7171
scope.inTransaction(
7272
(session) -> {
@@ -82,7 +82,7 @@ public void testSubstring(SessionFactoryScope scope) {
8282
}
8383

8484
@Test
85-
@TestForIssue( jiraKey = "HHH-10846" )
85+
@JiraKey( value = "HHH-10846" )
8686
public void testSubstr(SessionFactoryScope scope) {
8787
scope.inTransaction(
8888
(session) -> {
@@ -98,7 +98,7 @@ public void testSubstr(SessionFactoryScope scope) {
9898
}
9999

100100
@Test
101-
@TestForIssue( jiraKey = "HHH-10846" )
101+
@JiraKey( value = "HHH-10846" )
102102
public void testCoalesceAndNvl(SessionFactoryScope scope) {
103103
scope.inTransaction(
104104
(session) -> {
@@ -122,7 +122,7 @@ public void testCoalesceAndNvl(SessionFactoryScope scope) {
122122
}
123123

124124
@Test
125-
@TestForIssue( jiraKey = "HHH-10800" )
125+
@JiraKey( value = "HHH-10800" )
126126
public void testCurrentDate(SessionFactoryScope scope) {
127127
scope.inTransaction(
128128
(session) -> {
@@ -145,7 +145,7 @@ public void testCurrentDate(SessionFactoryScope scope) {
145145
}
146146

147147
@Test
148-
@TestForIssue( jiraKey = "HHH-10800" )
148+
@JiraKey( value = "HHH-10800" )
149149
public void testCurrentTimestamp(SessionFactoryScope scope) {
150150
scope.inTransaction(
151151
(session) -> {

0 commit comments

Comments
 (0)