@Test public void convertFromValidLowerCaseString() throws Exception { assertEquals(GelfTransports.TCP, new GelfTransportsConverter().convertFrom("tcp")); }
@Override public GelfTransports convertFrom(String value) { try { return GelfTransports.valueOf(Strings.nullToEmpty(value).toUpperCase(Locale.ENGLISH)); } catch (IllegalArgumentException e) { throw new ParameterException("Couldn't convert value \"" + value + "\" to GELF transport.", e); } }
GelfTransportsConverter implements Converter<GelfTransports> { @Override public GelfTransports convertFrom(String value) { try { return GelfTransports.valueOf(Strings.nullToEmpty(value).toUpperCase(Locale.ENGLISH)); } catch (IllegalArgumentException e) { throw new ParameterException("Couldn't convert value \"" + value + "\" to GELF transport.", e); } } }
GelfTransportsConverter implements Converter<GelfTransports> { @Override public GelfTransports convertFrom(String value) { try { return GelfTransports.valueOf(Strings.nullToEmpty(value).toUpperCase(Locale.ENGLISH)); } catch (IllegalArgumentException e) { throw new ParameterException("Couldn't convert value \"" + value + "\" to GELF transport.", e); } }  }
GelfTransportsConverter implements Converter<GelfTransports> { @Override public GelfTransports convertFrom(String value) { try { return GelfTransports.valueOf(Strings.nullToEmpty(value).toUpperCase(Locale.ENGLISH)); } catch (IllegalArgumentException e) { throw new ParameterException("Couldn't convert value \"" + value + "\" to GELF transport.", e); } }  @Override GelfTransports convertFrom(String value); @Override String convertTo(GelfTransports value); }
GelfTransportsConverter implements Converter<GelfTransports> { @Override public GelfTransports convertFrom(String value) { try { return GelfTransports.valueOf(Strings.nullToEmpty(value).toUpperCase(Locale.ENGLISH)); } catch (IllegalArgumentException e) { throw new ParameterException("Couldn't convert value \"" + value + "\" to GELF transport.", e); } }  @Override GelfTransports convertFrom(String value); @Override String convertTo(GelfTransports value);  }