Package org.apache.hadoop.hbase.snapshot

Examples of org.apache.hadoop.hbase.snapshot.SnapshotTask


  public void testErrorPropagation() throws Exception {
    ForeignExceptionDispatcher error = mock(ForeignExceptionDispatcher.class);
    SnapshotDescription snapshot = SnapshotDescription.newBuilder().setName("snapshot")
        .setTable("table").build();
    final Exception thrown = new Exception("Failed!");
    SnapshotTask fail = new SnapshotTask(snapshot, error) {
      @Override
      public Void call() {
        snapshotFailure("Injected failure", thrown);
        return null;
      }
    };
    fail.call();

    verify(error, Mockito.times(1)).receive(any(ForeignException.class));
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hbase.snapshot.SnapshotTask

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.