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(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"));
}
use of org.hibernate.tool.schema.internal.DefaultSchemaFilter in project hibernate-orm by hibernate.
the class SequenceFilterTest method dropSchema_unfiltered.
@Test
public void dropSchema_unfiltered() {
RecordingTarget target = doDrop(new DefaultSchemaFilter());
Assert.assertThat(target.getActions(SEQUENCE_DROP), containsExactly("entity_1_seq_gen", "entity_2_seq_gen"));
}
use of org.hibernate.tool.schema.internal.DefaultSchemaFilter in project hibernate-orm by hibernate.
the class SequenceFilterTest method createSchema_unfiltered.
@Test
public void createSchema_unfiltered() {
RecordingTarget target = doCreation(new DefaultSchemaFilter());
Assert.assertThat(target.getActions(SEQUENCE_CREATE), containsExactly("entity_1_seq_gen", "entity_2_seq_gen"));
}
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(RecordingTarget.Category.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"));
}
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(RecordingTarget.Category.SCHEMA_DROP), containsExactly("the_schema_1", "the_schema_2"));
Assert.assertThat(target.getActions(RecordingTarget.Category.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"));
}
Aggregations