@Test public void testDatasetDescriptor() { DatasetDescriptor dataset = new DatasetDescriptor("hdfs", "/data/tracking/PageViewEvent"); dataset.addMetadata("fsUri", "hdfs: DatasetDescriptor copy = dataset.copy(); Assert.assertEquals(copy.getName(), dataset.getName()); Assert.assertEquals(copy.getPlatform(), dataset.getPlatform()); Assert.assertEquals(copy.getMetadata(), dataset.getMetadata()); Assert.assertEquals(dataset, copy); Assert.assertEquals(dataset.hashCode(), copy.hashCode()); }
public Descriptor copy() { return new Descriptor(name); }
Descriptor { public Descriptor copy() { return new Descriptor(name); } }
Descriptor { public Descriptor copy() { return new Descriptor(name); }  }
Descriptor { public Descriptor copy() { return new Descriptor(name); }  @Override String toString(); Descriptor copy(); static String toJson(Descriptor descriptor); static Descriptor fromJson(String json); static T fromJson(String json, Class<T> clazz); static String toJson(List<Descriptor> descriptors); static List<Descriptor> fromJsonList(String jsonList); }
Descriptor { public Descriptor copy() { return new Descriptor(name); }  @Override String toString(); Descriptor copy(); static String toJson(Descriptor descriptor); static Descriptor fromJson(String json); static T fromJson(String json, Class<T> clazz); static String toJson(List<Descriptor> descriptors); static List<Descriptor> fromJsonList(String jsonList); static final Gson GSON; }