public void doSth() { Integer myVar = 1; // 1 reference: variable type to enumeration import BigDecimalLayoutForm form = null; System.out.println(myVar.toString()); }
/** * @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]); }
/** * @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); }
public BigDecimalLayoutForm newMethodReturnToClassImport() { return null; }