@Test public void testConvert() { Ninja ninja = new Ninja(); ninja.setId(100l); assertEquals(new Long(100l), ninjaConverter.convert(ninja)); ninja.setId(null); assertEquals(null, ninjaConverter.convert(ninja)); }
public Long convert(S source) { return (Long) source.getId(); }
BaseEntityToLongConverter implements Converter<S, Long> { public Long convert(S source) { return (Long) source.getId(); } }
BaseEntityToLongConverter implements Converter<S, Long> { public Long convert(S source) { return (Long) source.getId(); }  }
BaseEntityToLongConverter implements Converter<S, Long> { public Long convert(S source) { return (Long) source.getId(); }  Long convert(S source); }
BaseEntityToLongConverter implements Converter<S, Long> { public Long convert(S source) { return (Long) source.getId(); }  Long convert(S source);  }