@Test(expected = MinijaxException.class) public void testMalformedUrl() throws MalformedURLException { final UrlConverter c = new UrlConverter(); final String str = "! bad url !"; c.convertToEntityAttribute(str); }
@Override public URL convertToEntityAttribute(final String str) { if (str == null) { return null; } try { return new URL(str); } catch (final MalformedURLException ex) { throw new MinijaxException(ex.getMessage(), ex); } }
UrlConverter implements AttributeConverter<URL, String> { @Override public URL convertToEntityAttribute(final String str) { if (str == null) { return null; } try { return new URL(str); } catch (final MalformedURLException ex) { throw new MinijaxException(ex.getMessage(), ex); } } }
UrlConverter implements AttributeConverter<URL, String> { @Override public URL convertToEntityAttribute(final String str) { if (str == null) { return null; } try { return new URL(str); } catch (final MalformedURLException ex) { throw new MinijaxException(ex.getMessage(), ex); } }  }
UrlConverter implements AttributeConverter<URL, String> { @Override public URL convertToEntityAttribute(final String str) { if (str == null) { return null; } try { return new URL(str); } catch (final MalformedURLException ex) { throw new MinijaxException(ex.getMessage(), ex); } }  @Override String convertToDatabaseColumn(final URL url); @Override URL convertToEntityAttribute(final String str); }
UrlConverter implements AttributeConverter<URL, String> { @Override public URL convertToEntityAttribute(final String str) { if (str == null) { return null; } try { return new URL(str); } catch (final MalformedURLException ex) { throw new MinijaxException(ex.getMessage(), ex); } }  @Override String convertToDatabaseColumn(final URL url); @Override URL convertToEntityAttribute(final String str);  }