From 433a0c3561eeaec96c23656a347e38e3a3602597 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 5 May 2011 13:16:46 +0200 Subject: Moved mock classes to separate source folder git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@142 72836036-5685-4462-b002-a69064685172 --- test/jrummikub/util/MockEvent.java | 23 ----------------------- test/jrummikub/util/MockEvent1.java | 23 ----------------------- test/jrummikub/util/MockEvent2.java | 23 ----------------------- 3 files changed, 69 deletions(-) delete mode 100644 test/jrummikub/util/MockEvent.java delete mode 100644 test/jrummikub/util/MockEvent1.java delete mode 100644 test/jrummikub/util/MockEvent2.java (limited to 'test/jrummikub/util') 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 listeners = new HashSet(); - - @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 implements IEvent1 { - public HashSet> listeners = new HashSet>(); - - @Override - public void add(IListener1 listener) { - listeners.add(listener); - } - - @Override - public void remove(IListener1 listener) { - listeners.remove(listener); - } - - public void emit(T value) { - for (IListener1 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 implements IEvent2 { - public HashSet> listeners = new HashSet>(); - - @Override - public void add(IListener2 listener) { - listeners.add(listener); - } - - @Override - public void remove(IListener2 listener) { - listeners.remove(listener); - } - - public void emit(T1 value1, T2 value2) { - for (IListener2 listener : listeners) { - listener.handle(value1, value2); - } - } -} -- cgit v1.2.3