HHH-6409 : correct test to make it determinate

This commit is contained in:
Gail Badner 2012-07-20 19:00:17 -07:00
parent b8f8c90199
commit 05cd530044
1 changed files with 27 additions and 11 deletions

View File

@ -23,6 +23,8 @@
*/
package org.hibernate.metamodel.spi.relational;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
@ -49,17 +51,31 @@ import org.hibernate.testing.junit4.BaseUnitTestCase;
*/
public class ColumnAliasTest extends BaseUnitTestCase {
private final Schema schema = new Schema( null, null );
private final Table table0 = new Table(
schema,
Identifier.toIdentifier( "table0" ),
Identifier.toIdentifier( "table0" )
);
private final Table table1 = new Table(
schema,
Identifier.toIdentifier( "table1" ),
Identifier.toIdentifier( "table1" )
);
private Schema schema;
private Table table0;
private Table table1;
@Before
public void setUp() {
schema = new Schema( null, null );
table0 = new Table(
schema,
Identifier.toIdentifier( "table0" ),
Identifier.toIdentifier( "table0" )
);
table1 = new Table(
schema,
Identifier.toIdentifier( "table1" ),
Identifier.toIdentifier( "table1" )
);
}
@After
public void tearDown() {
schema = null;
table0 = null;
table1 = null;
}
@Test
public void testNoCharactersInNameNoTruncation() {