Ignore:
Timestamp:
07/06/13 03:51:11 (11 years ago)
Author:
psniegowski
Message:

HIGHLIGHTS:

  • add proper exception passing between communication sides:

if exception occur during handling client request, it is
automatically passed as comment to error response.

it may be used to snoop communication between peers

  • fix algorithm choosing text controls in GUI
  • allow GUI testing in virtual frame buffer (xvfb)

FEST had some problem with xvfb but workaround was found

supports tab-completion based on requests history

CHANGELOG:
Further improve handling of exceptions in GUI.

Add StatusBar? implementing ExceptionResultHandler?.

Make completion processing asynchronous.

Minor changes.

Improve completion in console.

Improve history in InteractiveConsole?.

First working version of DirectConsole?.

Minor changes.

Make Connection.address non final.

It is more suitable to use in configuration.

Improvement of consoles.

Improve PopupMenu? and closing of FrameJoinable?.

Fix BrowserTest?.

Found bug with FEST running under xvfb.

JButtonFixture.click() is not working under xvfb.
GuiTest? has wrapper which uses JButton.doClick() directly.

Store CompositeParam? param in TreeNode?.

Simplify ClientSideManagedConnection? connecting.

There is now connectedFunctor needed, ApplicationRequests? can be
send right after creation. They are buffered until the version
and features are negotiated.

Narow down interface of ClientSideManagedConnection?.

Allow that connection specialization send only
ApplicationRequests?.

Improve policy of text control choosing.

Change name of Genotype in BrowserTest?.

Make BrowserTest? change name of Genotype.

Minor change.

First working draft of TrackConsole?.

Simplify Consoles.

More improvements with gui joinables.

Unify initialization on gui joinables.

More rework of Frame based entities.

Refactorize structure of JFrames based entities.

Extract GuiTest? from BrowserBaseTest?.

Reorganize Console classes structure.

Add Collection view to JoinableCollection?.

Configure timeout in testing.

Minor changes.

Rework connections hierarchy.

Add Mode to the get operation.

Make get and set in Tree take PrimitiveParam?.

Unify naming of operations.

Make RunAt? use the given ExceptionHandler?.

It wraps the virtual runAt() method call with
try-catch passing exception to handler.

Force RunAt? to include ExceptionHandler?.

Improve ClientAtServer?.

Minor change.

Another sweep with FindBugs?.

Rename Instance to Tree.

Minor changes.

Minor changes.

Further clarify semantics of Futures.

Add FutureHandler?.

FutureHandler? is refinement of Future, that proxifies
exception handling to ExceptionResultHandler? given
at construction time.

Remove StateFunctor? (use Future<Void> instead).

Make Connection use Future<Void>.

Unparametrize *ResponseFuture?.

Remove StateCallback? not needed anymore.

Distinguish between sides of ResponseFuture?.

Base ResponseCallback? on Future (now ResponseFuture?).

Make asynchronous store taking Future for flags.

Implement storeValue in ObjectInstance?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/main/src/test/java/com/framsticks/gui/BrowserTest.java

    r96 r97  
    33import static org.fest.assertions.Assertions.assertThat;
    44import static org.fest.swing.edt.GuiActionRunner.execute;
     5
     6import java.awt.event.KeyEvent;
    57
    68
     
    1012
    1113import com.framsticks.model.ModelPackage;
    12 import com.framsticks.remote.SimulatorInstance;
     14import com.framsticks.remote.SimulatorTree;
     15import com.framsticks.util.dispatching.Dispatching;
    1316
    1417public class BrowserTest extends BrowserBaseTest {
     
    1619        private static final Logger log = Logger.getLogger(BrowserTest.class);
    1720
    18         SimulatorInstance localhost;
     21        SimulatorTree localhost;
    1922
    2023        @Override
     
    2225                browser = new Browser();
    2326
    24                 localhost = new SimulatorInstance();
     27                localhost = new SimulatorTree();
    2528                localhost.setName("localhost");
    2629                localhost.setAddress("localhost:9009");
    2730                localhost.usePackage(new ModelPackage());
    2831
    29                 browser.addInstance(localhost);
     32                browser.addTree(localhost);
    3033
    3134        }
    3235
    33         @Test(timeOut = 10000)
     36        @Test(timeOut = 30000)
    3437        public void testShow() {
    3538                log.info("testing");
    3639                tree.clickRow(0).expandRow(0);
    3740                robot.waitForIdle();
     41
    3842                tree.clickRow(1).expandRow(1);
    3943                robot.waitForIdle();
     
    4751                });
    4852
     53
    4954                clickAndExpandPath("localhost/simulator/genepools");
    5055                clickAndExpandPath("localhost/simulator/genepools/groups");
    5156                clickAndExpandPath("localhost/simulator/genepools/groups/Genotypes");
     57                clickAndExpandPath("localhost/simulator/genepools/groups/Genotypes/genotypes");
     58                Dispatching.sleep(2.0);
     59                clickAndExpandPath("localhost/simulator/genepools/groups/Genotypes/genotypes");
     60                robot.pressAndReleaseKey(KeyEvent.VK_J);
     61                waitForIdle();
     62                Dispatching.sleep(2.0);
     63
     64                frame.panel("Genotype").panel("name").textBox("value").enterText("-Żółw");
     65                clickButton(frame.panel("Genotype").button("apply"));
     66
     67                Dispatching.sleep(1.0);
    5268        }
    5369
Note: See TracChangeset for help on using the changeset viewer.