@Test(expected = NullPointerException.class) public void testGetAsString() { BigIntegerConverter converter = new BigIntegerConverter(); converter.getAsString(null, null, null); }
@Override public String getAsString(FacesContext context, UIComponent component, Object value) { if (context == null || component == null) { throw new NullPointerException(); } if (value == null) { return ""; } if (value instanceof String) { return (String) value; } try { return (value.toString()); } catch (Exception e) { throw new ConverterException( MessageFactory.getMessage(context, STRING_ID, value, MessageFactory.getLabel(context, component)), e); } }
BigIntegerConverter implements Converter { @Override public String getAsString(FacesContext context, UIComponent component, Object value) { if (context == null || component == null) { throw new NullPointerException(); } if (value == null) { return ""; } if (value instanceof String) { return (String) value; } try { return (value.toString()); } catch (Exception e) { throw new ConverterException( MessageFactory.getMessage(context, STRING_ID, value, MessageFactory.getLabel(context, component)), e); } } }
BigIntegerConverter implements Converter { @Override public String getAsString(FacesContext context, UIComponent component, Object value) { if (context == null || component == null) { throw new NullPointerException(); } if (value == null) { return ""; } if (value instanceof String) { return (String) value; } try { return (value.toString()); } catch (Exception e) { throw new ConverterException( MessageFactory.getMessage(context, STRING_ID, value, MessageFactory.getLabel(context, component)), e); } }  }
BigIntegerConverter implements Converter { @Override public String getAsString(FacesContext context, UIComponent component, Object value) { if (context == null || component == null) { throw new NullPointerException(); } if (value == null) { return ""; } if (value instanceof String) { return (String) value; } try { return (value.toString()); } catch (Exception e) { throw new ConverterException( MessageFactory.getMessage(context, STRING_ID, value, MessageFactory.getLabel(context, component)), e); } }  @Override Object getAsObject(FacesContext context, UIComponent component,
                              String value); @Override String getAsString(FacesContext context, UIComponent component,
                              Object value); }
BigIntegerConverter implements Converter { @Override public String getAsString(FacesContext context, UIComponent component, Object value) { if (context == null || component == null) { throw new NullPointerException(); } if (value == null) { return ""; } if (value instanceof String) { return (String) value; } try { return (value.toString()); } catch (Exception e) { throw new ConverterException( MessageFactory.getMessage(context, STRING_ID, value, MessageFactory.getLabel(context, component)), e); } }  @Override Object getAsObject(FacesContext context, UIComponent component,
                              String value); @Override String getAsString(FacesContext context, UIComponent component,
                              Object value); static final String CONVERTER_ID; static final String BIGINTEGER_ID; static final String STRING_ID; }