HHH-14848 - Move Ant tasks + support from hibernate-core into tooling/hibernate-ant

This commit is contained in:
Steve Ebersole 2021-09-29 02:11:49 -05:00
parent 439f4fb208
commit 120019b343
4 changed files with 8 additions and 9 deletions

View File

@ -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 {

View File

@ -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()
);
}

View File

@ -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 {

View File

@ -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 {