@Test(dataProvider = "fieldsData") public void shouldReturnTheFields(Object obj, long count, Object[] fields) { RankableObjectWithFields r = new RankableObjectWithFields(obj, count, fields); List<Object> actualFields = r.getFields(); assertThat(actualFields).isEqualTo(Lists.newArrayList(fields)); }
public List<Object> getFields() { return fields; }
RankableObjectWithFields implements Rankable, Serializable { public List<Object> getFields() { return fields; } }
RankableObjectWithFields implements Rankable, Serializable { public List<Object> getFields() { return fields; } RankableObjectWithFields(Object obj, long count, Object... otherFields); }
RankableObjectWithFields implements Rankable, Serializable { public List<Object> getFields() { return fields; } RankableObjectWithFields(Object obj, long count, Object... otherFields); static RankableObjectWithFields from(Tuple tuple); @Override Object getObject(); @Override long getCount(); List<Object> getFields(); @Override int compareTo(Rankable other); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); @Override Rankable copy(); }
RankableObjectWithFields implements Rankable, Serializable { public List<Object> getFields() { return fields; } RankableObjectWithFields(Object obj, long count, Object... otherFields); static RankableObjectWithFields from(Tuple tuple); @Override Object getObject(); @Override long getCount(); List<Object> getFields(); @Override int compareTo(Rankable other); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); @Override Rankable copy();  }