diff options
Diffstat (limited to 'same/src/test')
-rw-r--r-- | same/src/test/java/com/orbekk/same/VariableFactoryTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/same/src/test/java/com/orbekk/same/VariableFactoryTest.java b/same/src/test/java/com/orbekk/same/VariableFactoryTest.java index bd0f923..66d181e 100644 --- a/same/src/test/java/com/orbekk/same/VariableFactoryTest.java +++ b/same/src/test/java/com/orbekk/same/VariableFactoryTest.java @@ -72,7 +72,7 @@ public class VariableFactoryTest { Variable.OnChangeListener<Integer> listener = mock(Variable.OnChangeListener.class); Variable<Integer> v = vf.create("z", intType); - v.setOnChangeListener(listener); + v.addOnChangeListener(listener); ((StateChangedListener) v).stateChanged( new State.Component("z", 1, "abc")); verify(listener).valueChanged(v); |