Skip to content

Commit 349405e

Browse files
committed
Added testing function
so that it can be executed with the command: $ bin/dispatcher --import-applications=tinystruct.examples.talk talk/testing
1 parent 0dcc035 commit 349405e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/tinystruct/examples/talk.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,16 +153,15 @@ public String version() {
153153
}
154154

155155
public void testing() throws ApplicationException {
156-
talk talk = new talk();
157-
talk.meetings.put("[M001]", new ConcurrentLinkedQueue<Builder>());
158-
talk.list.put("{A}", new ConcurrentLinkedQueue<Builder>());
159-
talk.list.put("{B}", new ConcurrentLinkedQueue<Builder>());
156+
this.meetings.put("[M001]", new ConcurrentLinkedQueue<Builder>());
157+
this.list.put("{A}", new ConcurrentLinkedQueue<Builder>());
158+
this.list.put("{B}", new ConcurrentLinkedQueue<Builder>());
160159

161160
List<String> sess = new ArrayList<String>();
162161
sess.add("{A}");
163162
sess.add("{B}");
164-
talk.sessions.put("[M001]", sess);
165-
ApplicationManager.install(talk);
163+
this.sessions.put("[M001]", sess);
164+
166165
final int n = 1000;
167166
new Thread(new Runnable(){
168167
@Override

0 commit comments

Comments
 (0)