@Test public void testEncode$nullName() throws Exception { TestProxy sut = new TestProxy(); String result = sut.encode(null); assertThat(result,nullValue()); }
@Override public final String encode(Name<?> name) { if(name==null) { return null; } try { Serializable target = prepare(name); byte[] serializedData=SerializationUtils.serialize(target); return BaseEncoding.base64().encode(serializedData); } catch (IOException e) { throw new AssertionError("Serialization should not fail",e); } }
AbstractEncoder extends Encoder { @Override public final String encode(Name<?> name) { if(name==null) { return null; } try { Serializable target = prepare(name); byte[] serializedData=SerializationUtils.serialize(target); return BaseEncoding.base64().encode(serializedData); } catch (IOException e) { throw new AssertionError("Serialization should not fail",e); } } }
AbstractEncoder extends Encoder { @Override public final String encode(Name<?> name) { if(name==null) { return null; } try { Serializable target = prepare(name); byte[] serializedData=SerializationUtils.serialize(target); return BaseEncoding.base64().encode(serializedData); } catch (IOException e) { throw new AssertionError("Serialization should not fail",e); } }  }
AbstractEncoder extends Encoder { @Override public final String encode(Name<?> name) { if(name==null) { return null; } try { Serializable target = prepare(name); byte[] serializedData=SerializationUtils.serialize(target); return BaseEncoding.base64().encode(serializedData); } catch (IOException e) { throw new AssertionError("Serialization should not fail",e); } }  @Override final String encode(Name<?> name); @Override final Name<T> decode(String data); }
AbstractEncoder extends Encoder { @Override public final String encode(Name<?> name) { if(name==null) { return null; } try { Serializable target = prepare(name); byte[] serializedData=SerializationUtils.serialize(target); return BaseEncoding.base64().encode(serializedData); } catch (IOException e) { throw new AssertionError("Serialization should not fail",e); } }  @Override final String encode(Name<?> name); @Override final Name<T> decode(String data);  }