hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-15972 Addendum with unit test
Date Tue, 07 Jun 2016 20:29:10 GMT
Repository: hbase
Updated Branches:
  refs/heads/HBASE-7912 581338b67 -> 658092788


HBASE-15972 Addendum with unit test


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/65809278
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/65809278
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/65809278

Branch: refs/heads/HBASE-7912
Commit: 65809278813dbeede9daa6bb485aff5d23d9ae75
Parents: 581338b
Author: tedyu <yuzhihong@gmail.com>
Authored: Tue Jun 7 13:29:19 2016 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Tue Jun 7 13:29:19 2016 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/backup/TestBackupDescribe.java  | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/65809278/hbase-server/src/test/java/org/apache/hadoop/hbase/backup/TestBackupDescribe.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/backup/TestBackupDescribe.java
b/hbase-server/src/test/java/org/apache/hadoop/hbase/backup/TestBackupDescribe.java
index 4a35a06..af377c3 100644
--- a/hbase-server/src/test/java/org/apache/hadoop/hbase/backup/TestBackupDescribe.java
+++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/backup/TestBackupDescribe.java
@@ -18,6 +18,7 @@
 
 package org.apache.hadoop.hbase.backup;
 
+import static org.junit.Assert.assertNotEquals;
 import static org.junit.Assert.assertTrue;
 
 import java.io.ByteArrayOutputStream;
@@ -64,6 +65,14 @@ public class TestBackupDescribe extends TestBackupBase {
   }
 
   @Test
+  public void testBackupSetCommandWithNonExistentTable() throws Exception {
+    String[] args = new String[]{"set", "add", "some_set", "table" }; 
+    // Run backup
+    int ret = ToolRunner.run(conf1, new BackupDriver(), args);
+    assertNotEquals(ret, 0);
+  }
+
+  @Test
   public void testBackupDescribeCommand() throws Exception {
 
     LOG.info("test backup describe on a single table with data: command-line");


Mime
View raw message