Examples of AllFieldTypesTest


Examples of org.apache.openjpa.persistence.kernel.common.apps.AllFieldTypesTest

        aftt.setTestshort(Short.MAX_VALUE);
        saveAndQuery(aftt, "testshort = :param", new Short(Short.MAX_VALUE));
    }

    public void testShortMin() {
        AllFieldTypesTest aftt = new AllFieldTypesTest();
        aftt.setTestshort(Short.MIN_VALUE);
        try {
            saveAndQuery(aftt, "testshort = :param",
                new Short(Short.MIN_VALUE));
        } catch (Throwable t) {
            bug(AbstractTestCase.Platform.EMPRESS, 889, t,
View Full Code Here

Examples of org.apache.openjpa.persistence.kernel.common.apps.AllFieldTypesTest

                "Empress cannot store min values");
        }
    }

    public void testLongMax() {
        AllFieldTypesTest aftt = new AllFieldTypesTest();
        aftt.setTestlong(Long.MAX_VALUE);
        saveAndQuery(aftt, "testlong = :param", new Long(Long.MAX_VALUE));
    }
View Full Code Here

Examples of org.apache.openjpa.persistence.kernel.common.apps.AllFieldTypesTest

        saveAndQuery(aftt, "testlong = :param", new Long(Long.MAX_VALUE));
    }

    public void testLongMin() {
        try {
            AllFieldTypesTest aftt = new AllFieldTypesTest();
            aftt.setTestlong(Long.MIN_VALUE);
            saveAndQuery(aftt, "testlong = :param", new Long(Long.MIN_VALUE));
        } catch (Throwable t) {
            bug(AbstractTestCase.Platform.HYPERSONIC, 474, t,
                "Some databases cannot store Long.MIN_VALUE");
        }
View Full Code Here

Examples of org.apache.openjpa.persistence.kernel.common.apps.AllFieldTypesTest

                "Some databases cannot store Long.MIN_VALUE");
        }
    }

    public void testIntegerMax() {
        AllFieldTypesTest aftt = new AllFieldTypesTest();
        aftt.setTestint(Integer.MAX_VALUE);
        saveAndQuery(aftt, "testint = :param",
            new Integer(Integer.MAX_VALUE));
    }
View Full Code Here

Examples of org.apache.openjpa.persistence.kernel.common.apps.AllFieldTypesTest

        saveAndQuery(aftt, "testint = :param",
            new Integer(Integer.MAX_VALUE));
    }

    public void testIntegerMin() {
        AllFieldTypesTest aftt = new AllFieldTypesTest();
        aftt.setTestint(Integer.MIN_VALUE);
        try {
            saveAndQuery(aftt, "testint = :param",
                new Integer(Integer.MIN_VALUE));
        } catch (Throwable t) {
            bug(AbstractTestCase.Platform.EMPRESS, 889, t,
View Full Code Here

Examples of org.apache.openjpa.persistence.kernel.common.apps.AllFieldTypesTest

        }
    }

    public void testFloatMax() {
        try {
            AllFieldTypesTest aftt = new AllFieldTypesTest();
            aftt.setTestfloat(Float.MAX_VALUE);
            saveAndQuery(aftt, "testfloat = :param",
                new Float(Float.MAX_VALUE));
        } catch (Exception e) {
            bug(EnumSet.of(AbstractTestCase.Platform.POSTGRESQL,
                AbstractTestCase.Platform.DB2,
View Full Code Here

Examples of org.apache.openjpa.persistence.kernel.common.apps.AllFieldTypesTest

        }
    }

    public void testFloatMin() {
        try {
            AllFieldTypesTest aftt = new AllFieldTypesTest();
            aftt.setTestfloat(Float.MIN_VALUE);
            saveAndQuery(aftt, "testfloat = :param",
                new Float(Float.MIN_VALUE));
        } catch (Exception e) {
            bug(EnumSet.of(AbstractTestCase.Platform.POSTGRESQL,
                AbstractTestCase.Platform.SQLSERVER,
View Full Code Here

Examples of org.apache.openjpa.persistence.kernel.common.apps.AllFieldTypesTest

        }
    }

    public void testFloatNaN() {
        try {
            AllFieldTypesTest aftt = new AllFieldTypesTest();
            aftt.setTestfloat(Float.NaN);
            saveAndQuery(aftt, "testfloat = :param", new Float(Float.NaN));
        } catch (Throwable t) {
            bug(461, t, "NaN problems");
        }
    }
View Full Code Here

Examples of org.apache.openjpa.persistence.kernel.common.apps.AllFieldTypesTest

        }
    }

    public void testFloatNegativeInfinity() {
        try {
            AllFieldTypesTest aftt = new AllFieldTypesTest();
            aftt.setTestfloat(Float.NEGATIVE_INFINITY);
            saveAndQuery(aftt, "testfloat = :param",
                new Float(Float.NEGATIVE_INFINITY));
        } catch (Exception e) {
            bug(EnumSet.of(AbstractTestCase.Platform.POINTBASE,
                AbstractTestCase.Platform.POSTGRESQL,
View Full Code Here

Examples of org.apache.openjpa.persistence.kernel.common.apps.AllFieldTypesTest

        }
    }

    public void testFloatPostivieInfinity() {
        try {
            AllFieldTypesTest aftt = new AllFieldTypesTest();
            aftt.setTestfloat(Float.POSITIVE_INFINITY);
            saveAndQuery(aftt, "testfloat = :param",
                new Float(Float.POSITIVE_INFINITY));
        } catch (Exception e) {
            bug(EnumSet.of(AbstractTestCase.Platform.POINTBASE,
                AbstractTestCase.Platform.POSTGRESQL,
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.