1919
2020import java .io .BufferedInputStream ;
2121import java .io .InputStream ;
22+ import java .net .URISyntaxException ;
2223import java .nio .file .Files ;
2324import java .nio .file .Path ;
2425import java .sql .Blob ;
@@ -39,9 +40,9 @@ protected Class<?>[] getAnnotatedClasses() {
3940
4041 @ Test
4142 @ Priority (10 )
42- public void testGenerateProxyNoStream () {
43+ public void testGenerateProxyNoStream () throws URISyntaxException {
4344 final Path path = Path .of ( Thread .currentThread ().getContextClassLoader ()
44- .getResource ( "org/hibernate/orm/test/envers/integration/blob/blob.txt" ).getPath () );
45+ .getResource ( "org/hibernate/orm/test/envers/integration/blob/blob.txt" ).toURI () );
4546 doInJPA ( this ::entityManagerFactory , entityManager -> {
4647 final Asset asset = new Asset ();
4748 asset .setFileName ( "blob.txt" );
@@ -81,9 +82,9 @@ public void testGenerateProxyNoStream() {
8182 comment = "The driver closes the stream, so it cannot be reused by envers" )
8283 @ SkipForDialect (value = SQLServerDialect .class ,
8384 comment = "The driver closes the stream, so it cannot be reused by envers" )
84- public void testGenerateProxyStream () {
85+ public void testGenerateProxyStream () throws URISyntaxException {
8586 final Path path = Path .of ( Thread .currentThread ().getContextClassLoader ()
86- .getResource ( "org/hibernate/orm/test/envers/integration/blob/blob.txt" ).getPath () );
87+ .getResource ( "org/hibernate/orm/test/envers/integration/blob/blob.txt" ).toURI () );
8788
8889 try (final InputStream stream = new BufferedInputStream ( Files .newInputStream ( path ) )) {
8990 doInJPA ( this ::entityManagerFactory , entityManager -> {
0 commit comments