Examples of GlobalPropertyChangeHandler


Examples of org.sonar.api.config.GlobalPropertyChangeHandler

import static org.mockito.Mockito.verify;

public class SettingsChangeNotifierTest {
  @Test
  public void onGlobalPropertyChange() {
    GlobalPropertyChangeHandler handler = mock(GlobalPropertyChangeHandler.class);
    SettingsChangeNotifier notifier = new SettingsChangeNotifier(new GlobalPropertyChangeHandler[] {handler});

    notifier.onGlobalPropertyChange("foo", "bar");

    verify(handler).onChange(argThat(new ArgumentMatcher<GlobalPropertyChangeHandler.PropertyChange>() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.