Minor fixes

This commit is contained in:
Andrea Boriero 2020-07-20 10:03:10 +01:00
parent 17dacc3592
commit 3fde31a61d
2 changed files with 3 additions and 3 deletions

View File

@ -97,7 +97,7 @@ public final class Cascade {
hasUninitializedLazyProperties &&
!persister.getBytecodeEnhancementMetadata().isAttributeLoaded( parent, propertyName );
Type type = types[i];
final Type type = types[i];
if ( style.doCascade( action ) ) {
final Object child;
if ( isUninitializedProperty ) {

View File

@ -44,9 +44,9 @@ import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
@ -138,7 +138,7 @@ public class JoinedInheritanceEagerTest {
public void selectBaseType(SessionFactoryScope scope) {
scope.inTransaction( session -> {
List result = session.createQuery( "from BaseEntity" ).list();
assertEquals( 2, result.size() );
assertThat( result.size(), is( 2 ) );
} );
}