@Test public void unprefixed_name_in_message_catalog() { Messages messages = mockMessages(); stub_contains(messages, false); train_contains(messages, "MOE", true); train_get(messages, "MOE", "Sir Moe Howard"); replay(); SelectModel model = new EnumSelectModel(Stooge.class, messages); List<OptionModel> options = model.getOptions(); assertEquals(options.size(), 3); checkOption(options, 0, "Sir Moe Howard", Stooge.MOE); checkOption(options, 1, "Larry", Stooge.LARRY); checkOption(options, 2, "Curly Joe", Stooge.CURLY_JOE); verify(); }
public List<OptionModel> getOptions() { return options; }
EnumSelectModel extends AbstractSelectModel implements Serializable { public List<OptionModel> getOptions() { return options; } }
EnumSelectModel extends AbstractSelectModel implements Serializable { public List<OptionModel> getOptions() { return options; } <T extends Enum> EnumSelectModel(Class<T> enumClass, Messages messages); <T extends Enum> EnumSelectModel(Class<T> enumClass, Messages messages, T[] values); }
EnumSelectModel extends AbstractSelectModel implements Serializable { public List<OptionModel> getOptions() { return options; } <T extends Enum> EnumSelectModel(Class<T> enumClass, Messages messages); <T extends Enum> EnumSelectModel(Class<T> enumClass, Messages messages, T[] values); List<OptionGroupModel> getOptionGroups(); List<OptionModel> getOptions(); }
EnumSelectModel extends AbstractSelectModel implements Serializable { public List<OptionModel> getOptions() { return options; } <T extends Enum> EnumSelectModel(Class<T> enumClass, Messages messages); <T extends Enum> EnumSelectModel(Class<T> enumClass, Messages messages, T[] values); List<OptionGroupModel> getOptionGroups(); List<OptionModel> getOptions();  }