本文整理汇总了Java中org.apache.zookeeper.OpResult.DeleteResult类的典型用法代码示例。如果您正苦于以下问题:Java DeleteResult类的具体用法?Java DeleteResult怎么用?Java DeleteResult使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DeleteResult类属于org.apache.zookeeper.OpResult包,在下文中一共展示了DeleteResult类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testOpResultEquals
import org.apache.zookeeper.OpResult.DeleteResult; //导入依赖的package包/类
/**
* Exercise the equals methods of OpResult classes.
*/
@Test
public void testOpResultEquals() {
opEquals(new CreateResult("/foo"),
new CreateResult("/foo"),
new CreateResult("nope"));
opEquals(new CheckResult(),
new CheckResult(),
null);
opEquals(new SetDataResult(new Stat(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)),
new SetDataResult(new Stat(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)),
new SetDataResult(new Stat(11, 12, 13, 14, 15, 16, 17, 18, 19, 110, 111)));
opEquals(new ErrorResult(1),
new ErrorResult(1),
new ErrorResult(2));
opEquals(new DeleteResult(),
new DeleteResult(),
null);
opEquals(new ErrorResult(1),
new ErrorResult(1),
new ErrorResult(2));
}
示例2: testOpResultEquals
import org.apache.zookeeper.OpResult.DeleteResult; //导入依赖的package包/类
/**
* Exercise the equals methods of OpResult classes.
*/
@Test
public void testOpResultEquals() {
opEquals(new CreateResult("/foo"),
new CreateResult("/foo"),
new CreateResult("nope"));
opEquals(new CreateResult("/foo"),
new CreateResult("/foo"),
new CreateResult("/foo", new Stat(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)));
opEquals(new CreateResult("/foo", new Stat(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)),
new CreateResult("/foo", new Stat(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)),
new CreateResult("nope", new Stat(11, 12, 13, 14, 15, 16, 17, 18, 19, 110, 111)));
opEquals(new CreateResult("/foo", new Stat(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)),
new CreateResult("/foo", new Stat(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)),
new CreateResult("/foo"));
opEquals(new CheckResult(),
new CheckResult(),
null);
opEquals(new SetDataResult(new Stat(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)),
new SetDataResult(new Stat(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)),
new SetDataResult(new Stat(11, 12, 13, 14, 15, 16, 17, 18, 19, 110, 111)));
opEquals(new ErrorResult(1),
new ErrorResult(1),
new ErrorResult(2));
opEquals(new DeleteResult(),
new DeleteResult(),
null);
opEquals(new ErrorResult(1),
new ErrorResult(1),
new ErrorResult(2));
}