Changeset 98 for java/main/src/test
- Timestamp:
- 07/08/13 23:04:56 (12 years ago)
- Location:
- java/main/src/test
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
java/main/src/test/java/com/framsticks/core/ObjectTreeTest.java
r97 r98 58 58 monitor.use(); 59 59 60 assertThat(Dispatching.get(tree, new Dispatching.Query <String>() {60 assertThat(Dispatching.get(tree, new Dispatching.QueryHandler<String>(failOnException) { 61 61 @Override 62 62 public String get() { -
java/main/src/test/java/com/framsticks/gui/BrowserBaseTest.java
r97 r98 12 12 import org.fest.swing.edt.GuiActionRunner; 13 13 14 import com.framsticks.util.dispatching.Dispatching; 14 15 import com.framsticks.util.dispatching.Joinable; 15 16 … … 26 27 protected Joinable createSubject() { 27 28 configureBrowser(); 29 // browser.getMainFrame().getStatusBar().setExceptionHandler(failOnException); 28 30 return browser; 29 31 } … … 47 49 48 50 protected void clickAndExpandPath(String path) { 49 tree.clickPath(path).expandPath(path); 51 tree.clickPath(path); 52 Dispatching.sleep(1.0); 53 tree.expandPath(path); 50 54 robot.waitForIdle(); 51 55 } -
java/main/src/test/java/com/framsticks/gui/BrowserTest.java
r97 r98 36 36 @Test(timeOut = 30000) 37 37 public void testShow() { 38 Dispatching.synchronize(localhost, 1.0); 39 // Dispatching.sleep(0.5); 38 40 log.info("testing"); 39 41 tree.clickRow(0).expandRow(0); … … 56 58 clickAndExpandPath("localhost/simulator/genepools/groups/Genotypes"); 57 59 clickAndExpandPath("localhost/simulator/genepools/groups/Genotypes/genotypes"); 58 Dispatching.sleep(2.0);59 clickAndExpandPath("localhost/simulator/genepools/groups/Genotypes/genotypes");60 // Dispatching.sleep(2.0); 61 // clickAndExpandPath("localhost/simulator/genepools/groups/Genotypes/genotypes"); 60 62 robot.pressAndReleaseKey(KeyEvent.VK_J); 61 63 waitForIdle(); -
java/main/src/test/java/com/framsticks/gui/console/TrackConsoleTest.java
r97 r98 41 41 @Test 42 42 public void testCommunication() { 43 //Dispatching.sleep(2.0);43 Dispatching.sleep(2.0); 44 44 final Waiter waiter = produceWaiter(1.0); 45 45 46 resolveAndGet(tree, "/simulator/genepools/groups/0", new FutureHandler<Path>(failOnException) {46 tryGet(tree, "/simulator/genepools/groups/0", new FutureHandler<Path>(failOnException) { 47 47 48 48 @Override -
java/main/src/test/java/com/framsticks/hosting/ServerTest.java
r97 r98 84 84 assertThat(path.isResolved()).isFalse(); 85 85 86 remote. resolve(path, new FutureHandler<Path>(failOnException) {86 remote.get(path, Mode.FETCH, new FutureHandler<Path>(failOnException) { 87 87 @Override 88 protected void result(final Path result) { 89 assertThat(result.isResolved()).isTrue(); 90 remotePath = result; 91 remote.get(result, Mode.FETCH, new FutureHandler<Object>(failOnException) { 92 @Override 93 protected void result(Object object) { 94 AccessInterface access = bindAccess(result); 95 assertThat(access).isInstanceOf(PropertiesAccess.class); 96 assertThat(access.get("name", String.class)).isEqualTo("a test name"); 97 waiter.pass(); 98 } 99 }); 88 protected void result(Path path) { 89 assertThat(path.isResolved()).isTrue(); 90 remotePath = path; 91 AccessInterface access = bindAccess(path); 92 assertThat(access).isInstanceOf(PropertiesAccess.class); 93 assertThat(access.get("name", String.class)).isEqualTo("a test name"); 94 waiter.pass(); 100 95 } 101 96 }); -
java/main/src/test/java/com/framsticks/test/TestConfiguration.java
r97 r98 91 91 @Override 92 92 public void handle(FramsticksException e) { 93 e.printStackTrace(); 93 94 assertThat(e).isNull(); 94 95 } -
java/main/src/test/resources/log4j.properties
r97 r98 28 28 log4j.logger.com.framsticks=WARN 29 29 log4j.logger.com.framsticks.test.TestConfiguration=INFO 30 # log4j.logger.com.framsticks.core.TreeOperations=DEBUG 31 # log4j.logger.com.framsticks.core.AbstractTree=DEBUG 32 # log4j.logger.com.framsticks.remote.RemoteTree=DEBUG 30 33 # log4j.logger.com.framsticks.gui.console.TrackConsole=DEBUG 31 34 # log4j.logger.com.framsticks.gui.controls.ProcedureControl=DEBUG
Note: See TracChangeset
for help on using the changeset viewer.