@Test(expected = NullPointerException.class) public void getConverter_NULL_X_SETTINGS() { manager.getConverter(null); }
public FacetValueConverter getConverter(XSettings xsettings) { Preconditions.checkNotNull(xsettings); for (FacetValueConverter converter :converters) { if (converter.handles(xsettings)) { return converter; } } throw new IllegalArgumentException("no FacetValueConverter can be found for " + xsettings); }
FacetValueConverterManager { public FacetValueConverter getConverter(XSettings xsettings) { Preconditions.checkNotNull(xsettings); for (FacetValueConverter converter :converters) { if (converter.handles(xsettings)) { return converter; } } throw new IllegalArgumentException("no FacetValueConverter can be found for " + xsettings); } }
FacetValueConverterManager { public FacetValueConverter getConverter(XSettings xsettings) { Preconditions.checkNotNull(xsettings); for (FacetValueConverter converter :converters) { if (converter.handles(xsettings)) { return converter; } } throw new IllegalArgumentException("no FacetValueConverter can be found for " + xsettings); }  }
FacetValueConverterManager { public FacetValueConverter getConverter(XSettings xsettings) { Preconditions.checkNotNull(xsettings); for (FacetValueConverter converter :converters) { if (converter.handles(xsettings)) { return converter; } } throw new IllegalArgumentException("no FacetValueConverter can be found for " + xsettings); }  FacetValueConverter getConverter(XSettings xsettings); void setConverters(List<? extends FacetValueConverter> converters); }
FacetValueConverterManager { public FacetValueConverter getConverter(XSettings xsettings) { Preconditions.checkNotNull(xsettings); for (FacetValueConverter converter :converters) { if (converter.handles(xsettings)) { return converter; } } throw new IllegalArgumentException("no FacetValueConverter can be found for " + xsettings); }  FacetValueConverter getConverter(XSettings xsettings); void setConverters(List<? extends FacetValueConverter> converters);  }