use of org.apache.hive.hcatalog.api.repl.NoopReplicationTask in project hive by apache.
the class TestEximReplicationTasks method verifyCreateDbReplicationTask.
private static void verifyCreateDbReplicationTask(ReplicationTask rtask) {
assertEquals(CreateDatabaseReplicationTask.class, rtask.getClass());
assertTrue("CreateDatabaseReplicationTask should be a noop", rtask instanceof NoopReplicationTask);
assertEquals(false, rtask.needsStagingDirs());
assertEquals(true, rtask.isActionable());
for (Command c : rtask.getSrcWhCommands()) {
assertEquals(NoopCommand.class, c.getClass());
}
for (Command c : rtask.getDstWhCommands()) {
assertEquals(NoopCommand.class, c.getClass());
}
}
Aggregations