@SuppressWarnings("unchecked") public T compareParameters() { if (!this.result) { checkExistingIsSuperstate(this.existingUnit.getProps(), this.newUnit.getProps()); checkExistingIsSuperstate(this.existingUnit.getStorageProps(), this.newUnit.getStorageProps()); checkExistingIsSuperstate(this.existingUnit.getSerDeProps(), this.newUnit.getSerDeProps()); } return (T) this; }
comparator.checkExistingIsSuperstate(existingState, newState); Assert.assertFalse(comparator.result); comparator = new HiveRegistrationUnitComparator<>(null, null); comparator.checkExistingIsSuperstate(existingState, newState); Assert.assertTrue(comparator.result); comparator = new HiveRegistrationUnitComparator<>(null, null); comparator.checkExistingIsSuperstate(existingState, newState); Assert.assertTrue(comparator.result); comparator = new HiveRegistrationUnitComparator<>(null, null); comparator.checkExistingIsSuperstate(existingState, newState); Assert.assertFalse(comparator.result);
@SuppressWarnings("unchecked") public T compareParameters() { if (!this.result) { checkExistingIsSuperstate(this.existingUnit.getProps(), this.newUnit.getProps()); checkExistingIsSuperstate(this.existingUnit.getStorageProps(), this.newUnit.getStorageProps()); checkExistingIsSuperstate(this.existingUnit.getSerDeProps(), this.newUnit.getSerDeProps()); } return (T) this; }