Examples of fixed_digits()


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

    @Test
    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
View Full Code Here

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

    {
        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_digits()

       }

       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
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.