@Test(expected = NullPointerException.class) public void getFormatter_Null() { pointValueFormatterManager.getFormatter(null); }
public PointValueFormatter getFormatter(Class<?> valueClass) { Preconditions.checkNotNull(valueClass); for (PointValueFormatter pointValueFormatter : pointValueFormatters) { if (pointValueFormatter.handles(valueClass)) { return pointValueFormatter; } } throw new IllegalArgumentException("No pointValueFormatter handling " + valueClass.getName() + " can be found"); }
PointValueFormatterManager { public PointValueFormatter getFormatter(Class<?> valueClass) { Preconditions.checkNotNull(valueClass); for (PointValueFormatter pointValueFormatter : pointValueFormatters) { if (pointValueFormatter.handles(valueClass)) { return pointValueFormatter; } } throw new IllegalArgumentException("No pointValueFormatter handling " + valueClass.getName() + " can be found"); } }
PointValueFormatterManager { public PointValueFormatter getFormatter(Class<?> valueClass) { Preconditions.checkNotNull(valueClass); for (PointValueFormatter pointValueFormatter : pointValueFormatters) { if (pointValueFormatter.handles(valueClass)) { return pointValueFormatter; } } throw new IllegalArgumentException("No pointValueFormatter handling " + valueClass.getName() + " can be found"); }  }
PointValueFormatterManager { public PointValueFormatter getFormatter(Class<?> valueClass) { Preconditions.checkNotNull(valueClass); for (PointValueFormatter pointValueFormatter : pointValueFormatters) { if (pointValueFormatter.handles(valueClass)) { return pointValueFormatter; } } throw new IllegalArgumentException("No pointValueFormatter handling " + valueClass.getName() + " can be found"); }  PointValueFormatter getFormatter(Class<?> valueClass); String format(Object value); void setPointValueFormatters(List<PointValueFormatter> pointValueFormatters); }
PointValueFormatterManager { public PointValueFormatter getFormatter(Class<?> valueClass) { Preconditions.checkNotNull(valueClass); for (PointValueFormatter pointValueFormatter : pointValueFormatters) { if (pointValueFormatter.handles(valueClass)) { return pointValueFormatter; } } throw new IllegalArgumentException("No pointValueFormatter handling " + valueClass.getName() + " can be found"); }  PointValueFormatter getFormatter(Class<?> valueClass); String format(Object value); void setPointValueFormatters(List<PointValueFormatter> pointValueFormatters);  }