HHH-5138 - Redesign types + introduce TypeRegistry & TypeResolver

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19484 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Steve Ebersole 2010-05-12 19:51:26 +00:00
parent a9ba811baf
commit 2c2717013b
1 changed files with 4 additions and 3 deletions

View File

@ -226,11 +226,12 @@ public class TypeTest extends TestCase {
} }
} }
public void testSerializableType() { public void testSerializableType() {
final Serializable original = new SerializableImpl(1); final SerializableImpl original = new SerializableImpl(1);
final Serializable copy = new SerializableImpl(1); final SerializableImpl copy = new SerializableImpl(1);
final Serializable different = new SerializableImpl(2); final SerializableImpl different = new SerializableImpl(2);
runBasicTests( SerializableType.INSTANCE, original, copy, different ); runBasicTests( SerializableType.INSTANCE, original, copy, different );
runBasicTests( new SerializableType<SerializableImpl>( SerializableImpl.class ), original, copy, different );
} }
public void testShortType() { public void testShortType() {