NIFI-7055: Removed unit test that is now covered by ListValidator

Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com>

This closes #4114.
This commit is contained in:
Matthew Burgess 2020-03-04 19:54:27 -05:00 committed by Pierre Villard
parent f1c6e92df5
commit b82fec41d9
No known key found for this signature in database
GPG Key ID: BEE1599F0726E9CD
1 changed files with 0 additions and 26 deletions

View File

@ -189,32 +189,6 @@ public class PutCassandraRecordTest {
testRunner.assertNotValid();
}
@Test
public void testUpdateZeroLengthUpdateKeys() throws InitializationException {
setUpStandardTestConfig();
testRunner.setProperty(PutCassandraRecord.STATEMENT_TYPE, PutCassandraRecord.UPDATE_TYPE);
testRunner.setProperty(PutCassandraRecord.UPDATE_METHOD, PutCassandraRecord.INCR_TYPE);
testRunner.setProperty(PutCassandraRecord.UPDATE_KEYS, ",");
testRunner.setProperty(PutCassandraRecord.BATCH_STATEMENT_TYPE, PutCassandraRecord.COUNTER_TYPE);
testRunner.assertValid();
recordReader.addSchemaField("name", RecordFieldType.STRING);
recordReader.addSchemaField("age", RecordFieldType.INT);
recordReader.addSchemaField("goals", RecordFieldType.STRING);
recordReader.addRecord("John Doe", 48, "1");
recordReader.addRecord("Jane Doe", 47, "1");
recordReader.addRecord("Sally Doe", 47, "1");
testRunner.enqueue("");
testRunner.run();
testRunner.assertTransferCount(PutCassandraRecord.REL_FAILURE, 1);
testRunner.assertTransferCount(PutCassandraRecord.REL_SUCCESS, 0);
testRunner.assertTransferCount(PutCassandraRecord.REL_RETRY, 0);
}
@Test
public void testUpdateSetLoggedBatch() throws InitializationException {
setUpStandardTestConfig();