Search in sources :

Example 1 with DefaultSchemaFilter

use of org.hibernate.tool.schema.internal.DefaultSchemaFilter in project hibernate-orm by hibernate.

the class SchemaFilterTest method dropSchema_unfiltered.

@Test
public void dropSchema_unfiltered() {
    RecordingTarget target = doDrop(new DefaultSchemaFilter());
    Assert.assertThat(target.getActions(SCHEMA_DROP), containsExactly("the_schema_1", "the_schema_2"));
    Assert.assertThat(target.getActions(TABLE_DROP), containsExactly("the_entity_0", "the_schema_1.the_entity_1", "the_schema_1.the_entity_2", "the_schema_2.the_entity_3", "the_schema_2.the_entity_4"));
}
Also used : DefaultSchemaFilter(org.hibernate.tool.schema.internal.DefaultSchemaFilter) Test(org.junit.Test)

Example 2 with DefaultSchemaFilter

use of org.hibernate.tool.schema.internal.DefaultSchemaFilter in project hibernate-orm by hibernate.

the class SchemaFilterTest method createSchema_unfiltered.

@Test
public void createSchema_unfiltered() {
    RecordingTarget target = doCreation(new DefaultSchemaFilter());
    Assert.assertThat(target.getActions(SCHEMA_CREATE), containsExactly("the_schema_1", "the_schema_2"));
    Assert.assertThat(target.getActions(TABLE_CREATE), containsExactly("the_entity_0", "the_schema_1.the_entity_1", "the_schema_1.the_entity_2", "the_schema_2.the_entity_3", "the_schema_2.the_entity_4"));
}
Also used : DefaultSchemaFilter(org.hibernate.tool.schema.internal.DefaultSchemaFilter) Test(org.junit.Test)

Example 3 with DefaultSchemaFilter

use of org.hibernate.tool.schema.internal.DefaultSchemaFilter in project hibernate-orm by hibernate.

the class CatalogFilterTest method dropCatalog_unfiltered.

@Test
public void dropCatalog_unfiltered() {
    RecordingTarget target = doDrop(new DefaultSchemaFilter());
    Assert.assertThat(target.getActions(RecordingTarget.Category.TABLE_DROP), containsExactly("the_entity_0", "the_catalog_1.the_entity_1", "the_catalog_1.the_entity_2", "the_catalog_2.the_entity_3", "the_catalog_2.the_entity_4"));
}
Also used : DefaultSchemaFilter(org.hibernate.tool.schema.internal.DefaultSchemaFilter) Test(org.junit.Test)

Example 4 with DefaultSchemaFilter

use of org.hibernate.tool.schema.internal.DefaultSchemaFilter in project hibernate-orm by hibernate.

the class SchemaFilterTest method createSchema_unfiltered.

@Test
public void createSchema_unfiltered() {
    RecordingTarget target = doCreation(new DefaultSchemaFilter());
    Assert.assertThat(target.getActions(RecordingTarget.Category.SCHEMA_CREATE), containsExactly("the_schema_1", "the_schema_2"));
    Assert.assertThat(target.getActions(RecordingTarget.Category.TABLE_CREATE), containsExactly("the_entity_0", "the_schema_1.the_entity_1", "the_schema_1.the_entity_2", "the_schema_2.the_entity_3", "the_schema_2.the_entity_4"));
}
Also used : DefaultSchemaFilter(org.hibernate.tool.schema.internal.DefaultSchemaFilter) Test(org.junit.Test)

Example 5 with DefaultSchemaFilter

use of org.hibernate.tool.schema.internal.DefaultSchemaFilter in project hibernate-orm by hibernate.

the class CatalogFilterTest method createCatalog_unfiltered.

@Test
public void createCatalog_unfiltered() {
    RecordingTarget target = doCreation(new DefaultSchemaFilter());
    Assert.assertThat(target.getActions(TABLE_CREATE), containsExactly("the_entity_0", "the_catalog_1.the_entity_1", "the_catalog_1.the_entity_2", "the_catalog_2.the_entity_3", "the_catalog_2.the_entity_4"));
}
Also used : DefaultSchemaFilter(org.hibernate.tool.schema.internal.DefaultSchemaFilter) Test(org.junit.Test)

Aggregations

DefaultSchemaFilter (org.hibernate.tool.schema.internal.DefaultSchemaFilter)12 Test (org.junit.Test)12