Skip to content

Commit 58e68ee

Browse files
committed
HHH-7706 reorg the imports to see how many @FailureExpectedWithMetamodel left
1 parent 064c355 commit 58e68ee

File tree

99 files changed

+271
-281
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+271
-281
lines changed

hibernate-core/src/test/java/org/hibernate/dialect/resolver/DialectFactoryTest.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@
2929
import java.util.Map;
3030
import java.util.Properties;
3131

32+
import org.junit.Before;
33+
import org.junit.Test;
34+
3235
import org.hibernate.HibernateException;
3336
import org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl;
34-
import org.hibernate.boot.registry.classloading.spi.ClassLoadingException;
3537
import org.hibernate.boot.registry.selector.internal.StrategySelectorBuilder;
3638
import org.hibernate.boot.registry.selector.spi.StrategySelectionException;
3739
import org.hibernate.cfg.Environment;
@@ -60,10 +62,6 @@
6062
import org.hibernate.engine.jdbc.dialect.internal.DialectResolverSet;
6163
import org.hibernate.engine.jdbc.dialect.internal.StandardDialectResolver;
6264
import org.hibernate.engine.jdbc.dialect.spi.DialectResolver;
63-
64-
import org.junit.Before;
65-
import org.junit.Test;
66-
6765
import org.hibernate.testing.junit4.BaseUnitTestCase;
6866

6967
import static org.junit.Assert.assertEquals;

hibernate-core/src/test/java/org/hibernate/dialect/resolver/DialectResolverTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,18 @@
2222
* Boston, MA 02110-1301 USA
2323
*/
2424
package org.hibernate.dialect.resolver;
25+
2526
import java.sql.SQLException;
2627

2728
import org.junit.Test;
2829

2930
import org.hibernate.dialect.Dialect;
3031
import org.hibernate.dialect.Mocks;
3132
import org.hibernate.dialect.TestingDialects;
32-
import org.hibernate.exception.JDBCConnectionException;
3333
import org.hibernate.engine.jdbc.dialect.internal.BasicDialectResolver;
3434
import org.hibernate.engine.jdbc.dialect.internal.DialectResolverSet;
3535
import org.hibernate.engine.jdbc.dialect.spi.DialectResolver;
36+
import org.hibernate.exception.JDBCConnectionException;
3637
import org.hibernate.testing.junit4.BaseUnitTestCase;
3738

3839
import static org.junit.Assert.assertEquals;

hibernate-core/src/test/java/org/hibernate/metamodel/internal/source/AssertSourcesTest.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,10 @@
2323
*/
2424
package org.hibernate.metamodel.internal.source;
2525

26-
import static org.junit.Assert.assertEquals;
27-
import static org.junit.Assert.assertFalse;
28-
import static org.junit.Assert.assertNotNull;
29-
import static org.junit.Assert.assertNull;
30-
import static org.junit.Assert.assertTrue;
31-
3226
import java.util.Iterator;
3327

28+
import org.junit.Test;
29+
3430
import org.hibernate.EntityMode;
3531
import org.hibernate.boot.registry.StandardServiceRegistry;
3632
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
@@ -52,7 +48,12 @@
5248
import org.hibernate.metamodel.spi.source.TableSource;
5349
import org.hibernate.metamodel.spi.source.TableSpecificationSource;
5450
import org.hibernate.testing.junit4.BaseUnitTestCase;
55-
import org.junit.Test;
51+
52+
import static org.junit.Assert.assertEquals;
53+
import static org.junit.Assert.assertFalse;
54+
import static org.junit.Assert.assertNotNull;
55+
import static org.junit.Assert.assertNull;
56+
import static org.junit.Assert.assertTrue;
5657

5758
/**
5859
* @author Steve Ebersole

hibernate-core/src/test/java/org/hibernate/metamodel/internal/source/MetadataImplTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,9 @@
3333
import org.hibernate.metamodel.Metadata;
3434
import org.hibernate.metamodel.MetadataSources;
3535
import org.hibernate.metamodel.SessionFactoryBuilder;
36-
import org.hibernate.metamodel.spi.binding.FetchProfile;
3736
import org.hibernate.metamodel.internal.MetadataImpl;
3837
import org.hibernate.metamodel.internal.SessionFactoryBuilderImpl;
39-
38+
import org.hibernate.metamodel.spi.binding.FetchProfile;
4039
import org.hibernate.testing.junit4.BaseUnitTestCase;
4140

4241
import static junit.framework.Assert.assertEquals;

hibernate-core/src/test/java/org/hibernate/metamodel/internal/source/SessionFactoryBuilderImplTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
import org.hibernate.metamodel.internal.MetadataImpl;
4242
import org.hibernate.metamodel.internal.SessionFactoryBuilderImpl;
4343
import org.hibernate.proxy.EntityNotFoundDelegate;
44-
4544
import org.hibernate.testing.junit4.BaseUnitTestCase;
4645
import org.hibernate.type.Type;
4746

hibernate-core/src/test/java/org/hibernate/metamodel/internal/source/annotations/entity/ElementCollectionBindingTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,9 @@
3333

3434
import org.junit.Test;
3535

36-
import org.hibernate.annotations.IndexColumn;
3736
import org.hibernate.jaxb.spi.SourceType;
3837
import org.hibernate.metamodel.spi.binding.BagBinding;
3938
import org.hibernate.metamodel.spi.binding.EntityBinding;
40-
import org.hibernate.metamodel.spi.binding.ListBinding;
4139
import org.hibernate.metamodel.spi.relational.Column;
4240
import org.hibernate.metamodel.spi.relational.TableSpecification;
4341
import org.hibernate.metamodel.spi.source.MappingException;

hibernate-core/src/test/java/org/hibernate/metamodel/internal/source/annotations/entity/EmbeddableBindingTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535

3636
import org.hibernate.annotations.Parent;
3737
import org.hibernate.annotations.Target;
38-
import org.hibernate.metamodel.spi.binding.CompositeAttributeBinding;
3938
import org.hibernate.metamodel.spi.binding.AggregatedCompositeAttributeBinding;
4039
import org.hibernate.metamodel.spi.binding.BasicAttributeBinding;
40+
import org.hibernate.metamodel.spi.binding.CompositeAttributeBinding;
4141
import org.hibernate.metamodel.spi.binding.EntityBinding;
4242
import org.hibernate.testing.junit4.BaseAnnotationBindingTestCase;
4343
import org.hibernate.testing.junit4.Resources;

hibernate-core/src/test/java/org/hibernate/metamodel/internal/source/annotations/entity/IdentifierGeneratorTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,13 @@
2424

2525
package org.hibernate.metamodel.internal.source.annotations.entity;
2626

27-
import static junit.framework.Assert.assertEquals;
28-
import static junit.framework.Assert.assertFalse;
29-
import static junit.framework.Assert.assertNotNull;
30-
import static junit.framework.Assert.assertTrue;
31-
import static junit.framework.Assert.fail;
32-
3327
import javax.persistence.Entity;
3428
import javax.persistence.GeneratedValue;
3529
import javax.persistence.GenerationType;
3630
import javax.persistence.Id;
3731

32+
import org.junit.Test;
33+
3834
import org.hibernate.annotations.GenericGenerator;
3935
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
4036
import org.hibernate.dialect.H2Dialect;
@@ -52,7 +48,11 @@
5248
import org.hibernate.testing.junit4.BaseAnnotationBindingTestCase;
5349
import org.hibernate.testing.junit4.Resources;
5450

55-
import org.junit.Test;
51+
import static junit.framework.Assert.assertEquals;
52+
import static junit.framework.Assert.assertFalse;
53+
import static junit.framework.Assert.assertNotNull;
54+
import static junit.framework.Assert.assertTrue;
55+
import static junit.framework.Assert.fail;
5656

5757
/**
5858
* @author Hardy Ferentschik

hibernate-core/src/test/java/org/hibernate/metamodel/internal/source/annotations/entity/MapsIdTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
3737
import org.hibernate.metamodel.MetadataSources;
3838
import org.hibernate.metamodel.spi.source.MappingException;
39-
4039
import org.hibernate.testing.junit4.BaseAnnotationBindingTestCase;
4140

4241
import static junit.framework.Assert.assertEquals;

hibernate-core/src/test/java/org/hibernate/metamodel/internal/source/annotations/entity/TemporalBindingTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,24 @@
2323
*/
2424
package org.hibernate.metamodel.internal.source.annotations.entity;
2525

26-
import static org.junit.Assert.assertEquals;
27-
import static org.junit.Assert.assertNotNull;
28-
import static org.junit.Assert.assertTrue;
29-
3026
import java.util.Date;
31-
3227
import javax.persistence.Entity;
3328
import javax.persistence.Id;
3429
import javax.persistence.Temporal;
3530
import javax.persistence.TemporalType;
3631

32+
import org.junit.Test;
33+
3734
import org.hibernate.metamodel.spi.binding.AttributeBinding;
3835
import org.hibernate.metamodel.spi.binding.EntityBinding;
3936
import org.hibernate.metamodel.spi.binding.HibernateTypeDescriptor;
4037
import org.hibernate.testing.junit4.BaseAnnotationBindingTestCase;
4138
import org.hibernate.testing.junit4.Resources;
4239
import org.hibernate.type.TimestampType;
43-
import org.junit.Test;
40+
41+
import static org.junit.Assert.assertEquals;
42+
import static org.junit.Assert.assertNotNull;
43+
import static org.junit.Assert.assertTrue;
4444

4545
/**
4646
* @author Strong Liu

hibernate-core/src/test/java/org/hibernate/metamodel/internal/source/annotations/global/FetchProfileBinderTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,12 @@
3535
import org.hibernate.annotations.FetchProfile;
3636
import org.hibernate.annotations.FetchProfiles;
3737
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
38-
import org.hibernate.metamodel.MetadataSources;
3938
import org.hibernate.boot.registry.classloading.spi.ClassLoaderService;
4039
import org.hibernate.boot.registry.internal.StandardServiceRegistryImpl;
40+
import org.hibernate.metamodel.MetadataSources;
4141
import org.hibernate.metamodel.internal.MetadataImpl;
4242
import org.hibernate.metamodel.internal.source.annotations.AnnotationBindingContextImpl;
4343
import org.hibernate.metamodel.internal.source.annotations.util.JandexHelper;
44-
4544
import org.hibernate.testing.junit4.BaseUnitTestCase;
4645

4746
import static junit.framework.Assert.fail;

hibernate-core/src/test/java/org/hibernate/metamodel/internal/source/annotations/global/QueryBinderTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,16 @@
3131
import org.junit.Test;
3232

3333
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
34+
import org.hibernate.boot.registry.classloading.spi.ClassLoaderService;
35+
import org.hibernate.boot.registry.internal.StandardServiceRegistryImpl;
3436
import org.hibernate.cfg.NotYetImplementedException;
3537
import org.hibernate.engine.query.spi.sql.NativeSQLQueryReturn;
3638
import org.hibernate.engine.query.spi.sql.NativeSQLQueryRootReturn;
3739
import org.hibernate.engine.spi.NamedSQLQueryDefinition;
3840
import org.hibernate.metamodel.MetadataSources;
39-
import org.hibernate.boot.registry.classloading.spi.ClassLoaderService;
40-
import org.hibernate.boot.registry.internal.StandardServiceRegistryImpl;
4141
import org.hibernate.metamodel.internal.MetadataImpl;
4242
import org.hibernate.metamodel.internal.source.annotations.AnnotationBindingContextImpl;
4343
import org.hibernate.metamodel.internal.source.annotations.util.JandexHelper;
44-
4544
import org.hibernate.testing.junit4.BaseUnitTestCase;
4645

4746
import static junit.framework.Assert.assertEquals;

hibernate-core/src/test/java/org/hibernate/metamodel/internal/source/annotations/util/BaseAnnotationIndexTestCase.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,15 @@
3030
import org.junit.After;
3131
import org.junit.Before;
3232

33-
import org.hibernate.metamodel.MetadataSources;
3433
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
3534
import org.hibernate.boot.registry.classloading.spi.ClassLoaderService;
35+
import org.hibernate.metamodel.MetadataSources;
3636
import org.hibernate.metamodel.internal.MetadataImpl;
3737
import org.hibernate.metamodel.internal.source.annotations.AnnotationBindingContext;
3838
import org.hibernate.metamodel.internal.source.annotations.AnnotationBindingContextImpl;
3939
import org.hibernate.metamodel.internal.source.annotations.entity.EmbeddableHierarchy;
4040
import org.hibernate.metamodel.spi.binding.SingularAttributeBinding;
4141
import org.hibernate.metamodel.spi.source.EntityHierarchy;
42-
4342
import org.hibernate.testing.junit4.BaseUnitTestCase;
4443

4544
/**

hibernate-core/src/test/java/org/hibernate/metamodel/internal/source/annotations/xml/mocker/AbstractMockerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838

3939
import org.hibernate.AnnotationException;
4040
import org.hibernate.HibernateException;
41+
import org.hibernate.boot.registry.classloading.spi.ClassLoaderService;
4142
import org.hibernate.jaxb.spi.orm.JaxbEntityMappings;
4243
import org.hibernate.service.ServiceRegistry;
43-
import org.hibernate.boot.registry.classloading.spi.ClassLoaderService;
4444
import org.hibernate.testing.ServiceRegistryBuilder;
4545

4646
import static org.junit.Assert.assertEquals;

hibernate-core/src/test/java/org/hibernate/metamodel/internal/source/annotations/xml/mocker/XmlHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@
3636
import org.jboss.logging.Logger;
3737
import org.xml.sax.SAXException;
3838

39+
import org.hibernate.boot.registry.classloading.spi.ClassLoaderService;
3940
import org.hibernate.internal.CoreMessageLogger;
4041
import org.hibernate.jaxb.spi.JaxbRoot;
4142
import org.hibernate.jaxb.spi.Origin;
42-
import org.hibernate.boot.registry.classloading.spi.ClassLoaderService;
4343

4444
/**
4545
* @author Hardy Ferentschik

hibernate-core/src/test/java/org/hibernate/metamodel/spi/binding/BasicAnnotationBindingTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@
2323
*/
2424
package org.hibernate.metamodel.spi.binding;
2525

26-
import org.hibernate.metamodel.MetadataSources;
2726
import org.junit.Test;
2827

28+
import org.hibernate.metamodel.MetadataSources;
29+
2930
/**
3031
* Basic tests of annotation based binding code
3132
*

hibernate-core/src/test/java/org/hibernate/test/abstractembeddedcomponents/cid/AbstractCompositeIdTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
import org.hibernate.Session;
2929
import org.hibernate.Transaction;
30-
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
3130
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
3231

3332
/**

hibernate-core/src/test/java/org/hibernate/test/annotations/access/AccessTest.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,16 @@
2323
*/
2424
package org.hibernate.test.annotations.access;
2525

26-
import static org.junit.Assert.assertEquals;
27-
import static org.junit.Assert.assertFalse;
28-
import static org.junit.Assert.assertNotNull;
29-
import static org.junit.Assert.assertNull;
26+
import org.junit.Test;
3027

3128
import org.hibernate.Session;
3229
import org.hibernate.Transaction;
3330
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
34-
import org.junit.Test;
31+
32+
import static org.junit.Assert.assertEquals;
33+
import static org.junit.Assert.assertFalse;
34+
import static org.junit.Assert.assertNotNull;
35+
import static org.junit.Assert.assertNull;
3536

3637
/**
3738
* @author Emmanuel Bernard

hibernate-core/src/test/java/org/hibernate/test/annotations/access/jpa/AccessTest.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,21 @@
2323
*/
2424
package org.hibernate.test.annotations.access.jpa;
2525

26-
import static org.junit.Assert.assertEquals;
27-
import static org.junit.Assert.assertFalse;
28-
import static org.junit.Assert.assertNotNull;
29-
import static org.junit.Assert.assertNull;
30-
import static org.junit.Assert.fail;
31-
3226
import java.util.ArrayList;
3327
import java.util.List;
3428

29+
import org.junit.Test;
30+
3531
import org.hibernate.Session;
3632
import org.hibernate.Transaction;
3733
import org.hibernate.test.annotations.access.Closet;
3834
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
39-
import org.junit.Test;
35+
36+
import static org.junit.Assert.assertEquals;
37+
import static org.junit.Assert.assertFalse;
38+
import static org.junit.Assert.assertNotNull;
39+
import static org.junit.Assert.assertNull;
40+
import static org.junit.Assert.fail;
4041

4142
/**
4243
* @author Emmanuel Bernard

hibernate-core/src/test/java/org/hibernate/test/annotations/beanvalidation/BeanValidationDisabledTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@
2323
*/
2424
package org.hibernate.test.annotations.beanvalidation;
2525

26-
import static org.junit.Assert.assertTrue;
27-
import static org.junit.Assert.fail;
28-
2926
import java.math.BigDecimal;
30-
3127
import javax.validation.ConstraintViolationException;
3228

29+
import org.junit.Test;
30+
3331
import org.hibernate.Session;
3432
import org.hibernate.Transaction;
3533
import org.hibernate.cfg.Configuration;
3634
import org.hibernate.metamodel.spi.binding.EntityBinding;
3735
import org.hibernate.metamodel.spi.relational.Column;
3836
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
39-
import org.junit.Test;
37+
38+
import static org.junit.Assert.assertTrue;
39+
import static org.junit.Assert.fail;
4040

4141
/**
4242
* @author Emmanuel Bernard

hibernate-core/src/test/java/org/hibernate/test/annotations/beanvalidation/DDLTest.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,18 @@
2323
*/
2424
package org.hibernate.test.annotations.beanvalidation;
2525

26-
import static org.junit.Assert.assertEquals;
27-
import static org.junit.Assert.assertFalse;
28-
import static org.junit.Assert.assertTrue;
26+
import org.junit.Test;
2927

3028
import org.hibernate.metamodel.spi.relational.Column;
3129
import org.hibernate.metamodel.spi.relational.PrimaryKey;
3230
import org.hibernate.test.util.SchemaUtil;
3331
import org.hibernate.testing.FailureExpectedWithNewMetamodel;
3432
import org.hibernate.testing.TestForIssue;
3533
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
36-
import org.junit.Test;
34+
35+
import static org.junit.Assert.assertEquals;
36+
import static org.junit.Assert.assertFalse;
37+
import static org.junit.Assert.assertTrue;
3738

3839
/**
3940
* Test verifying that DDL constraints get applied when Bean Validation / Hibernate Validator are enabled.

0 commit comments

Comments
 (0)