Skip to content

Commit 4f6faec

Browse files
committed
HHH-14725 Fixed test
1 parent f05ce66 commit 4f6faec

File tree

2 files changed

+1
-1
lines changed
  • hibernate-envers/src/test
    • java/org/hibernate/orm/test/envers/integration/blob
    • resources/org/hibernate/orm/test/envers/integration/blob

2 files changed

+1
-1
lines changed

hibernate-envers/src/test/java/org/hibernate/orm/test/envers/integration/blob/BasicBlobTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ protected Class<?>[] getAnnotatedClasses() {
3838
@Test
3939
@Priority(10)
4040
public void initData() {
41-
final Path path = Path.of( getClass().getResource( "./blob.txt" ).getPath() );
41+
final Path path = Path.of( Thread.currentThread().getContextClassLoader().getResource( "org/hibernate/orm/test/envers/integration/blob/blob.txt" ).getPath() );
4242
doInJPA( this::entityManagerFactory, entityManager -> {
4343
try {
4444
final Asset asset = new Asset();

0 commit comments

Comments
 (0)