Changeset 87 for java/main/src/test
- Timestamp:
- 06/28/13 11:56:03 (11 years ago)
- Location:
- java/main/src/test
- Files:
-
- 7 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
java/main/src/test/java/com/framsticks/gui/BrowserTest.java
r84 r87 14 14 import org.testng.annotations.*; 15 15 16 import com.framsticks.communication.ClientConnection;17 16 import com.framsticks.remote.RemoteInstance; 18 17 import com.framsticks.test.TestConfiguration; … … 42 41 RemoteInstance localhost = new RemoteInstance(); 43 42 localhost.setName("localhost"); 44 localhost.set Connection(new ClientConnection("localhost:9009"));43 localhost.setAddress("localhost:9009"); 45 44 46 45 browser.addEndpointForInstance(localhost); -
java/main/src/test/java/com/framsticks/model/CreatureTest.java
r86 r87 4 4 5 5 import com.framsticks.params.FramsClass; 6 import com.framsticks.params.FramsClassBuilder;7 6 import com.framsticks.params.ReflectionAccess; 8 7 import com.framsticks.params.types.ArrayListParam; … … 23 22 @Test 24 23 public void testFramsClass() { 25 framsClass = FramsClass Builder.buildForClass(Creature.class);24 framsClass = FramsClass.build().forClass(Creature.class); 26 25 27 26 assertThat(framsClass).describedAs("framsClass").isNotNull(); … … 35 34 } 36 35 37 @Test 36 @Test(dependsOnMethods = "testFramsClass") 38 37 public void testReflectionAccess() throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException, SecurityException { 39 38 access = new ReflectionAccess(Creature.class, framsClass); -
java/main/src/test/java/com/framsticks/params/ParamBuilderTest.java
r86 r87 18 18 @Test 19 19 public void createBuilderFramsClass() { 20 builderFramsClass = FramsClass Builder.buildForClass(ParamBuilder.class);20 builderFramsClass = FramsClass.build().forClass(ParamBuilder.class); 21 21 22 22 assertThat(builderFramsClass.getParamCount()).isEqualTo(6); -
java/main/src/test/java/com/framsticks/parsers/F0ParserTest.java
r84 r87 2 2 3 3 import org.testng.annotations.*; 4 4 5 import com.framsticks.model.*; 5 6 import com.framsticks.model.Package; 6 7 import com.framsticks.params.*; 7 8 import com.framsticks.params.types.FloatParam; 9 import com.framsticks.params.types.StringParam; 8 10 import com.framsticks.test.TestConfiguration; 9 11 import com.framsticks.util.math.Point3d; … … 34 36 public void primitiveParam() { 35 37 FramsClass joint = schema.getRegistry().getInfoFromCache("j"); 36 PrimitiveParam dx = joint.getParamEntry("dx", PrimitiveParam.class);38 PrimitiveParam<?> dx = joint.getParamEntry("dx", PrimitiveParam.class); 37 39 assertThat(dx).isInstanceOf(FloatParam.class); 38 40 assertThat(schema.getNeuroClasses().size()).isEqualTo(21); 39 41 assertThat(dx.getName()).isEqualTo("delta.x"); 40 42 assertThat(dx.getMin(Double.class)).isEqualTo(-2.0, delta(0.0)); 43 44 assertThat(schema.getRegistry().getInfoFromCache("n").getParamEntry("d", StringParam.class).getDef(String.class)).isEqualTo("N"); 41 45 } 42 46
Note: See TracChangeset
for help on using the changeset viewer.