Package com.asakusafw.runtime.value

Examples of com.asakusafw.runtime.value.ShortOption.modify()


        testGetXXXOptionDo(excelUtils, sheet, DATA.STRING_1, TYPES.SMALLINT, shortOption);
        shortOption.modify((short)-1);
        testGetXXXOptionDo(excelUtils, sheet, DATA.STRING_MINUS1, TYPES.SMALLINT, shortOption);
        shortOption.modify(Short.MAX_VALUE);
        testGetXXXOptionDo(excelUtils, sheet, DATA.STRING_MAX, TYPES.SMALLINT, shortOption);
        shortOption.modify(Short.MIN_VALUE);
        testGetXXXOptionDo(excelUtils, sheet, DATA.STRING_MIN, TYPES.SMALLINT, shortOption);
        testGetXXXOptionDo(excelUtils, sheet, DATA.STRING_DECIMAL, TYPES.SMALLINT, new CellTypeMismatchException("数値"));
        testGetXXXOptionDo(excelUtils, sheet, DATA.STRING_OVER_MAX, TYPES.SMALLINT, new NumberFormatException("表現可能な範囲外の数値"));
        testGetXXXOptionDo(excelUtils, sheet, DATA.STRING_UNDER_MIN, TYPES.SMALLINT, new NumberFormatException("表現可能な範囲外の数値"));
        testGetXXXOptionDo(excelUtils, sheet, DATA.STRING_BIG_VALUE, TYPES.SMALLINT, new CellTypeMismatchException("数値"));
View Full Code Here


        testGetXXXOptionDo(excelUtils, sheet, DATA.STRING_BIG_VALUE, TYPES.SMALLINT, new CellTypeMismatchException("数値"));
        shortOption.setNull();
        testGetXXXOptionDo(excelUtils, sheet, DATA.BLANK, TYPES.SMALLINT, shortOption);
        longOption.setNull();
        testGetXXXOptionDo(excelUtils, sheet, DATA.NULL_STRING, TYPES.SMALLINT, new CellTypeMismatchException("数値"));
        shortOption.modify((short)1);
        testGetXXXOptionDo(excelUtils, sheet, DATA.BOOL_TRUE, TYPES.SMALLINT, shortOption);
        shortOption.modify((short)0);
        testGetXXXOptionDo(excelUtils, sheet, DATA.BOOL_FALSE, TYPES.SMALLINT, shortOption);
        testGetXXXOptionDo(excelUtils, sheet, DATA.NUMERIC_DATE, TYPES.SMALLINT, new NumberFormatException("表現可能な範囲外の数値"));
        testGetXXXOptionDo(excelUtils, sheet, DATA.DATE_DATE_FMT1, TYPES.SMALLINT, new NumberFormatException("表現可能な範囲外の数値"));
View Full Code Here

        testGetXXXOptionDo(excelUtils, sheet, DATA.BLANK, TYPES.SMALLINT, shortOption);
        longOption.setNull();
        testGetXXXOptionDo(excelUtils, sheet, DATA.NULL_STRING, TYPES.SMALLINT, new CellTypeMismatchException("数値"));
        shortOption.modify((short)1);
        testGetXXXOptionDo(excelUtils, sheet, DATA.BOOL_TRUE, TYPES.SMALLINT, shortOption);
        shortOption.modify((short)0);
        testGetXXXOptionDo(excelUtils, sheet, DATA.BOOL_FALSE, TYPES.SMALLINT, shortOption);
        testGetXXXOptionDo(excelUtils, sheet, DATA.NUMERIC_DATE, TYPES.SMALLINT, new NumberFormatException("表現可能な範囲外の数値"));
        testGetXXXOptionDo(excelUtils, sheet, DATA.DATE_DATE_FMT1, TYPES.SMALLINT, new NumberFormatException("表現可能な範囲外の数値"));
        testGetXXXOptionDo(excelUtils, sheet, DATA.DATE_DATE_FMT2, TYPES.SMALLINT, new NumberFormatException("表現可能な範囲外の数値"));
        testGetXXXOptionDo(excelUtils, sheet, DATA.DATE_DATETIME_FIMT1, TYPES.SMALLINT, new NumberFormatException("表現可能な範囲外の数値"));
View Full Code Here

        } else {
            if (l < Short.MIN_VALUE || Short.MAX_VALUE < l) {
                String msg = createExceptionMsg(cell, "表現可能な範囲外の数値(" + l + ")");
                throw new NumberFormatException(msg);
            }
            op.modify(l.shortValue());
        }
        return op;
    }

    /**
 
View Full Code Here

        testField(list, "getCIntOption", DATA.DATETIME_DATETIME_FIMT2, intOption.setNull());
        testField(list, "getCIntOption", DATA.STRING_DATETIME, intOption.setNull());

        // C_SMALLINTのテスト
        ShortOption shortOption = new ShortOption();
        testField(list, "getCSmallintOption", DATA.NUMERIC_0, shortOption.modify((short) 0));
        testField(list, "getCSmallintOption", DATA.NUMERIC_1, shortOption.modify((short) 1));
        testField(list, "getCSmallintOption", DATA.NUMERIC_MINUS1, shortOption.modify((short) -1));
        testField(list, "getCSmallintOption", DATA.NUMERIC_MAX, shortOption.modify(Short.MAX_VALUE));
        testField(list, "getCSmallintOption", DATA.NUMERIC_MIN, shortOption.modify(Short.MIN_VALUE));
        testField(list, "getCSmallintOption", DATA.NUMERIC_DECIMAL, shortOption.setNull());
View Full Code Here

        testField(list, "getCIntOption", DATA.STRING_DATETIME, intOption.setNull());

        // C_SMALLINTのテスト
        ShortOption shortOption = new ShortOption();
        testField(list, "getCSmallintOption", DATA.NUMERIC_0, shortOption.modify((short) 0));
        testField(list, "getCSmallintOption", DATA.NUMERIC_1, shortOption.modify((short) 1));
        testField(list, "getCSmallintOption", DATA.NUMERIC_MINUS1, shortOption.modify((short) -1));
        testField(list, "getCSmallintOption", DATA.NUMERIC_MAX, shortOption.modify(Short.MAX_VALUE));
        testField(list, "getCSmallintOption", DATA.NUMERIC_MIN, shortOption.modify(Short.MIN_VALUE));
        testField(list, "getCSmallintOption", DATA.NUMERIC_DECIMAL, shortOption.setNull());
        testField(list, "getCSmallintOption", DATA.NUMERIC_OVER_MAX, shortOption.setNull());
View Full Code Here

        // C_SMALLINTのテスト
        ShortOption shortOption = new ShortOption();
        testField(list, "getCSmallintOption", DATA.NUMERIC_0, shortOption.modify((short) 0));
        testField(list, "getCSmallintOption", DATA.NUMERIC_1, shortOption.modify((short) 1));
        testField(list, "getCSmallintOption", DATA.NUMERIC_MINUS1, shortOption.modify((short) -1));
        testField(list, "getCSmallintOption", DATA.NUMERIC_MAX, shortOption.modify(Short.MAX_VALUE));
        testField(list, "getCSmallintOption", DATA.NUMERIC_MIN, shortOption.modify(Short.MIN_VALUE));
        testField(list, "getCSmallintOption", DATA.NUMERIC_DECIMAL, shortOption.setNull());
        testField(list, "getCSmallintOption", DATA.NUMERIC_OVER_MAX, shortOption.setNull());
        testField(list, "getCSmallintOption", DATA.NUMERIC_UNDER_MIN, shortOption.setNull());
View Full Code Here

        // C_SMALLINTのテスト
        ShortOption shortOption = new ShortOption();
        testField(list, "getCSmallintOption", DATA.NUMERIC_0, shortOption.modify((short) 0));
        testField(list, "getCSmallintOption", DATA.NUMERIC_1, shortOption.modify((short) 1));
        testField(list, "getCSmallintOption", DATA.NUMERIC_MINUS1, shortOption.modify((short) -1));
        testField(list, "getCSmallintOption", DATA.NUMERIC_MAX, shortOption.modify(Short.MAX_VALUE));
        testField(list, "getCSmallintOption", DATA.NUMERIC_MIN, shortOption.modify(Short.MIN_VALUE));
        testField(list, "getCSmallintOption", DATA.NUMERIC_DECIMAL, shortOption.setNull());
        testField(list, "getCSmallintOption", DATA.NUMERIC_OVER_MAX, shortOption.setNull());
        testField(list, "getCSmallintOption", DATA.NUMERIC_UNDER_MIN, shortOption.setNull());
        testField(list, "getCSmallintOption", DATA.NUMERIC_BIG_VALUE, shortOption.setNull());
View Full Code Here

        ShortOption shortOption = new ShortOption();
        testField(list, "getCSmallintOption", DATA.NUMERIC_0, shortOption.modify((short) 0));
        testField(list, "getCSmallintOption", DATA.NUMERIC_1, shortOption.modify((short) 1));
        testField(list, "getCSmallintOption", DATA.NUMERIC_MINUS1, shortOption.modify((short) -1));
        testField(list, "getCSmallintOption", DATA.NUMERIC_MAX, shortOption.modify(Short.MAX_VALUE));
        testField(list, "getCSmallintOption", DATA.NUMERIC_MIN, shortOption.modify(Short.MIN_VALUE));
        testField(list, "getCSmallintOption", DATA.NUMERIC_DECIMAL, shortOption.setNull());
        testField(list, "getCSmallintOption", DATA.NUMERIC_OVER_MAX, shortOption.setNull());
        testField(list, "getCSmallintOption", DATA.NUMERIC_UNDER_MIN, shortOption.setNull());
        testField(list, "getCSmallintOption", DATA.NUMERIC_BIG_VALUE, shortOption.setNull());
        testField(list, "getCSmallintOption", DATA.STRING_0, shortOption.modify((short) 0));
View Full Code Here

        testField(list, "getCSmallintOption", DATA.NUMERIC_MIN, shortOption.modify(Short.MIN_VALUE));
        testField(list, "getCSmallintOption", DATA.NUMERIC_DECIMAL, shortOption.setNull());
        testField(list, "getCSmallintOption", DATA.NUMERIC_OVER_MAX, shortOption.setNull());
        testField(list, "getCSmallintOption", DATA.NUMERIC_UNDER_MIN, shortOption.setNull());
        testField(list, "getCSmallintOption", DATA.NUMERIC_BIG_VALUE, shortOption.setNull());
        testField(list, "getCSmallintOption", DATA.STRING_0, shortOption.modify((short) 0));
        testField(list, "getCSmallintOption", DATA.STRING_1, shortOption.modify((short) 1));
        testField(list, "getCSmallintOption", DATA.STRING_MINUS1, shortOption.modify((short) -1));
        testField(list, "getCSmallintOption", DATA.STRING_MAX, shortOption.modify(Short.MAX_VALUE));
        testField(list, "getCSmallintOption", DATA.STRING_MIN, shortOption.modify(Short.MIN_VALUE));
        testField(list, "getCSmallintOption", DATA.STRING_DECIMAL, shortOption.setNull());
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.