Package booton.soeur

Examples of booton.soeur.Scriptable


@SuppressWarnings("unused")
public class WideningPrimitiveConversionTest extends ScriptTester {

    @Test
    public void longToDouble() throws Exception {
        test(new Scriptable() {

            double act(long value) {
                return value / 2;
            }
        });
View Full Code Here


@SuppressWarnings("unused")
public class InitialValueTest extends ScriptTester {

    @Test
    public void Interger() {
        test(new Scriptable() {

            private int uninitialized;

            int act() {
                return uninitialized;
View Full Code Here

        });
    }

    @Test
    public void Long() {
        test(new Scriptable() {

            private long uninitialized;

            long act() {
                return uninitialized;
View Full Code Here

        });
    }

    @Test
    public void Float() {
        test(new Scriptable() {

            private float uninitialized;

            float act() {
                return uninitialized;
View Full Code Here

        });
    }

    @Test
    public void Double() {
        test(new Scriptable() {

            private double uninitialized;

            double act() {
                return uninitialized;
View Full Code Here

        });
    }

    @Test
    public void Byte() {
        test(new Scriptable() {

            private byte uninitialized;

            byte act() {
                return uninitialized;
View Full Code Here

        });
    }

    @Test
    public void Short() {
        test(new Scriptable() {

            private short uninitialized;

            short act() {
                return uninitialized;
View Full Code Here

        });
    }

    @Test
    public void Char() {
        test(new Scriptable() {

            private char uninitialized;

            char act() {
                return uninitialized;
View Full Code Here

        });
    }

    @Test
    public void Boolean() {
        test(new Scriptable() {

            private boolean uninitialized;

            boolean act() {
                return uninitialized;
View Full Code Here

@SuppressWarnings("unused")
public class PrimitiveAndWrapperClassTest extends ScriptTester {

    @Test
    public void IntegerPrimitive() throws Exception {
        test(new Scriptable() {

            Class act() {
                return int.class;
            }
        });
View Full Code Here

TOP

Related Classes of booton.soeur.Scriptable

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.