Changeset 105 for java/main/src/test
- Timestamp:
- 09/10/13 21:11:41 (11 years ago)
- Location:
- java/main/src/test
- Files:
-
- 5 added
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
java/main/src/test/java/com/framsticks/core/ListChangeTest.java
r102 r105 6 6 import org.testng.annotations.Test; 7 7 8 import com.framsticks.core.ListChange.Action;9 8 import static com.framsticks.params.AccessOperations.*; 10 9 import com.framsticks.params.FramsClass; … … 12 11 import com.framsticks.params.ListSource; 13 12 import com.framsticks.params.ReflectionAccess; 13 import com.framsticks.structure.messages.ListChange; 14 import com.framsticks.structure.messages.ListChange.Action; 14 15 import com.framsticks.test.TestConfiguration; 15 16 -
java/main/src/test/java/com/framsticks/core/LocalTreeTest.java
r100 r105 12 12 import com.framsticks.model.f0.Schema; 13 13 import com.framsticks.model.f0.SchemaBuilder; 14 import com.framsticks.structure.LocalTree; 15 import com.framsticks.structure.Path; 16 import com.framsticks.structure.Tree; 17 import com.framsticks.structure.TreeOperations; 14 18 import com.framsticks.test.TestConfiguration; 15 19 import com.framsticks.util.dispatching.Dispatching; … … 20 24 import com.framsticks.params.types.FloatParam; 21 25 22 import static com.framsticks.core.TreeOperations.*;23 26 24 27 25 28 import static org.fest.assertions.Assertions.*; 29 import static com.framsticks.params.ParamsUtil.getParam; 30 import static com.framsticks.structure.TreeOperations.*; 26 31 27 32 @Test … … 75 80 assertThat(access.get("se", Double.class)).isEqualTo(1.0); 76 81 77 assertThat( bindAccess(tree, "/parts/2").getFramsClass().getParamEntry("m", FloatParam.class).getDef(Double.class)).isEqualTo(1.0);78 assertThat( bindAccess(tree, "/parts/2").getFramsClass().getParamEntry("m", FloatParam.class).getMax(Double.class)).isEqualTo(999.0);82 assertThat(getParam(bindAccess(tree, "/parts/2"), "m", FloatParam.class).getDef(Double.class)).isEqualTo(1.0); 83 assertThat(getParam(bindAccess(tree, "/parts/2"), "m", FloatParam.class).getMax(Double.class)).isEqualTo(999.0); 79 84 assertThat(bindAccess(tree, "/parts/2")).isInstanceOf(ReflectionAccess.class); 80 85 assertThat(Path.to(tree, "/neurodefs").getTopObject()).isInstanceOf(ArrayList.class); -
java/main/src/test/java/com/framsticks/core/PathTest.java
r99 r105 11 11 import org.testng.annotations.Test; 12 12 13 import com.framsticks.structure.Path; 13 14 import com.framsticks.test.TestConfiguration; 14 15 import com.framsticks.util.lang.Pair; -
java/main/src/test/java/com/framsticks/gui/LocalTreeBrowserTest.java
r100 r105 5 5 import org.testng.annotations.Test; 6 6 7 import com.framsticks.core.Tree;8 import com.framsticks.core.LocalTree;9 7 import com.framsticks.model.Model; 10 8 import com.framsticks.params.types.FloatParam; 11 9 import com.framsticks.parsers.XmlLoader; 10 import com.framsticks.structure.LocalTree; 11 import com.framsticks.structure.Tree; 12 12 import com.framsticks.util.dispatching.RunAt; 13 13 14 import static com.framsticks.core.TreeOperations.*; 14 import static com.framsticks.params.ParamsUtil.getParam; 15 import static com.framsticks.structure.TreeOperations.*; 15 16 16 17 @Test … … 45 46 @Override 46 47 protected void runAt() { 47 assertThat( bindAccess(tree, "/parts/2").getFramsClass().getParamEntry("m", FloatParam.class).getMax(Double.class)).isEqualTo(999.0);48 assertThat(getParam(bindAccess(tree, "/parts/2"), "m", FloatParam.class).getMax(Double.class)).isEqualTo(999.0); 48 49 } 49 50 }); -
java/main/src/test/java/com/framsticks/gui/ProcedureBrowserTest.java
r103 r105 7 7 import org.testng.annotations.Test; 8 8 9 import com.framsticks.core.Path;10 import com.framsticks.core.Tree;11 import com.framsticks.core.LocalTree;12 import com.framsticks.core.ValueChange;13 9 import com.framsticks.params.Access; 14 10 import com.framsticks.params.EventListener; 15 import com.framsticks.params.FramsClass;16 11 import com.framsticks.params.ReflectionAccess; 17 12 import com.framsticks.params.types.EventParam; 18 13 import com.framsticks.params.types.StringParam; 19 14 import com.framsticks.parsers.XmlLoader; 15 import com.framsticks.structure.LocalTree; 16 import com.framsticks.structure.Path; 17 import com.framsticks.structure.Tree; 18 import com.framsticks.structure.messages.ValueChange; 20 19 import com.framsticks.test.TestClass; 21 import com.framsticks.util.dispatching.Future Handler;20 import com.framsticks.util.dispatching.Future; 22 21 // import com.framsticks.util.dispatching.Dispatching; 23 22 import com.framsticks.util.dispatching.RunAt; 24 import static com.framsticks.core.TreeOperations.*; 23 import static com.framsticks.params.ParamsUtil.getParam; 24 import static com.framsticks.structure.TreeOperations.*; 25 25 26 26 @Test … … 53 53 @Override 54 54 protected void runAt() { 55 assertThat( bindAccess(tree, "/").getFramsClass().getParam("history")).isInstanceOf(StringParam.class);55 assertThat(getParam(bindAccess(tree, "/"), "history")).isInstanceOf(StringParam.class); 56 56 } 57 57 }); … … 64 64 Access access = bindAccess(tree, "/"); 65 65 assertThat(access).isInstanceOf(ReflectionAccess.class); 66 FramsClass framsClass = access.getFramsClass(); 67 assertThat(framsClass.getParam(0).getId()).isEqualTo("name"); 68 assertThat(framsClass.getParam(1).getId()).isEqualTo("history"); 69 assertThat(framsClass.getParam(2).getId()).isEqualTo("history_changed"); 70 assertThat(framsClass.getParam(3).getId()).isEqualTo("appendHistory"); 71 assertThat(framsClass.getParam(4).getId()).isEqualTo("resetHistory"); 66 assertThat(getParam(access, 0).getId()).isEqualTo("name"); 67 assertThat(getParam(access, 1).getId()).isEqualTo("history"); 68 assertThat(getParam(access, 2).getId()).isEqualTo("history_changed"); 69 assertThat(getParam(access, 3).getId()).isEqualTo("appendHistory"); 70 assertThat(getParam(access, 4).getId()).isEqualTo("resetHistory"); 72 71 73 72 assertThat(access.get("history", String.class)).isEqualTo("initial|"); … … 96 95 assertThat(access.get("history", String.class)).isEqualTo("initial|Żółw|"); 97 96 98 tree.addListener(Path.to(tree, "/"), access.getFramsClass().getParamEntry("history_changed", EventParam.class), listener, ValueChange.class, FutureHandler.doNothing(Void.class, failOnException));97 tree.addListener(Path.to(tree, "/"), getParam(access, "history_changed", EventParam.class), listener, ValueChange.class, Future.doNothing(Void.class, failOnException)); 99 98 } 100 99 }); … … 109 108 assertThat(access.get("history", String.class)).isEqualTo(""); 110 109 111 tree.removeListener(Path.to(tree, "/"), access.getFramsClass().getParamEntry("history_changed", EventParam.class), listener, FutureHandler.doNothing(Void.class, failOnException));110 tree.removeListener(Path.to(tree, "/"), getParam(access, "history_changed", EventParam.class), listener, Future.doNothing(Void.class, failOnException)); 112 111 } 113 112 }); -
java/main/src/test/java/com/framsticks/gui/console/TrackConsoleTest.java
r101 r105 3 3 import org.testng.annotations.Test; 4 4 5 import com.framsticks.core.Path;6 5 import com.framsticks.gui.GuiTest; 7 6 import com.framsticks.remote.RemoteTree; 7 import com.framsticks.structure.Path; 8 8 import com.framsticks.util.dispatching.Dispatching; 9 9 import com.framsticks.util.dispatching.Dispatching.Waiter; 10 import com.framsticks.util.dispatching.Future Handler;10 import com.framsticks.util.dispatching.Future; 11 11 import com.framsticks.util.dispatching.Joinable; 12 12 import com.framsticks.util.dispatching.JoinableCollection; 13 13 14 import static com.framsticks. core.TreeOperations.*;14 import static com.framsticks.structure.TreeOperations.*; 15 15 16 16 @Test … … 41 41 final Waiter waiter = produceWaiter(1.0); 42 42 43 tryGet(tree, "/simulator/genepools/groups/0", new Future Handler<Path>(failOnException) {43 tryGet(tree, "/simulator/genepools/groups/0", new Future<Path>(failOnException) { 44 44 45 45 @Override -
java/main/src/test/java/com/framsticks/hosting/ServerTest.java
r103 r105 8 8 import org.testng.annotations.Test; 9 9 10 import com.framsticks.core.ListChange;11 import com.framsticks.core.LocalTree;12 import com.framsticks.core.Path;13 import com.framsticks.core.Result;14 import com.framsticks.core.TreeOperations;15 import com.framsticks.core.ValueChange;16 10 import com.framsticks.core.XmlBasedTest; 17 11 import com.framsticks.remote.RemoteTree; 12 import com.framsticks.structure.LocalTree; 13 import com.framsticks.structure.Path; 14 import com.framsticks.structure.Tree; 15 import com.framsticks.structure.TreeOperations; 16 import com.framsticks.structure.messages.ListChange; 17 import com.framsticks.structure.messages.Result; 18 import com.framsticks.structure.messages.ValueChange; 18 19 19 20 import com.framsticks.test.TestClass; 20 import com.framsticks.core.Tree;21 21 import com.framsticks.params.FramsClass; 22 22 import com.framsticks.params.Access; … … 29 29 import com.framsticks.params.types.ProcedureParam; 30 30 import com.framsticks.util.dispatching.Dispatching.Waiter; 31 import com.framsticks.util.dispatching.Future Handler;31 import com.framsticks.util.dispatching.Future; 32 32 import com.framsticks.util.dispatching.RunAt; 33 33 34 import static com.framsticks. core.TreeOperations.*;34 import static com.framsticks.params.ParamsUtil.arguments; 35 35 36 36 import static org.fest.assertions.Assertions.*; 37 import static com.framsticks.params.ParamsUtil.getParam; 38 import static com.framsticks.structure.TreeOperations.*; 37 39 38 40 @Test … … 72 74 final Waiter waiter = produceWaiter(1.0); 73 75 74 TreeOperations.tryGet(remote, "/testClass", new Future Handler<Path>(failOnException) {76 TreeOperations.tryGet(remote, "/testClass", new Future<Path>(failOnException) { 75 77 @Override 76 78 protected void result(Path path) { … … 88 90 final Waiter waiter = produceWaiter(1.0); 89 91 90 TreeOperations.tryGet(remote, "/testClass", new Future Handler<Path>(failOnException) {92 TreeOperations.tryGet(remote, "/testClass", new Future<Path>(failOnException) { 91 93 @Override 92 94 protected void result(Path path) { … … 105 107 final Waiter waiter = produceWaiter(2.0); 106 108 107 set(remotePath, remoteTestFramsClass.getParamEntry("name", PrimitiveParam.class), "new name", new FutureHandler<Integer>(failOnException) {109 set(remotePath, getParam(remoteTestFramsClass, "name", PrimitiveParam.class), "new name", new Future<Integer>(failOnException) { 108 110 @Override 109 111 protected void result(Integer flags) { … … 132 134 }; 133 135 134 TreeOperations.tryGet(remote, "/cli/events", new Future Handler<Path>(failOnException) {136 TreeOperations.tryGet(remote, "/cli/events", new Future<Path>(failOnException) { 135 137 @Override 136 138 protected void result(Path path) { … … 139 141 }); 140 142 141 addListener(remotePath, remoteTestFramsClass.getParamEntry("history_changed", EventParam.class), listener, ValueChange.class, produceWaiter(1.0).passInFuture(Void.class));143 addListener(remotePath, getParam(remoteTestFramsClass, "history_changed", EventParam.class), listener, ValueChange.class, produceWaiter(1.0).passInFuture(Void.class)); 142 144 } 143 145 … … 146 148 final Waiter waiter = produceWaiter(2.0); 147 149 148 call(remotePath, remoteTestFramsClass.getParamEntry("resetHistory", ProcedureParam.class), new Object[] {}, Object.class, produceWaiter(2.0).passInFuture(Object.class));149 150 call(remotePath, remoteTestFramsClass.getParamEntry("appendHistory", ProcedureParam.class), new Object[] {"next word"}, Result.class, new FutureHandler<Result>(failOnException) {150 call(remotePath, getParam(remoteTestFramsClass, "resetHistory", ProcedureParam.class), arguments(), Object.class, produceWaiter(2.0).passInFuture(Object.class)); 151 152 call(remotePath, getParam(remoteTestFramsClass, "appendHistory", ProcedureParam.class), arguments("next word"), Result.class, new Future<Result>(failOnException) { 151 153 @Override 152 154 protected void result(final Result result) { … … 167 169 @Test(dependsOnMethods = "callMethod") 168 170 public void deregisterListener() { 169 removeListener(remotePath, remoteTestFramsClass.getParamEntry("history_changed", EventParam.class), listener, produceWaiter(1.0).passInFuture(Void.class));171 removeListener(remotePath, getParam(remoteTestFramsClass, "history_changed", EventParam.class), listener, produceWaiter(1.0).passInFuture(Void.class)); 170 172 171 173 assertThat(listenerArguments).isEqualTo(Arrays.asList("", "next word|")); … … 183 185 }; 184 186 185 addListener(remotePath, remoteTestFramsClass.getParamEntry("children_changed", EventParam.class), childListener, ListChange.class, produceWaiter(1.0).passInFuture(Void.class));187 addListener(remotePath, getParam(remoteTestFramsClass, "children_changed", EventParam.class), childListener, ListChange.class, produceWaiter(1.0).passInFuture(Void.class)); 186 188 } 187 189 … … 189 191 public void createChild() { 190 192 final Waiter waiter = produceWaiter(2.0); 191 call(remotePath, "createChild", new Object[] { "a child" }, Object.class, produceWaiter(2.0).passInFuture(Object.class));192 call(remotePath, "createChild", new Object[] { "another child" }, Object.class, produceWaiter(2.0).passInFuture(Object.class));193 194 tryGet(remote, "/testClass/children/c0", new Future Handler<Path>(failOnException) {193 call(remotePath, "createChild", arguments("a child"), Object.class, produceWaiter(2.0).passInFuture(Object.class)); 194 call(remotePath, "createChild", arguments("another child"), Object.class, produceWaiter(2.0).passInFuture(Object.class)); 195 196 tryGet(remote, "/testClass/children/c0", new Future<Path>(failOnException) { 195 197 196 198 @Override 197 199 protected void result(Path result) { 198 set(result, get FramsClass(result).getParamEntry("name", StringParam.class), "new_name", new FutureHandler<Integer>(failOnException) {200 set(result, getParam(result, "name", StringParam.class), "new_name", new Future<Integer>(failOnException) { 199 201 200 202 @Override … … 209 211 @Test(dependsOnMethods = "createChild") 210 212 public void deregisterChildListener() { 211 removeListener(remotePath, remoteTestFramsClass.getParamEntry("children_changed", EventParam.class), childListener, produceWaiter(1.0).passInFuture(Void.class));213 removeListener(remotePath, getParam(remoteTestFramsClass, "children_changed", EventParam.class), childListener, produceWaiter(1.0).passInFuture(Void.class)); 212 214 } 213 215 -
java/main/src/test/java/com/framsticks/model/CreatureTest.java
r87 r105 11 11 12 12 import static org.fest.assertions.Assertions.*; 13 import static com.framsticks.params.ParamsUtil.getParam; 13 14 14 15 @Test … … 27 28 assertThat(framsClass.getParam("name")).describedAs("name").isInstanceOf(StringParam.class); 28 29 assertThat(framsClass.getParam("parts")).describedAs("parts").isInstanceOf(ArrayListParam.class); 29 partsParam = framsClass.getParamEntry("parts", ArrayListParam.class);30 partsParam = getParam(framsClass, "parts", ArrayListParam.class); 30 31 assertThat(partsParam).describedAs("partsParam").isNotNull(); 31 32 assertThat(partsParam).isInstanceOf(ArrayListParam.class); -
java/main/src/test/java/com/framsticks/model/ModelPackageTest.java
r101 r105 15 15 16 16 import static org.fest.assertions.Assertions.*; 17 import static com.framsticks.params.ParamsUtil.getParam; 17 18 18 19 @Test … … 41 42 Object defaultValue = args[1]; 42 43 43 ValueParam param = framsClass.getParamEntry(paramName, ValueParam.class);44 ValueParam param = getParam(framsClass, paramName, ValueParam.class); 44 45 assertThat(param.getDef(Object.class)).isEqualTo(defaultValue); 45 46 -
java/main/src/test/java/com/framsticks/model/f0/SchemaTest.java
r97 r105 11 11 12 12 import static org.fest.assertions.Assertions.*; 13 import static com.framsticks.params.ParamsUtil.getParam; 13 14 14 15 public class SchemaTest extends TestConfiguration { … … 23 24 24 25 assertThat(schema.getNeuroClass("|").getName()).isEqualTo("Bend muscle"); 25 assertThat( schema.getNeuroClass("VEye").getParam("p")).isInstanceOf(FloatParam.class);26 assertThat( schema.getNeuroClass("VEye").getParamEntry("p", FloatParam.class).getMax(Double.class)).isEqualTo(10.0, delta(0.0));26 assertThat(getParam(schema.getNeuroClass("VEye"), "p")).isInstanceOf(FloatParam.class); 27 assertThat(getParam(schema.getNeuroClass("VEye"), "p", FloatParam.class).getMax(Double.class)).isEqualTo(10.0, delta(0.0)); 27 28 28 29 FramsClass partClass = schema.getFramsClass("p"); 29 30 assertThat(partClass).isNotNull(); 30 assertThat( partClass.getParamEntry("as", FloatParam.class).getDef(Double.class)).isEqualTo(0.25, delta(0.0));31 assertThat(getParam(partClass, "as", FloatParam.class).getDef(Double.class)).isEqualTo(0.25, delta(0.0)); 31 32 assertThat(partClass.getGroupCount()).isEqualTo(3); 32 33 assertThat(partClass.getGroup(1).getName()).isEqualTo("Other properties"); -
java/main/src/test/java/com/framsticks/params/FramsClassBuilderTest.java
r103 r105 6 6 import org.testng.annotations.Test; 7 7 8 import com.framsticks.core.ValueChange;9 8 import com.framsticks.params.types.EventParam; 10 9 import com.framsticks.params.types.ProcedureParam; 11 10 import com.framsticks.params.types.StringParam; 12 11 import com.framsticks.parsers.Savers; 12 import com.framsticks.structure.messages.ValueChange; 13 13 import com.framsticks.test.TestClass; 14 14 import com.framsticks.test.TestConfiguration; … … 16 16 17 17 import static org.fest.assertions.Assertions.*; 18 import static com.framsticks.params.ParamsUtil.arguments; 19 import static com.framsticks.params.ParamsUtil.getParam; 18 20 19 21 @Test … … 43 45 assertThat(framsClass.getParam("resetHistory")).isInstanceOf(ProcedureParam.class); 44 46 45 ProcedureParam appendHistory = framsClass.getParamEntry("appendHistory", ProcedureParam.class); 47 48 ProcedureParam appendHistory = getParam(framsClass, "appendHistory", ProcedureParam.class); 46 49 assertThat(appendHistory.getArgumentsType().size()).isEqualTo(1); 47 50 assertThat(appendHistory.getArgumentsType().get(0).getId()).isEqualTo("arg0"); … … 111 114 112 115 assertThat(access.get("history", String.class)).isEqualTo("initial|first|"); 113 Object result = access.call("appendHistory", new Object[] {"second"});116 Object result = access.call("appendHistory", arguments("second")); 114 117 115 118 assertThat(result).isInstanceOf(Integer.class); … … 117 120 assertThat(access.get("history", String.class)).isEqualTo("initial|first|second|"); 118 121 119 result = access.call("resetHistory" , null);122 result = access.call("resetHistory"); 120 123 assertThat(result).isNull(); 121 124 … … 136 139 }; 137 140 138 final EventParam eventParam = access.getFramsClass().getParamEntry("history_changed", EventParam.class);141 final EventParam eventParam = getParam(access, "history_changed", EventParam.class); 139 142 access.reg(eventParam, listener); 140 143 … … 142 145 final String addition = "test"; 143 146 144 access.call("appendHistory", new Object[] { addition });147 access.call("appendHistory", arguments(addition)); 145 148 146 149 String expected = currentHistory + addition + "|"; -
java/main/src/test/java/com/framsticks/params/ParamBuilderTest.java
r103 r105 9 9 import com.framsticks.test.TestConfiguration; 10 10 import static org.fest.assertions.Assertions.*; 11 import static com.framsticks.params.ParamsUtil.getParam; 11 12 12 13 @Test … … 24 25 assertThat(builderFramsClass.getName()).isEqualTo("prop"); 25 26 assertThat(builderFramsClass.getId()).isEqualTo("prop"); 26 assertThat( builderFramsClass.getParamEntry("flags", ValueParam.class).getDef(Object.class)).isEqualTo(new Integer(0));27 assertThat( builderFramsClass.getParamEntry("id", Param.class)).isInstanceOf(StringParam.class);27 assertThat(getParam(builderFramsClass, "flags", ValueParam.class).getDef(Object.class)).isEqualTo(new Integer(0)); 28 assertThat(getParam(builderFramsClass, "id", Param.class)).isInstanceOf(StringParam.class); 28 29 } 29 30 -
java/main/src/test/java/com/framsticks/parsers/F0ParserTest.java
r101 r105 17 17 import static org.fest.assertions.Assertions.*; 18 18 import static org.fest.assertions.Delta.*; 19 import static com.framsticks.params.ParamsUtil.getParam; 19 20 20 21 /** … … 48 49 public void primitiveParam() { 49 50 FramsClass joint = schema.getFramsClass("j"); 50 PrimitiveParam<?> dx = joint.getParamEntry("dx", PrimitiveParam.class);51 PrimitiveParam<?> dx = getParam(joint, "dx", PrimitiveParam.class); 51 52 assertThat(dx).isInstanceOf(FloatParam.class); 52 53 assertThat(schema.getNeuroClasses().size()).isEqualTo(21); … … 54 55 assertThat(dx.getMin(Double.class)).isEqualTo(-2.0, delta(0.0)); 55 56 56 assertThat( schema.getRegistry().getFramsClass("n").getParamEntry("d", StringParam.class).getDef(String.class)).isEqualTo("N");57 assertThat(getParam(schema.getRegistry().getFramsClass("n"), "d", StringParam.class).getDef(String.class)).isEqualTo("N"); 57 58 } 58 59 … … 60 61 public void readF0() throws IOException, ParseException { 61 62 assertThat(schema.getFramsClass("p")).isInstanceOf(FramsClass.class); 62 assertThat( schema.getRegistry().getFramsClass("p").getParamEntry("as", FloatParam.class).getDef(Double.class)).isEqualTo(0.25, delta(0.0));63 assertThat(getParam(schema.getRegistry().getFramsClass("p"), "as", FloatParam.class).getDef(Double.class)).isEqualTo(0.25, delta(0.0)); 63 64 64 65 accesses = new F0Parser(schema, F0ParserTest.class.getResourceAsStream("/parsers/f0_example.txt")).parse(); … … 91 92 92 93 assertThat(model.getParts().get(1).getPosition().x).isEqualTo(2.0, delta(0.0)); 93 assertThat(model.getParts().get(2).getPosition().sub(new Point3d(2.27236, -0.0792596, -0.958924)).length()). isLessThan(0.0001);94 assertThat(model.getParts().get(2).getPosition().sub(new Point3d(2.27236, -0.0792596, -0.958924)).length()).describedAs("position error").isLessThan(0.0001); 94 95 assertThat(model.getParts().get(2).getOrientation().y.sub(new Point3d(0.870277, -0.404792, 0.280644)).length()).isLessThan(0.0001); 95 96 -
java/main/src/test/java/com/framsticks/running/ExternalProcessTest.java
r101 r105 9 9 import org.testng.annotations.Test; 10 10 11 import com.framsticks.core.ValueChange;12 11 import com.framsticks.params.EventListener; 12 import com.framsticks.structure.messages.ValueChange; 13 13 import com.framsticks.test.TestConfiguration; 14 14 import com.framsticks.util.dispatching.Monitor; -
java/main/src/test/java/com/framsticks/test/TestConfiguration.java
r100 r105 10 10 import org.testng.annotations.*; 11 11 12 import com.framsticks.util.ExceptionHandler; 12 13 import com.framsticks.util.FramsticksException; 13 14 import com.framsticks.util.dispatching.Dispatcher; 14 15 import com.framsticks.util.dispatching.Dispatching; 15 16 import com.framsticks.util.dispatching.Dispatching.Waiter; 16 import com.framsticks.util.dispatching.ExceptionHandler; 17 import com.framsticks.util.dispatching.ExceptionResultHandler; 17 import com.framsticks.util.dispatching.ExceptionDispatcherHandler; 18 18 19 19 // import static org.fest.assertions.Assertions.*; … … 46 46 } 47 47 48 public Exception Handler createExceptionHandler() {49 return new Exception Handler() {48 public ExceptionDispatcherHandler createExceptionHandler() { 49 return new ExceptionDispatcherHandler() { 50 50 @Override 51 51 public boolean handle(Dispatcher<?> dispatcher, Throwable throwable) { … … 98 98 } 99 99 100 public final Exception ResultHandler failOnException = new ExceptionResultHandler() {100 public final ExceptionHandler failOnException = new ExceptionHandler() { 101 101 @Override 102 102 public void handle(FramsticksException e) { -
java/main/src/test/resources/configs/LocalTreeBrowserTest.xml
r99 r105 2 2 <Browser> 3 3 <import class="com.framsticks.model.ModelBuilder" /> 4 <import class="com.framsticks. core.LocalTree" />4 <import class="com.framsticks.structure.LocalTree" /> 5 5 <!-- <import class="com.framsticks.model.ModelPackage" /> --> 6 6 <LocalTree name="model"> -
java/main/src/test/resources/configs/ProcedureBrowserTest.xml
r99 r105 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <Browser> 3 <import class="com.framsticks. core.LocalTree" />3 <import class="com.framsticks.structure.LocalTree" /> 4 4 <import class="com.framsticks.test.TestClass" /> 5 5 <LocalTree name="test"> -
java/main/src/test/resources/configs/ServerTest.xml
r102 r105 3 3 <import class="com.framsticks.hosting.Server" /> 4 4 <import class="com.framsticks.remote.RemoteTree" /> 5 <import class="com.framsticks. core.LocalTree" />5 <import class="com.framsticks.structure.LocalTree" /> 6 6 <import class="com.framsticks.test.TestClass" /> 7 7 <import class="com.framsticks.running.LoggingOutputListener" />
Note: See TracChangeset
for help on using the changeset viewer.