HHH-6409 : correct test to make it determinate
This commit is contained in:
parent
b8f8c90199
commit
05cd530044
|
@ -23,6 +23,8 @@
|
||||||
*/
|
*/
|
||||||
package org.hibernate.metamodel.spi.relational;
|
package org.hibernate.metamodel.spi.relational;
|
||||||
|
|
||||||
|
import org.junit.After;
|
||||||
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
|
@ -49,17 +51,31 @@ import org.hibernate.testing.junit4.BaseUnitTestCase;
|
||||||
*/
|
*/
|
||||||
public class ColumnAliasTest extends BaseUnitTestCase {
|
public class ColumnAliasTest extends BaseUnitTestCase {
|
||||||
|
|
||||||
private final Schema schema = new Schema( null, null );
|
private Schema schema;
|
||||||
private final Table table0 = new Table(
|
private Table table0;
|
||||||
schema,
|
private Table table1;
|
||||||
Identifier.toIdentifier( "table0" ),
|
|
||||||
Identifier.toIdentifier( "table0" )
|
@Before
|
||||||
);
|
public void setUp() {
|
||||||
private final Table table1 = new Table(
|
schema = new Schema( null, null );
|
||||||
schema,
|
table0 = new Table(
|
||||||
Identifier.toIdentifier( "table1" ),
|
schema,
|
||||||
Identifier.toIdentifier( "table1" )
|
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
|
@Test
|
||||||
public void testNoCharactersInNameNoTruncation() {
|
public void testNoCharactersInNameNoTruncation() {
|
||||||
|
|
Loading…
Reference in New Issue