Package org.omg.CORBA

Examples of org.omg.CORBA.FixedHolder


public class DynAnyFixedTest extends DynAnyXXXTestCase
{
    public void testHolder0() throws Exception
    {
        TypeCode typeCode = new FixedHolder(new BigDecimal("0"))._type();
        assertEquals(1, typeCode.fixed_digits());
        assertEquals(0, typeCode.fixed_scale());
    }
View Full Code Here


        assertEquals(0, 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());
    }
View Full Code Here

        assertEquals(1, 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());
    }
View Full Code Here

    /**
     * if this test fails others might fail too.
     */
    public void testCorrectClassOnBootclasspath() throws Exception
    {
        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());
View Full Code Here

        throws Exception
    {
        BigDecimal testValue = new BigDecimal("471.1");

        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_Streamable(new FixedHolder(testValue));
        assertEquals(testValue, outAny.extract_fixed());

        Any inAny = server.bounce_any(outAny);

        assertEquals(testValue, inAny.extract_fixed());
View Full Code Here

public class DynAnyFixedTest extends DynAnyXXXTestCase
{
    @Test
    public void testHolder0() throws Exception
    {
        TypeCode typeCode = new FixedHolder(new BigDecimal("0"))._type();
        assertEquals(1, typeCode.fixed_digits());
        assertEquals(0, typeCode.fixed_scale());
    }
View Full Code Here

    }

    @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());
    }
View Full Code Here

    }

    @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());
    }
View Full Code Here

            }
            val = buffer.toString();
         }
         fixed_value = new BigDecimal( val );

         org.omg.CORBA.TypeCode type = new FixedHolder(fixed_value)._type();

         if ( type.fixed_digits() > type().fixed_digits() )
         {
            throw new InvalidValue();
         }
View Full Code Here

     * if this test fails others might fail too.
     */
    @Test
    public void testCorrectClassOnBootclasspath() throws Exception
    {
        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());
View Full Code Here

TOP

Related Classes of org.omg.CORBA.FixedHolder

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.