HHH-9142 Commented out not compiling code and marked test @FailureExpected( jiraKey = HHH-9142 )

This commit is contained in:
Andrea Boriero 2014-09-22 11:29:24 +01:00
parent 40efe9fc1c
commit 740078eff8
1 changed files with 8 additions and 5 deletions

View File

@ -35,7 +35,7 @@ import org.hibernate.jpa.criteria.PathSource;
import org.hibernate.jpa.criteria.path.SingularAttributeJoin; import org.hibernate.jpa.criteria.path.SingularAttributeJoin;
import org.hibernate.jpa.test.metamodel.AbstractMetamodelSpecificTest; import org.hibernate.jpa.test.metamodel.AbstractMetamodelSpecificTest;
import org.hibernate.mapping.*; import org.hibernate.mapping.*;
import org.hibernate.metamodel.source.MetadataImplementor; import org.hibernate.metamodel.spi.MetadataImplementor;
import org.hibernate.service.spi.SessionFactoryServiceRegistry; import org.hibernate.service.spi.SessionFactoryServiceRegistry;
import org.hibernate.tuple.entity.DynamicMapEntityTuplizer; import org.hibernate.tuple.entity.DynamicMapEntityTuplizer;
import org.hibernate.type.EntityType; import org.hibernate.type.EntityType;
@ -54,6 +54,8 @@ import java.util.Arrays;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import org.hibernate.testing.FailureExpected;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.*; import static org.mockito.Mockito.*;
@ -81,7 +83,8 @@ public class SingularAttributeJoinTest extends AbstractMetamodelSpecificTest {
} }
@Test @Test
public void testEntityModeMapJoinCriteriaQuery() throws Exception { @FailureExpected( jiraKey = "HHH-9142" )
public void testEntityModeMapJoinCriteriaQuery() throws Exception {
final EntityManager entityManager = entityManagerFactory().createEntityManager(); final EntityManager entityManager = entityManagerFactory().createEntityManager();
CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder(); CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();
CriteriaQuery criteriaQuery = criteriaBuilder.createQuery(); CriteriaQuery criteriaQuery = criteriaBuilder.createQuery();
@ -129,9 +132,9 @@ public class SingularAttributeJoinTest extends AbstractMetamodelSpecificTest {
@Override @Override
public void integrate(Configuration configuration, SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry) { public void integrate(Configuration configuration, SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry) {
Mappings mappings = configuration.createMappings(); // Mappings mappings = configuration.createMappings();
addPolicy(mappings); // addPolicy(mappings);
addDistribution(mappings); // addDistribution(mappings);
} }
@Override @Override