Package siena.base.test.model

Examples of siena.base.test.model.BigDecimalDoubleModel


    bigdec2 = pm.getByKey(BigDecimalStringModel.class, bigdec.id);
    assertEquals(bigdec, bigdec2);
  }
 
  public void testBigDecimalDouble() {
    BigDecimalDoubleModel bigdec =
      new BigDecimalDoubleModel(new BigDecimal("123456789.012345"));
    pm.insert(bigdec);
   
    BigDecimalDoubleModel bigdec2 = pm.getByKey(BigDecimalDoubleModel.class, bigdec.id);
    assertEquals(bigdec, bigdec2);
   
    bigdec =
      new BigDecimalDoubleModel(
          new BigDecimal("999999999.9999999999"));
    pm.insert(bigdec);
   
    bigdec2 = pm.getByKey(BigDecimalDoubleModel.class, bigdec.id);
    assertEquals(bigdec, bigdec2);
   
    //-100.5
    bigdec =
      new BigDecimalDoubleModel(new BigDecimal("-100.5000000000"));
    pm.insert(bigdec);
   
    bigdec2 = pm.getByKey(BigDecimalDoubleModel.class, bigdec.id);
    assertEquals(bigdec, bigdec2);
  }
View Full Code Here

TOP

Related Classes of siena.base.test.model.BigDecimalDoubleModel

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.