@Test(expected = IllegalArgumentException.class) public void testDormalizerConfWithNoFieldValue() { RowDenormalizerConfig config = new RowDenormalizerConfig("KeyField", "NameField", "", "Firstname," + "Lastname,Address", "Lastname:lname,Address:addr"); config.validate(); }
void validate() { if (keyField.isEmpty()) { throw new IllegalArgumentException("The 'keyField' property must be set."); } else if (nameField.isEmpty()) { throw new IllegalArgumentException("The 'nameField' property must be set."); } else if (valueField.isEmpty()) { throw new IllegalArgumentException("The 'valueField' property must be set."); } else if (outputFields.isEmpty()) { throw new IllegalArgumentException("The 'outputFields' property must be set."); } }
RowDenormalizerConfig extends AggregatorConfig { void validate() { if (keyField.isEmpty()) { throw new IllegalArgumentException("The 'keyField' property must be set."); } else if (nameField.isEmpty()) { throw new IllegalArgumentException("The 'nameField' property must be set."); } else if (valueField.isEmpty()) { throw new IllegalArgumentException("The 'valueField' property must be set."); } else if (outputFields.isEmpty()) { throw new IllegalArgumentException("The 'outputFields' property must be set."); } } }
RowDenormalizerConfig extends AggregatorConfig { void validate() { if (keyField.isEmpty()) { throw new IllegalArgumentException("The 'keyField' property must be set."); } else if (nameField.isEmpty()) { throw new IllegalArgumentException("The 'nameField' property must be set."); } else if (valueField.isEmpty()) { throw new IllegalArgumentException("The 'valueField' property must be set."); } else if (outputFields.isEmpty()) { throw new IllegalArgumentException("The 'outputFields' property must be set."); } } @VisibleForTesting  RowDenormalizerConfig(String keyField, String nameField, String valueField, String outputFields,
                        String fieldAliases); }
RowDenormalizerConfig extends AggregatorConfig { void validate() { if (keyField.isEmpty()) { throw new IllegalArgumentException("The 'keyField' property must be set."); } else if (nameField.isEmpty()) { throw new IllegalArgumentException("The 'nameField' property must be set."); } else if (valueField.isEmpty()) { throw new IllegalArgumentException("The 'valueField' property must be set."); } else if (outputFields.isEmpty()) { throw new IllegalArgumentException("The 'outputFields' property must be set."); } } @VisibleForTesting  RowDenormalizerConfig(String keyField, String nameField, String valueField, String outputFields,
                        String fieldAliases);  }
RowDenormalizerConfig extends AggregatorConfig { void validate() { if (keyField.isEmpty()) { throw new IllegalArgumentException("The 'keyField' property must be set."); } else if (nameField.isEmpty()) { throw new IllegalArgumentException("The 'nameField' property must be set."); } else if (valueField.isEmpty()) { throw new IllegalArgumentException("The 'valueField' property must be set."); } else if (outputFields.isEmpty()) { throw new IllegalArgumentException("The 'outputFields' property must be set."); } } @VisibleForTesting  RowDenormalizerConfig(String keyField, String nameField, String valueField, String outputFields,
                        String fieldAliases);  static final String KEY_FIELD; static final String NAME_FIELD; static final String VALUE_FIELD; static final String OUTPUT_FIELDS; static final String FIELD_ALIASES; }