From b818f94eb127eaaeb03515471ed0c81d4a589cc7 Mon Sep 17 00:00:00 2001 From: Strong Liu Date: Thu, 28 Jul 2011 17:53:06 +0800 Subject: [PATCH] HHH-1780 rollback wrongly commented test --- .../binding/AbstractBasicBindingTests.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/hibernate-core/src/test/java/org/hibernate/metamodel/binding/AbstractBasicBindingTests.java b/hibernate-core/src/test/java/org/hibernate/metamodel/binding/AbstractBasicBindingTests.java index a256fe8053..a73fa71787 100644 --- a/hibernate-core/src/test/java/org/hibernate/metamodel/binding/AbstractBasicBindingTests.java +++ b/hibernate-core/src/test/java/org/hibernate/metamodel/binding/AbstractBasicBindingTests.java @@ -131,18 +131,18 @@ public abstract class AbstractBasicBindingTests extends BaseUnitTestCase { @Test public void testSimpleEntityWithSimpleComponentMapping() { MetadataSources sources = new MetadataSources( serviceRegistry ); -// addSourcesForComponentBinding( sources ); -// MetadataImpl metadata = (MetadataImpl) sources.buildMetadata(); -// EntityBinding entityBinding = metadata.getEntityBinding( SimpleEntityWithSimpleComponent.class.getName() ); -// assertRoot( metadata, entityBinding ); -// assertIdAndSimpleProperty( entityBinding ); -// -// ComponentAttributeBinding componentAttributeBinding = (ComponentAttributeBinding) entityBinding.locateAttributeBinding( "simpleComponent" ); -// assertNotNull( componentAttributeBinding ); -// assertSame( componentAttributeBinding.getAttribute().getSingularAttributeType(), componentAttributeBinding.getAttributeContainer() ); -// assertEquals( SimpleEntityWithSimpleComponent.class.getName() + ".simpleComponent", componentAttributeBinding.getPathBase() ); -// assertSame( entityBinding, componentAttributeBinding.seekEntityBinding() ); -// assertNotNull( componentAttributeBinding.getComponent() ); + addSourcesForComponentBinding( sources ); + MetadataImpl metadata = (MetadataImpl) sources.buildMetadata(); + EntityBinding entityBinding = metadata.getEntityBinding( SimpleEntityWithSimpleComponent.class.getName() ); + assertRoot( metadata, entityBinding ); + assertIdAndSimpleProperty( entityBinding ); + + ComponentAttributeBinding componentAttributeBinding = (ComponentAttributeBinding) entityBinding.locateAttributeBinding( "simpleComponent" ); + assertNotNull( componentAttributeBinding ); + assertSame( componentAttributeBinding.getAttribute().getSingularAttributeType(), componentAttributeBinding.getAttributeContainer() ); + assertEquals( SimpleEntityWithSimpleComponent.class.getName() + ".simpleComponent", componentAttributeBinding.getPathBase() ); + assertSame( entityBinding, componentAttributeBinding.seekEntityBinding() ); + assertNotNull( componentAttributeBinding.getComponent() ); } public abstract void addSourcesForSimpleVersionedEntityBinding(MetadataSources sources);