Search in sources :

Example 6 with DropTablePlan

use of io.crate.planner.node.ddl.DropTablePlan in project crate by crate.

the class DropTablePlannerTest method testDropTable.

@Test
public void testDropTable() throws Exception {
    DropTablePlan plan = e.plan("drop table users");
    assertThat(plan.tableInfo().ident().name(), is("users"));
}
Also used : DropTablePlan(io.crate.planner.node.ddl.DropTablePlan) Test(org.junit.Test) CrateDummyClusterServiceUnitTest(io.crate.test.integration.CrateDummyClusterServiceUnitTest)

Aggregations

DropTablePlan (io.crate.planner.node.ddl.DropTablePlan)6 CrateDummyClusterServiceUnitTest (io.crate.test.integration.CrateDummyClusterServiceUnitTest)6 Test (org.junit.Test)6