Package booton.sample.beans

Examples of booton.sample.beans.Primitives


        assert other.getName().equals("Yuigahama Yui");
    }

    @Test
    public void primitives() throws Exception {
        Primitives primitives = I.make(Primitives.class);
        primitives.setIntValue(10);
        primitives.setBooleanValue(true);
        primitives.setByteValue((byte) 2);
        primitives.setCharValue('a');
        primitives.setDoubleValue(9.3443456345634D);
        primitives.setFloatValue(0.533f);
        primitives.setLongValue(3020103L);
        primitives.setShortValue((short) 19);

        Primitives other = writeThenRead(primitives);

        assert other.getByteValue() == 2;
        assert other.getCharValue() == 'a';
        assert other.getDoubleValue() == 9.3443456345634D;
        assert other.getFloatValue() == 0.533f;
        assert other.getIntValue() == 10;
        // assert other.getLongValue() == 3020103L;
        assert other.getShortValue() == 19;
    }
View Full Code Here

TOP

Related Classes of booton.sample.beans.Primitives

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.