Java 类java.util.Formatter.BigDecimalLayoutForm 实例源码

项目:SPLevo    文件:A.java   
public void doSth() {
    Integer myVar = 1;

    // 1 reference: variable type to enumeration import
    BigDecimalLayoutForm form = null;

    System.out.println(myVar.toString());
}
项目:cn1    文件:FormatterTest.java   
/**
 * @tests java.util.Formatter.BigDecimalLayoutForm#values()
 */
public void test_values() {
    BigDecimalLayoutForm[] vals = BigDecimalLayoutForm.values();
    assertEquals("Invalid length of enum values", 2, vals.length);
    assertEquals("Wrong scientific value in enum", BigDecimalLayoutForm.SCIENTIFIC, vals[0]);
    assertEquals("Wrong dec float value in enum", BigDecimalLayoutForm.DECIMAL_FLOAT, vals[1]);
}
项目:cn1    文件:FormatterTest.java   
/**
 * @tests java.util.Formatter.BigDecimalLayoutForm#valueOf(String)
 */
public void test_valueOfLjava_lang_String() {
    BigDecimalLayoutForm sci = BigDecimalLayoutForm.valueOf("SCIENTIFIC");
    assertEquals("Wrong scientific value in enum", BigDecimalLayoutForm.SCIENTIFIC, sci);

    BigDecimalLayoutForm decFloat = BigDecimalLayoutForm.valueOf("DECIMAL_FLOAT");
    assertEquals("Wrong dec float value from valueOf ", BigDecimalLayoutForm.DECIMAL_FLOAT, decFloat);
}
项目:freeVM    文件:FormatterTest.java   
/**
 * @tests java.util.Formatter.BigDecimalLayoutForm#values()
 */
public void test_values() {
    BigDecimalLayoutForm[] vals = BigDecimalLayoutForm.values();
    assertEquals("Invalid length of enum values", 2, vals.length);
    assertEquals("Wrong scientific value in enum", BigDecimalLayoutForm.SCIENTIFIC, vals[0]);
    assertEquals("Wrong dec float value in enum", BigDecimalLayoutForm.DECIMAL_FLOAT, vals[1]);
}
项目:freeVM    文件:FormatterTest.java   
/**
 * @tests java.util.Formatter.BigDecimalLayoutForm#valueOf(String)
 */
public void test_valueOfLjava_lang_String() {
    BigDecimalLayoutForm sci = BigDecimalLayoutForm.valueOf("SCIENTIFIC");
    assertEquals("Wrong scientific value in enum", BigDecimalLayoutForm.SCIENTIFIC, sci);

    BigDecimalLayoutForm decFloat = BigDecimalLayoutForm.valueOf("DECIMAL_FLOAT");
    assertEquals("Wrong dec float value from valueOf ", BigDecimalLayoutForm.DECIMAL_FLOAT, decFloat);
}
项目:freeVM    文件:FormatterTest.java   
/**
 * @tests java.util.Formatter.BigDecimalLayoutForm#values()
 */
public void test_values() {
    BigDecimalLayoutForm[] vals = BigDecimalLayoutForm.values();
    assertEquals("Invalid length of enum values", 2, vals.length);
    assertEquals("Wrong scientific value in enum", BigDecimalLayoutForm.SCIENTIFIC, vals[0]);
    assertEquals("Wrong dec float value in enum", BigDecimalLayoutForm.DECIMAL_FLOAT, vals[1]);
}
项目:freeVM    文件:FormatterTest.java   
/**
 * @tests java.util.Formatter.BigDecimalLayoutForm#valueOf(String)
 */
public void test_valueOfLjava_lang_String() {
    BigDecimalLayoutForm sci = BigDecimalLayoutForm.valueOf("SCIENTIFIC");
    assertEquals("Wrong scientific value in enum", BigDecimalLayoutForm.SCIENTIFIC, sci);

    BigDecimalLayoutForm decFloat = BigDecimalLayoutForm.valueOf("DECIMAL_FLOAT");
    assertEquals("Wrong dec float value from valueOf ", BigDecimalLayoutForm.DECIMAL_FLOAT, decFloat);
}
项目:SPLevo    文件:A.java   
public BigDecimalLayoutForm newMethodReturnToClassImport() {
    return null;
}