- Timestamp:
- 09/10/13 21:11:41 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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);
Note: See TracChangeset
for help on using the changeset viewer.