Skip to content

Commit be53968

Browse files
committed
HHH-19846 Drop JUnit 4 usage
1 parent e04c89f commit be53968

File tree

1 file changed

+4
-2
lines changed
  • hibernate-core/src/test/java/org/hibernate/orm/test/annotations/lob

1 file changed

+4
-2
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/annotations/lob/TextTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import org.hibernate.dialect.SybaseDialect;
99
import org.hibernate.testing.orm.junit.DomainModel;
1010
import org.hibernate.testing.orm.junit.RequiresDialect;
11+
import org.hibernate.testing.orm.junit.SessionFactory;
1112
import org.hibernate.testing.orm.junit.SessionFactoryScope;
1213
import org.junit.jupiter.api.Test;
1314

@@ -27,6 +28,7 @@
2728
LongStringHolder.class
2829
}
2930
)
31+
@SessionFactory
3032
public class TextTest {
3133

3234
private static final int LONG_STRING_SIZE = 10000;
@@ -113,7 +115,7 @@ private Character[] wrapPrimitive(char[] bytes) {
113115
int length = bytes.length;
114116
Character[] result = new Character[length];
115117
for ( int index = 0; index < length; index++ ) {
116-
result[index] = Character.valueOf( bytes[index] );
118+
result[index] = bytes[index];
117119
}
118120
return result;
119121
}
@@ -122,7 +124,7 @@ private char[] unwrapNonPrimitive(Character[] bytes) {
122124
int length = bytes.length;
123125
char[] result = new char[length];
124126
for ( int i = 0; i < length; i++ ) {
125-
result[i] = bytes[i].charValue();
127+
result[i] = bytes[i];
126128
}
127129
return result;
128130
}

0 commit comments

Comments
 (0)