Java 类org.apache.zookeeper.OpResult.CheckResult 实例源码

项目:fuck_zookeeper    文件:MultiTransactionTest.java   
/**
 * 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));
}
项目:https-github.com-apache-zookeeper    文件:MultiTransactionTest.java   
/**
 * 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));
}
项目:ZooKeeper    文件:MultiTransactionTest.java   
/**
 * 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));
}
项目:StreamProcessingInfrastructure    文件:MultiTransactionTest.java   
/**
 * 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));
}
项目:bigstreams    文件:MultiTransactionTest.java   
/**
 * 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));
}
项目:zookeeper    文件:MultiTransactionTest.java   
/**
 * 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));
}
项目:SecureKeeper    文件:MultiTransactionTest.java   
/**
 * 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));
}
项目:SecureKeeper    文件:MultiTransactionTest.java   
/**
 * 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));
}
项目:StreamBench    文件:MultiTransactionTest.java   
/**
 * 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));
}
项目:LoadBalanced_zk    文件:MultiTransactionTest.java   
/**
 * 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));
}
项目:LoadBalanced_zk    文件:MultiTransactionTest.java   
/**
 * 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));
}
项目:zookeeper-pkg    文件:MultiTransactionTest.java   
/**
 * 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));
}