Package siena.base.test.model

Examples of siena.base.test.model.BigDecimalModelNoPrecision


    bigdec2 = pm.getByKey(BigDecimalModel.class, bigdec.id);
    assertEquals(bigdec, bigdec2);
  }
 
  public void testBigDecimalNoPrecision() {
    BigDecimalModelNoPrecision bigdec =
      new BigDecimalModelNoPrecision(new BigDecimal("123456789.01"));
    pm.insert(bigdec);
   
    BigDecimalModelNoPrecision bigdec2 = pm.getByKey(BigDecimalModelNoPrecision.class, bigdec.id);
    assertEquals(bigdec, bigdec2);
   
    bigdec =
      new BigDecimalModelNoPrecision(
          new BigDecimal("999999999.99"));
    pm.insert(bigdec);
   
    bigdec2 = pm.getByKey(BigDecimalModelNoPrecision.class, bigdec.id);
    assertEquals(bigdec, bigdec2);
   
    //-100.5
    bigdec =
      new BigDecimalModelNoPrecision(new BigDecimal("-100.50"));
    pm.insert(bigdec);
   
    bigdec2 = pm.getByKey(BigDecimalModelNoPrecision.class, bigdec.id);
    assertEquals(bigdec, bigdec2);
  }
View Full Code Here

TOP

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

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.