@Test public void testHashCode() { FileInfo info = mock(FileInfo.class); Muxer muxer = mock(Muxer.class); MuxedFile muxedFile = new MuxedFile(info, muxer); MuxedFile muxedFile2 = new MuxedFile(info, muxer); assertThat(muxedFile.hashCode()).isEqualTo(muxedFile2.hashCode()); }
@Override public int hashCode() { return Objects.hash(info, muxer); }
MuxedFile { @Override public int hashCode() { return Objects.hash(info, muxer); } }
MuxedFile { @Override public int hashCode() { return Objects.hash(info, muxer); } MuxedFile(FileInfo info, Muxer muxer); }
MuxedFile { @Override public int hashCode() { return Objects.hash(info, muxer); } MuxedFile(FileInfo info, Muxer muxer); FileInfo getInfo(); Muxer getMuxer(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); }
MuxedFile { @Override public int hashCode() { return Objects.hash(info, muxer); } MuxedFile(FileInfo info, Muxer muxer); FileInfo getInfo(); Muxer getMuxer(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }