Package siena.base.test.model

Examples of siena.base.test.model.BigDecimalModel


    assertEquals(embed.beta, afterContainer.embed.beta);
    assertEquals(null, afterContainer.embed.subs);
  }
 
  public void testBigDecimal() {
    BigDecimalModel bigdec =
      new BigDecimalModel(new BigDecimal("123456789.0123456890"));
    pm.insert(bigdec);
   
    BigDecimalModel bigdec2 = pm.getByKey(BigDecimalModel.class, bigdec.id);
    assertEquals(bigdec, bigdec2);
   
    bigdec =
      new BigDecimalModel(
          new BigDecimal("999999999.9999999999"));
    pm.insert(bigdec);
   
    bigdec2 = pm.getByKey(BigDecimalModel.class, bigdec.id);
    assertEquals(bigdec, bigdec2);
   
    //-100.5
    bigdec =
      new BigDecimalModel(new BigDecimal("-100.5000000000"));
    pm.insert(bigdec);
   
    bigdec2 = pm.getByKey(BigDecimalModel.class, bigdec.id);
    assertEquals(bigdec, bigdec2);
  }
View Full Code Here

TOP

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

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.