@ Override public void setEnabled ( boolean enabled ) { if ( this . enabled != enabled ) { this . enabled = enabled ; setProperty ( "enabled" , Boolean . toString ( enabled ) ) ; if ( enabled && getAlertThreshold ( ) == AlertThreshold . OFF ) { setAlertThreshold ( AlertThreshold . DEFAULT ) ; } } }
Enable this test