Last change
on this file was
193,
checked in by Maciej Komosinski, 10 years ago
|
Set svn:eol-style native for all textual files
|
-
Property svn:eol-style set to
native
|
File size:
974 bytes
|
Line | |
---|
1 | package com.framsticks.gui.console; |
---|
2 | |
---|
3 | import org.testng.annotations.Test; |
---|
4 | |
---|
5 | import com.framsticks.communication.Address; |
---|
6 | import com.framsticks.communication.ClientSideRawConnection; |
---|
7 | import com.framsticks.gui.GuiTest; |
---|
8 | import com.framsticks.util.dispatching.Dispatching; |
---|
9 | import com.framsticks.util.dispatching.Joinable; |
---|
10 | import com.framsticks.util.dispatching.JoinableCollection; |
---|
11 | |
---|
12 | @Test |
---|
13 | public class DirectConsoleTest extends GuiTest { |
---|
14 | |
---|
15 | ClientSideRawConnection connection; |
---|
16 | DirectConsole console; |
---|
17 | JoinableCollection<Joinable> joinables; |
---|
18 | |
---|
19 | @Override |
---|
20 | protected Joinable createSubject() { |
---|
21 | |
---|
22 | console = new DirectConsole().setAddress(new Address("localhost:9009")); |
---|
23 | joinables = new JoinableCollection<>(); |
---|
24 | joinables.setObservableName("connection and console"); |
---|
25 | joinables.add(console); |
---|
26 | joinables.add(console.getConnection()); |
---|
27 | |
---|
28 | return joinables; |
---|
29 | } |
---|
30 | |
---|
31 | @Test |
---|
32 | public void testCommunication() { |
---|
33 | Dispatching.sleep(2.0); |
---|
34 | // final Waiter waiter = produceWaiter(1.0); |
---|
35 | |
---|
36 | } |
---|
37 | |
---|
38 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.