public void test_clone() { // Test for method java.lang.Object java.text.ChoiceFormat.clone() ChoiceFormat f = (ChoiceFormat)f1.Clone(); assertTrue("Not equal", f.Equals(f1)); f.SetChoices(new double[] { 0, 1, 2 }, new String[] { "0", "1", "2" }); assertTrue("Equal", !f.Equals(f1)); }
public void test_setChoices_D_Ljava_lang_String() { // Test for method void java.text.ChoiceFormat.setChoices(double [], // java.lang.String []) ChoiceFormat f = (ChoiceFormat)f1.Clone(); double[] l = new double[] { 0, 1 }; String[] fs = new String[] { "0", "1" }; f.SetChoices(l, fs); assertTrue("Limits copied", f.GetLimits() == l); assertTrue("Formats copied", f.GetFormats() == fs); }