@Test(expected = NumberFormatException.class) public void testConvertInvalid() { PeriodConverter periodConverter = new PeriodConverter(); periodConverter.convert("invalid"); }
@Override public Period convert(String source) { long sourceAsLong = Long.valueOf(source); return new Period(sourceAsLong); }
PeriodConverter implements Converter<String, Period> { @Override public Period convert(String source) { long sourceAsLong = Long.valueOf(source); return new Period(sourceAsLong); } }
PeriodConverter implements Converter<String, Period> { @Override public Period convert(String source) { long sourceAsLong = Long.valueOf(source); return new Period(sourceAsLong); }  }
PeriodConverter implements Converter<String, Period> { @Override public Period convert(String source) { long sourceAsLong = Long.valueOf(source); return new Period(sourceAsLong); }  @Override Period convert(String source); }
PeriodConverter implements Converter<String, Period> { @Override public Period convert(String source) { long sourceAsLong = Long.valueOf(source); return new Period(sourceAsLong); }  @Override Period convert(String source);  }