Examples of fixed_scale()


Examples of org.omg.CORBA.TypeCode.fixed_scale()

       }

       TypeCode typeCode = _type();
       try
       {
           out.write_fixed(value, typeCode.fixed_digits(), typeCode.fixed_scale());
       }
       catch (BadKind e)
       {
           throw new RuntimeException("should never happen", e);
       }
View Full Code Here

Examples of org.omg.CORBA.TypeCode.fixed_scale()

  {
    try
      {
        TypeCode t = orb.create_fixed_tc((short) 15, (short) 6);
        assertEquals("fixed digits", t.fixed_digits(), (short) 15);
        assertEquals("fixed scale", t.fixed_scale(), (short) 6);
        assertEquals("create_fixed_tc", t.kind().value(), TCKind._tk_fixed);
      }
    catch (BadKind ex)
      {
        fail("BadKind exception when testing fixed tc");
View Full Code Here

Examples of org.omg.CORBA.TypeCode.fixed_scale()

                    return false;
            }
            if (myKind == TCKind._tk_fixed)
            {
                if (myRealType.fixed_digits() != otherRealType.fixed_digits() ||
                    myRealType.fixed_scale() != otherRealType.fixed_scale())
                    return false;
            }
            if (myKind == TCKind._tk_union)
            {
                for (int i=0; i<myRealType.member_count(); i++) {
View Full Code Here

Examples of org.omg.CORBA.TypeCode.fixed_scale()

                    return false;
            }
            if (myKind == TCKind._tk_fixed)
            {
                if (myRealType.fixed_digits() != otherRealType.fixed_digits() ||
                    myRealType.fixed_scale() != otherRealType.fixed_scale())
                    return false;
            }
            if (myKind == TCKind._tk_union)
            {
                for (int i=0; i<myRealType.member_count(); i++) {
View Full Code Here

Examples of org.omg.CORBA.TypeCode.fixed_scale()

        TypeCode typeCode = new FixedHolder(new BigDecimal("471.1"))._type();

        String message = "probably using org.omg.CORBA.* from JDK, not JacORB"
                       + " (is JacORB on the bootclasspath?)";
        assertEquals (message, 4, typeCode.fixed_digits());
        assertEquals (message, 1, typeCode.fixed_scale());
    }

    /**
     * @see #testCorrectClassOnBootclasspath()
     */
 
View Full Code Here

Examples of org.omg.CORBA.TypeCode.fixed_scale()

{
    public void testHolder0() throws Exception
    {
        TypeCode typeCode = new FixedHolder(new BigDecimal("0"))._type();
        assertEquals(1, typeCode.fixed_digits());
        assertEquals(0, typeCode.fixed_scale());
    }

    public void testHolder1() throws Exception
    {
        TypeCode typeCode = new FixedHolder(new BigDecimal("1.0"))._type();
View Full Code Here

Examples of org.omg.CORBA.TypeCode.fixed_scale()

    public void testHolder1() throws Exception
    {
        TypeCode typeCode = new FixedHolder(new BigDecimal("1.0"))._type();
        assertEquals(2, typeCode.fixed_digits());
        assertEquals(1, typeCode.fixed_scale());
    }

    public void testHolder2() throws Exception
    {
        TypeCode typeCode = new FixedHolder(new BigDecimal("1.01"))._type();
View Full Code Here

Examples of org.omg.CORBA.TypeCode.fixed_scale()

    public void testHolder2() throws Exception
    {
        TypeCode typeCode = new FixedHolder(new BigDecimal("1.01"))._type();
        assertEquals(3, typeCode.fixed_digits());
        assertEquals(2, typeCode.fixed_scale());
    }

    /**
     * Tests creating a DynAny object from an Any object using the
     * DynAnyFactory object.
View Full Code Here

Examples of org.omg.CORBA.TypeCode.fixed_scale()

    @Test
    public void testHolder0() throws Exception
    {
        TypeCode typeCode = new FixedHolder(new BigDecimal("0"))._type();
        assertEquals(1, typeCode.fixed_digits());
        assertEquals(0, typeCode.fixed_scale());
    }

    @Test
    public void testHolder1() throws Exception
    {
View Full Code Here

Examples of org.omg.CORBA.TypeCode.fixed_scale()

    @Test
    public void testHolder1() throws Exception
    {
        TypeCode typeCode = new FixedHolder(new BigDecimal("1.0"))._type();
        assertEquals(2, typeCode.fixed_digits());
        assertEquals(1, typeCode.fixed_scale());
    }

    @Test
    public void testHolder2() throws Exception
    {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.