OptionsImpl extends AbstractFieldImpl implements Options { @Override public Type getType() { if (type == null) { type = Options.Type.fromString(typeString); } return type; }  @Override List<OptionItem> getItems(); @Override String getHelpMessage(); @Override Type getType(); @Override String getValue();  }
@Test public void testRadioOptionsType() { Options options = getOptionsUnderTest(OPTIONS_6); assertEquals(Type.RADIO, options.getType()); Utils.testJSONExport(options, Utils.getTestExporterJSONPath(TEST_BASE, OPTIONS_6)); }
@Test public void testDropDownOptionsType() { Options options = getOptionsUnderTest(OPTIONS_7); assertEquals(Type.DROP_DOWN, options.getType()); Utils.testJSONExport(options, Utils.getTestExporterJSONPath(TEST_BASE, OPTIONS_7)); }
@Test public void testMultiDropDownOptionsType() { Options options = getOptionsUnderTest(OPTIONS_8); assertEquals(Type.MULTI_DROP_DOWN, options.getType()); Utils.testJSONExport(options, Utils.getTestExporterJSONPath(TEST_BASE, OPTIONS_8)); }