Ensures the table/family we use for our test exists.
(final String[] args)
| 132 | |
| 133 | /** Ensures the table/family we use for our test exists. */ |
| 134 | private static void preFlightTest(final String[] args) throws Exception { |
| 135 | final HBaseClient client = Common.getOpt(TestIntegration.class, |
| 136 | args); |
| 137 | try { |
| 138 | createOrTruncateTable(client, args[0], args[1]); |
| 139 | } finally { |
| 140 | client.shutdown().join(); |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | /** Creates or truncates the given table name. */ |
| 145 | private static void createOrTruncateTable(final HBaseClient client, |
no test coverage detected