summaryrefslogtreecommitdiff
path: root/same/src/test/java
diff options
context:
space:
mode:
authorKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-02-28 15:08:58 +0100
committerKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-02-28 15:08:58 +0100
commitdbb86148a7b53d729085b4ace612e211d7a876ed (patch)
tree95e8542f0996dd2a7d9e4c92c6330b4ed124594e /same/src/test/java
parente5418063a31eec06835f294ec6e1054ea42f846d (diff)
Add support for more than one listener to variables.
Diffstat (limited to 'same/src/test/java')
-rw-r--r--same/src/test/java/com/orbekk/same/VariableFactoryTest.java2
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);