HHH-1780 rollback wrongly commented test

This commit is contained in:
Strong Liu 2011-07-28 17:53:06 +08:00
parent aac7e3ee7e
commit b818f94eb1
1 changed files with 12 additions and 12 deletions

View File

@ -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);