PercentageOfWorkDoneChangedEvent extends AbstractNotificationEvent { public boolean isUndetermined() { return BigDecimal.ZERO.compareTo(percentage) > 0; } PercentageOfWorkDoneChangedEvent(NotifiableTaskMetadata taskMetadata);  PercentageOfWorkDoneChangedEvent(BigDecimal percentage, NotifiableTaskMetadata taskMetadata); BigDecimal getPercentage(); final void setPercentage(BigDecimal percentage); boolean isUndetermined(); @Override String toString(); static final BigDecimal UNDETERMINED; static final BigDecimal MAX_PERGENTAGE; }
@Test public void isUndetermined() { PercentageOfWorkDoneChangedEvent victim = new PercentageOfWorkDoneChangedEvent( PercentageOfWorkDoneChangedEvent.UNDETERMINED, NotifiableTaskMetadata.NULL); assertTrue(victim.isUndetermined()); }