summaryrefslogtreecommitdiffstats
path: root/test/jrummikub/util
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-05-05 13:16:46 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-05-05 13:16:46 +0200
commit433a0c3561eeaec96c23656a347e38e3a3602597 (patch)
treeb3c019366f6d2486b625eb5209c449d266ed5370 /test/jrummikub/util
parent1b881c2ac7dc3f765a6efad115ef173f77bd2e33 (diff)
downloadJRummikub-433a0c3561eeaec96c23656a347e38e3a3602597.tar
JRummikub-433a0c3561eeaec96c23656a347e38e3a3602597.zip
Moved mock classes to separate source folder
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@142 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'test/jrummikub/util')
-rw-r--r--test/jrummikub/util/MockEvent.java23
-rw-r--r--test/jrummikub/util/MockEvent1.java23
-rw-r--r--test/jrummikub/util/MockEvent2.java23
3 files changed, 0 insertions, 69 deletions
diff --git a/test/jrummikub/util/MockEvent.java b/test/jrummikub/util/MockEvent.java
deleted file mode 100644
index 2f0efe5..0000000
--- a/test/jrummikub/util/MockEvent.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package jrummikub.util;
-
-import java.util.HashSet;
-
-public class MockEvent implements IEvent {
- public HashSet<IListener> listeners = new HashSet<IListener>();
-
- @Override
- public void add(IListener listener) {
- listeners.add(listener);
- }
-
- @Override
- public void remove(IListener listener) {
- listeners.remove(listener);
- }
-
- public void emit() {
- for (IListener listener : listeners) {
- listener.handle();
- }
- }
-}
diff --git a/test/jrummikub/util/MockEvent1.java b/test/jrummikub/util/MockEvent1.java
deleted file mode 100644
index 74cae0f..0000000
--- a/test/jrummikub/util/MockEvent1.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package jrummikub.util;
-
-import java.util.HashSet;
-
-public class MockEvent1<T> implements IEvent1<T> {
- public HashSet<IListener1<T>> listeners = new HashSet<IListener1<T>>();
-
- @Override
- public void add(IListener1<T> listener) {
- listeners.add(listener);
- }
-
- @Override
- public void remove(IListener1<T> listener) {
- listeners.remove(listener);
- }
-
- public void emit(T value) {
- for (IListener1<T> listener : listeners) {
- listener.handle(value);
- }
- }
-}
diff --git a/test/jrummikub/util/MockEvent2.java b/test/jrummikub/util/MockEvent2.java
deleted file mode 100644
index 93e8228..0000000
--- a/test/jrummikub/util/MockEvent2.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package jrummikub.util;
-
-import java.util.HashSet;
-
-public class MockEvent2<T1, T2> implements IEvent2<T1, T2> {
- public HashSet<IListener2<T1, T2>> listeners = new HashSet<IListener2<T1, T2>>();
-
- @Override
- public void add(IListener2<T1, T2> listener) {
- listeners.add(listener);
- }
-
- @Override
- public void remove(IListener2<T1, T2> listener) {
- listeners.remove(listener);
- }
-
- public void emit(T1 value1, T2 value2) {
- for (IListener2<T1, T2> listener : listeners) {
- listener.handle(value1, value2);
- }
- }
-}