this.copyOffsetInZk.doMain(("-topic " + this.topic + " -src 1 -target 2 -start 6 -end 7 ").split(" "));
long offset =
Long.parseLong(ZkUtils.readData(this.zkClient,
this.query.getOffsetPath(this.groupPrefix + 1, this.topic, new Partition(2, 0))));
Assert.assertEquals(661, offset);
offset =
Long.parseLong(ZkUtils.readData(this.zkClient,
this.query.getOffsetPath(this.groupPrefix + 1, this.topic, new Partition(2, 1))));
Assert.assertEquals(771, offset);
offset =
Long.parseLong(ZkUtils.readData(this.zkClient,
this.query.getOffsetPath(this.groupPrefix + 2, this.topic, new Partition(2, 0))));
Assert.assertEquals(662, offset);
offset =
Long.parseLong(ZkUtils.readData(this.zkClient,
this.query.getOffsetPath(this.groupPrefix + 2, this.topic, new Partition(2, 1))));
Assert.assertEquals(772, offset);
}