Class ObservableTestFilter

  • Direct Known Subclasses:
    LastRunFilter, ParameterFilter

    public abstract class ObservableTestFilter
    extends TestFilter
    An extension to the basic test filter which provides observer capabilities. The observer can be used to receive notification when the filter changes state. A typical response to that change message may be to run a set of tests back through the filter.
    • Constructor Detail

      • ObservableTestFilter

        public ObservableTestFilter()
    • Method Detail

      • addObserver

        public void addObserver​(ObservableTestFilter.Observer o)
        Add an observer to be notified when this filter has been changed.
        Parameters:
        o - The observer to be registered. Should never be null.
      • removeObserver

        public void removeObserver​(ObservableTestFilter.Observer o)
        Remove a previously registered observer so that it will no longer be notified of changes to this filter.
        Parameters:
        o - The filter to be un-registered.
      • notifyUpdated

        protected void notifyUpdated​(ObservableTestFilter filter)
        Notify observers that this filter has changed it's internal state (behavior).
        Parameters:
        filter - the filter that has changed