@SuppressWarnings({ "unchecked", "rawtypes" }) @Test public void testSerializer() throws IOException{ Serializer serializer=new Serializer(DBDataSource.class); DBDataSource datasource=new DBDataSource(); datasource.setName("test"); assertTrue(serializer.deserialize(serializer.serialize(datasource)).equals(datasource)); }
public Serializer(Class<T> type) { this.type = type; }
Serializer { public Serializer(Class<T> type) { this.type = type; } }
Serializer { public Serializer(Class<T> type) { this.type = type; } Serializer(Class<T> type); }
Serializer { public Serializer(Class<T> type) { this.type = type; } Serializer(Class<T> type); T deserialize(byte[] value); byte[] serialize(T obj); }
Serializer { public Serializer(Class<T> type) { this.type = type; } Serializer(Class<T> type); T deserialize(byte[] value); byte[] serialize(T obj);  }