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);
}
Aggregations