HHH-14848 - Move Ant tasks + support from hibernate-core into tooling/hibernate-ant
This commit is contained in:
parent
439f4fb208
commit
120019b343
|
@ -12,7 +12,7 @@ import java.io.InputStreamReader;
|
|||
import java.io.StringReader;
|
||||
import java.util.List;
|
||||
|
||||
import org.hibernate.tool.hbm2ddl.MultipleLinesSqlCommandExtractor;
|
||||
import org.hibernate.tool.schema.internal.script.MultiLineSqlScriptExtractor;
|
||||
|
||||
import org.hibernate.testing.orm.junit.DialectContext;
|
||||
import org.junit.Test;
|
||||
|
@ -30,7 +30,7 @@ import static org.hamcrest.MatcherAssert.assertThat;
|
|||
public class MultiLineImportExtractorTest {
|
||||
public static final String IMPORT_FILE = "org/hibernate/orm/test/tool/schema/scripts/multi-line-statements2.sql";
|
||||
|
||||
private final MultipleLinesSqlCommandExtractor extractor = new MultipleLinesSqlCommandExtractor();
|
||||
private final MultiLineSqlScriptExtractor extractor = new MultiLineSqlScriptExtractor();
|
||||
|
||||
@Test
|
||||
public void testExtraction() throws IOException {
|
||||
|
|
|
@ -9,7 +9,7 @@ package org.hibernate.orm.test.tool.schema.scripts;
|
|||
import org.hibernate.cfg.Configuration;
|
||||
import org.hibernate.cfg.Environment;
|
||||
import org.hibernate.dialect.H2Dialect;
|
||||
import org.hibernate.tool.hbm2ddl.MultipleLinesSqlCommandExtractor;
|
||||
import org.hibernate.tool.schema.internal.script.MultiLineSqlScriptExtractor;
|
||||
|
||||
import org.hibernate.testing.AfterClassOnce;
|
||||
import org.hibernate.testing.RequiresDialect;
|
||||
|
@ -18,7 +18,6 @@ import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
|
|||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertNull;
|
||||
|
||||
/**
|
||||
* @author Lukasz Antoniak (lukasz dot antoniak at gmail dot com)
|
||||
|
@ -37,7 +36,7 @@ public class MultiLineImportFileTest extends BaseCoreFunctionalTestCase {
|
|||
);
|
||||
cfg.setProperty(
|
||||
Environment.HBM2DDL_IMPORT_FILES_SQL_EXTRACTOR,
|
||||
MultipleLinesSqlCommandExtractor.class.getName()
|
||||
MultiLineSqlScriptExtractor.class.getName()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import java.io.InputStream;
|
|||
import java.io.InputStreamReader;
|
||||
import java.util.List;
|
||||
|
||||
import org.hibernate.tool.hbm2ddl.MultipleLinesSqlCommandExtractor;
|
||||
import org.hibernate.tool.schema.internal.script.MultiLineSqlScriptExtractor;
|
||||
|
||||
import org.hibernate.testing.TestForIssue;
|
||||
import org.hibernate.testing.orm.junit.DialectContext;
|
||||
|
@ -27,7 +27,7 @@ import static org.hamcrest.MatcherAssert.assertThat;
|
|||
public class MultiLineImportWithSpacesAfterTheLastStatementTest {
|
||||
public static final String IMPORT_FILE = "org/hibernate/orm/test/tool/schema/scripts/multi-line-statements-with-spaces-after-last-delimiter.sql";
|
||||
|
||||
private final MultipleLinesSqlCommandExtractor extractor = new MultipleLinesSqlCommandExtractor();
|
||||
private final MultiLineSqlScriptExtractor extractor = new MultiLineSqlScriptExtractor();
|
||||
|
||||
@Test
|
||||
public void testExtraction() throws Exception {
|
||||
|
|
|
@ -10,7 +10,7 @@ import java.io.InputStream;
|
|||
import java.io.InputStreamReader;
|
||||
import java.util.List;
|
||||
|
||||
import org.hibernate.tool.hbm2ddl.MultipleLinesSqlCommandExtractor;
|
||||
import org.hibernate.tool.schema.internal.script.MultiLineSqlScriptExtractor;
|
||||
|
||||
import org.hibernate.testing.TestForIssue;
|
||||
import org.hibernate.testing.orm.junit.DialectContext;
|
||||
|
@ -27,7 +27,7 @@ import static org.hamcrest.MatcherAssert.assertThat;
|
|||
public class MultiLineImportWithTabsAndSpacesTest {
|
||||
public static final String IMPORT_FILE = "org/hibernate/orm/test/tool/schema/scripts/multi-line-statements-starting-with-tabs-and-spaces.sql";
|
||||
|
||||
private final MultipleLinesSqlCommandExtractor extractor = new MultipleLinesSqlCommandExtractor();
|
||||
private final MultiLineSqlScriptExtractor extractor = new MultiLineSqlScriptExtractor();
|
||||
|
||||
@Test
|
||||
public void testExtraction() throws Exception {
|
||||
|
|
Loading…
Reference in New Issue