@Test public void convertToWithNull() throws Exception { expectedException.expect(ParameterException.class); expectedException.expectMessage("Couldn't convert \"null\" to string."); new GelfTransportsConverter().convertTo(null); }
@Override public String convertTo(GelfTransports value) { if (value == null) { throw new ParameterException("Couldn't convert \"null\" to string."); } return value.name(); }
GelfTransportsConverter implements Converter<GelfTransports> { @Override public String convertTo(GelfTransports value) { if (value == null) { throw new ParameterException("Couldn't convert \"null\" to string."); } return value.name(); } }
GelfTransportsConverter implements Converter<GelfTransports> { @Override public String convertTo(GelfTransports value) { if (value == null) { throw new ParameterException("Couldn't convert \"null\" to string."); } return value.name(); }  }
GelfTransportsConverter implements Converter<GelfTransports> { @Override public String convertTo(GelfTransports value) { if (value == null) { throw new ParameterException("Couldn't convert \"null\" to string."); } return value.name(); }  @Override GelfTransports convertFrom(String value); @Override String convertTo(GelfTransports value); }
GelfTransportsConverter implements Converter<GelfTransports> { @Override public String convertTo(GelfTransports value) { if (value == null) { throw new ParameterException("Couldn't convert \"null\" to string."); } return value.name(); }  @Override GelfTransports convertFrom(String value); @Override String convertTo(GelfTransports value);  }