Package com.moseph.modelutils.serialisation

Examples of com.moseph.modelutils.serialisation.EasyPersister


 
  @Test
  public void testBasicOperation() throws Exception
  {
    LinearFunction function = new LinearFunction( 3, 8 );
    function = new EasyPersister().roundTripSerialise( function );
    assertEquals( 3 + 4*8, function.sample4 ), 0.00001 );
    assertEquals( 3 , function.sample0 ), 0.00001 );
    assertEquals( 3 - 4*8, function.sample-4 ), 0.00001 );
  }
View Full Code Here

TOP

Related Classes of com.moseph.modelutils.serialisation.EasyPersister

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.