source: java/main/src/test/java/com/framsticks/gui/console/DirectConsoleTest.java @ 102

Last change on this file since 102 was 102, checked in by psniegowski, 11 years ago

HIGHLIGHTS:

for Joinables running

CHANGELOG:
Add WorkPackageLogic? and classes representing prime experiment state.

Add classes for PrimeExperiment? state.

Extract single netload routine in Simulator.

Working netload with dummy content in PrimeExperiment?.

More development with NetLoadSaveLogic? and PrimeExperiment?.

Improvement around prime.

Improve BufferedDispatcher?.isActive logic.

Add prime-all.xml configuration.

Manual connecting to existing simulators from GUI.

Guard in SimulatorConnector? against expdef mismatch.

Guard against empty target dispatcher in BufferedDispatcher?.

Make BufferedDispatcher? a Dispatcher (and Joinable).

Minor improvements.

Done StackedJoinable?, improve Experiment.

Develop StackedJoinable?.

Add StackedJoinable? utility joinables controller.

Add dependency on apache-commons-lang.

Add ready ListChange? on Simulators.

Improve hints in ListChange?.

Several improvements.

Found bug with dispatching in Experiment.

Minor improvements.

Fix bug with early finishing Server.

Many changes in Dispatching.

Fix bug with connection.

Do not obfuscate log with socket related exceptions.

Add SocketClosedException?.

Add SimulatorConnector?.

Work out conception of experiment composing of logics building blocks.

Rename SinkInterface? to Sink.

Move saving of Accesses into AccessOperations?.

Some improvements to Experiment.

Improve joinables.

Fix issue with joinables closing.

Add direct and managed consoles to popup menu.

File size: 974 bytes
Line 
1package com.framsticks.gui.console;
2
3import org.testng.annotations.Test;
4
5import com.framsticks.communication.Address;
6import com.framsticks.communication.ClientSideRawConnection;
7import com.framsticks.gui.GuiTest;
8import com.framsticks.util.dispatching.Dispatching;
9import com.framsticks.util.dispatching.Joinable;
10import com.framsticks.util.dispatching.JoinableCollection;
11
12@Test
13public 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.