HHH-6618 running hibernate functional test cases on DB matrix
This commit is contained in:
parent
822ae2a135
commit
aa5bcfa2cc
|
@ -1,49 +0,0 @@
|
|||
/*
|
||||
* Hibernate, Relational Persistence for Idiomatic Java
|
||||
*
|
||||
* Copyright (c) 2011, Red Hat Inc. or third-party contributors as
|
||||
* indicated by the @author tags or express copyright attribution
|
||||
* statements applied by the authors. All third-party contributions are
|
||||
* distributed under license by Red Hat Inc.
|
||||
*
|
||||
* This copyrighted material is made available to anyone wishing to use, modify,
|
||||
* copy, or redistribute it subject to the terms and conditions of the GNU
|
||||
* Lesser General Public License, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||
* for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this distribution; if not, write to:
|
||||
* Free Software Foundation, Inc.
|
||||
* 51 Franklin Street, Fifth Floor
|
||||
* Boston, MA 02110-1301 USA
|
||||
*/
|
||||
package org.hibernate.test.util;
|
||||
|
||||
import org.hibernate.internal.util.StringHelper;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import org.hibernate.testing.junit4.BaseUnitTestCase;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
/**
|
||||
* @author Steve Ebersole
|
||||
*/
|
||||
public class StringHelperTest extends BaseUnitTestCase {
|
||||
@Test
|
||||
public void testAliasGeneration() {
|
||||
assertSimpleAlias( "xyz", "xyz_" );
|
||||
assertSimpleAlias( "_xyz", "xyz_" );
|
||||
assertSimpleAlias( "!xyz", "xyz_" );
|
||||
assertSimpleAlias( "abcdefghijklmnopqrstuvwxyz", "abcdefghij_" );
|
||||
}
|
||||
|
||||
private void assertSimpleAlias(String source, String expected) {
|
||||
assertEquals( expected, StringHelper.generateAlias( source ) );
|
||||
}
|
||||
}
|
|
@ -21,7 +21,7 @@
|
|||
* 51 Franklin Street, Fifth Floor
|
||||
* Boston, MA 02110-1301 USA
|
||||
*/
|
||||
package org.hibernate.util;
|
||||
package org.hibernate.test.util;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
|
@ -21,7 +21,7 @@
|
|||
* 51 Franklin Street, Fifth Floor
|
||||
* Boston, MA 02110-1301 USA
|
||||
*/
|
||||
package org.hibernate.util;
|
||||
package org.hibernate.test.util;
|
||||
import java.io.InputStream;
|
||||
import java.io.Serializable;
|
||||
|
||||
|
@ -60,7 +60,7 @@ public class SerializationHelperTest extends BaseUnitTestCase {
|
|||
|
||||
@Test
|
||||
public void testSerializeDeserialize() throws Exception {
|
||||
Class clazz = Thread.currentThread().getContextClassLoader().loadClass( "org.hibernate.util.SerializableThing" );
|
||||
Class clazz = Thread.currentThread().getContextClassLoader().loadClass( "org.hibernate.test.util.SerializableThing" );
|
||||
Object instance = clazz.newInstance();
|
||||
|
||||
// SerializableType.toBytes() logic, as called from SerializableType.disassemble()
|
||||
|
@ -105,7 +105,7 @@ public class SerializationHelperTest extends BaseUnitTestCase {
|
|||
if ( name.equals( "org.hibernate.LockMode" ) ) {
|
||||
throw new ClassNotFoundException( "Could not find "+ name );
|
||||
}
|
||||
if ( ! name.equals( "org.hibernate.util.SerializableThing" ) ) {
|
||||
if ( ! name.equals( "org.hibernate.test.util.SerializableThing" ) ) {
|
||||
return getParent().loadClass( name );
|
||||
}
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
* 51 Franklin Street, Fifth Floor
|
||||
* Boston, MA 02110-1301 USA
|
||||
*/
|
||||
package org.hibernate.util;
|
||||
package org.hibernate.test.util;
|
||||
|
||||
import org.junit.Test;
|
||||
import static org.junit.Assert.assertEquals;
|
Loading…
Reference in New Issue