Minor improvement to the previous backport commit

Signed-off-by: Jan Schatteman <jschatte@redhat.com>
This commit is contained in:
Jan Schatteman 2021-09-14 00:25:50 +02:00
parent 0af8755949
commit 0cbf0e5bf8
4 changed files with 20 additions and 0 deletions

View File

@ -61,6 +61,11 @@ public class EmbeddableWithManyToMany_HHH_11302_Test
"@OneToMany, @ManyToMany or @ElementCollection cannot be used inside an @Embeddable that is also contained within an @ElementCollection"
) );
}
finally {
if ( serviceRegistry() != null ) {
serviceRegistry().destroy();
}
}
}
@Test

View File

@ -61,6 +61,11 @@ public class EmbeddableWithOneToMany_HHH_11302_Test
"@OneToMany, @ManyToMany or @ElementCollection cannot be used inside an @Embeddable that is also contained within an @ElementCollection"
) );
}
finally {
if ( serviceRegistry() != null ) {
serviceRegistry().destroy();
}
}
}
@Test

View File

@ -55,6 +55,11 @@ public class EmbeddableWithOneToMany_HHH_8564_Test
"@OneToMany, @ManyToMany or @ElementCollection cannot be used inside an @Embeddable that is also contained within an @ElementCollection"
) );
}
finally {
if ( serviceRegistry() != null ) {
serviceRegistry().destroy();
}
}
}
@Test

View File

@ -53,6 +53,11 @@ public class EmbeddableWithOneToMany_HHH_8860_Test
"@OneToMany, @ManyToMany or @ElementCollection cannot be used inside an @Embeddable that is also contained within an @ElementCollection"
) );
}
finally {
if ( serviceRegistry() != null ) {
serviceRegistry().destroy();
}
}
}
@Test