Search in sources :

Example 1 with TestFrameworkPropertyListener

use of com.intellij.execution.testframework.TestFrameworkPropertyListener in project intellij-community by JetBrains.

the class TestFrameworkActions method installFilterAction.

public static void installFilterAction(final TestFrameworkRunningModel model) {
    final TestConsoleProperties properties = model.getProperties();
    final TestFrameworkPropertyListener<Boolean> propertyListener = new TestFrameworkPropertyListener<Boolean>() {

        public void onChanged(final Boolean value) {
            model.setFilter(getFilter(properties));
        }
    };
    addPropertyListener(TestConsoleProperties.HIDE_PASSED_TESTS, propertyListener, model, true);
    addPropertyListener(TestConsoleProperties.HIDE_IGNORED_TEST, propertyListener, model, true);
    addPropertyListener(TestConsoleProperties.HIDE_SUCCESSFUL_CONFIG, propertyListener, model, true);
}
Also used : TestFrameworkPropertyListener(com.intellij.execution.testframework.TestFrameworkPropertyListener) TestConsoleProperties(com.intellij.execution.testframework.TestConsoleProperties)

Aggregations

TestConsoleProperties (com.intellij.execution.testframework.TestConsoleProperties)1 TestFrameworkPropertyListener (com.intellij.execution.testframework.TestFrameworkPropertyListener)1