source: java/main/src/test/java/com/framsticks/running/ExternalProcessTest.java @ 107

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

HIGHLIGHTS:

  • add SimultorProviders? hierarchy
  • start Framsticks server over SSH
  • FJF compatible with Framsticks 4.0rc3
  • reading and writing of standard.expt
  • a proof-of-concept implementation of StandardExperiment?

CHANGELOG:
Optionally return FreeAccess? from registry.

Add SimulatorRange?.

StandardExperiment? with genotypes circulation.

Automate registration around StandardState?.

More improvements to StandardExperiment?.

Skeleton version of StandardExperiment?.

Test saving of StandardState?.

Standard experiment state is being loaded.

More development towards StandardState? reading.

Work on reading standard experiment state.

Add classes for standard experiment.

Update example standard.expt

Add FreeAccess? and FreeObject?.

Made compatible with version 4.0rc3

Change deserialization policy.

Improve SSH support.

Working running simulator over SSH.

Fix joining bug in Experiment.

Working version of SimulatorRunner?.

Add more SimulatorProviders?.

Working PrimeExperimentTest? with 4.0rc3

Add references to deserialization.

Add OpaqueObject? and it's serialization.

Add deserialization of dictionaries.

Partial implementation of deserialization.

Add more tests for deserialization.

Prepare tests for deserialization.

Add proper result to prime experiment test.

Minor fixes to simulators providers.

Draft version of SimulatorProvider?.

Add SimulatorProvider? interface.

File size: 1.3 KB
Line 
1package com.framsticks.running;
2
3
4// import java.util.Arrays;
5// import java.util.Arrays;
6// import java.util.LinkedList;
7// import java.util.List;
8
9import org.testng.annotations.Test;
10
11// import com.framsticks.params.EventListener;
12// import com.framsticks.structure.messages.ValueChange;
13// import com.framsticks.util.dispatching.Monitor;
14
15// import static org.fest.assertions.Assertions.*;
16import com.framsticks.test.TestConfiguration;
17
18@Test
19public class ExternalProcessTest extends TestConfiguration {
20
21        @Test(timeOut = 1000)
22        public void runBash() throws InterruptedException {
23                // TODO: needs improvement in directory configuration of the ExternalProcess
24                // final ExternalProcess process = new ExternalProcess();
25                // process.setCommand("bash");
26
27                // final List<String> input = Arrays.asList("test", "another line");
28                // final List<String> output = new LinkedList<>();
29
30                // process.addOutputListener(new EventListener<ValueChange>() {
31                //      @Override
32                //      public void action(ValueChange change) {
33                //              output.add(change.value.toString());
34                //      }
35                // });
36                // Monitor monitor = new Monitor(process);
37                // monitor.use();
38
39                // for (String l : input) {
40                //      process.getInput().println("echo " + l);
41                // }
42
43                // process.getInput().close();
44
45                // monitor.waitFor();
46                // monitor.drop();
47                // monitor.join();
48
49                // assertThat(output).isEqualTo(input);
50        }
51
52}
Note: See TracBrowser for help on using the repository browser.