本文整理汇总了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));
}
开发者ID:maoling,项目名称:fuck_zookeeper,代码行数:30,代码来源:MultiTransactionTest.java
示例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));
}
开发者ID:didichuxing2,项目名称:https-github.com-apache-zookeeper,代码行数:42,代码来源:MultiTransactionTest.java
注:本文中的org.apache.zookeeper.OpResult.DeleteResult类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论