FileDocCategorySizeDatePackage
StringHelperTest.javaAPI DocHibernate 3.2.5811Tue Dec 12 16:22:26 GMT 2006org.hibernate.test.util

StringHelperTest

public class StringHelperTest extends org.hibernate.junit.UnitTestCase
author
Steve Ebersole

Fields Summary
Constructors Summary
public StringHelperTest(String string)

		super( string );
	
Methods Summary
private voidassertSimpleAlias(java.lang.String source, java.lang.String expected)

		assertEquals( expected, StringHelper.generateAlias( source ) );
	
public static junit.framework.Testsuite()

		return new TestSuite( StringHelperTest.class );
	
public voidtestAliasGeneration()

		assertSimpleAlias( "xyz", "xyz_" );
		assertSimpleAlias( "_xyz", "xyz_" );
		assertSimpleAlias( "!xyz", "xyz_" );
		assertSimpleAlias( "abcdefghijklmnopqrstuvwxyz", "abcdefghij_" );