String table = getUniqueNames(1)[0];
Connector conn = getConnector();
conn.tableOperations().create(table);
ConditionalWriter cw = conn.createConditionalWriter(table, new ConditionalWriterConfig());
conn.tableOperations().offline(table, true);
ConditionalMutation cm1 = new ConditionalMutation("r1", new Condition("tx", "seq"));
cm1.put("tx", "seq", "1");
cm1.put("data", "x", "a");
Result result = cw.write(cm1);
try {
result.getStatus();
Assert.assertFalse(true);
} catch (AccumuloException ae) {
Assert.assertEquals(TableOfflineException.class, ae.getCause().getClass());
}
cw.close();
try {
conn.createConditionalWriter(table, new ConditionalWriterConfig());
Assert.assertFalse(true);
} catch (TableOfflineException e) {}
}