Search in sources :

Example 1 with DropMappingPlan

use of com.hazelcast.jet.sql.impl.SqlPlanImpl.DropMappingPlan in project hazelcast by hazelcast.

the class PlanExecutorTest method test_dropMappingExecution.

@Test
@Parameters({ "true", "false" })
public void test_dropMappingExecution(boolean ifExists) {
    // given
    String name = "name";
    DropMappingPlan plan = new DropMappingPlan(planKey(), name, ifExists, planExecutor);
    // when
    SqlResult result = planExecutor.execute(plan);
    // then
    assertThat(result.updateCount()).isEqualTo(0);
    verify(catalog).removeMapping(name, ifExists);
}
Also used : DropMappingPlan(com.hazelcast.jet.sql.impl.SqlPlanImpl.DropMappingPlan) SqlResult(com.hazelcast.sql.SqlResult) Parameters(junitparams.Parameters) Test(org.junit.Test)

Aggregations

DropMappingPlan (com.hazelcast.jet.sql.impl.SqlPlanImpl.DropMappingPlan)1 SqlResult (com.hazelcast.sql.SqlResult)1 Parameters (junitparams.Parameters)1 Test (org.junit.Test)1