@Test public void dropSchema_filtered() { RecordingTarget target = doDrop(new TestSchemaFilter()); Assert.assertThat(target.getActions("schema.drop"), containsExactly("the_schema_1")); Assert.assertThat( target.getActions("table.drop"), containsExactly("the_entity_0", "the_schema_1.the_entity_1")); }
@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")); }