@Test public void convertAnchor() { AnchorFile anchorFile = new AnchorFile(ANCHOR_HASH); anchorFile.setCreatedAt(new Date(CREATED_AT_MILLIS).toInstant().atOffset(ZoneOffset.UTC)); Anchor anchor = anchorConverter.convert(anchorFile); assertEquals(ANCHOR_HASH, anchorFile.getHash()); assertEquals(CREATED_AT, anchorFile.getCreatedAt().toString()); }
public Anchor convert(AnchorFile anchorFile) { Anchor anchor = new Anchor(); anchor.setHash(anchorFile.getHash()); anchor.setCreatedAt(anchorFile.getCreatedAt()); return anchor; }
AnchorConverter { public Anchor convert(AnchorFile anchorFile) { Anchor anchor = new Anchor(); anchor.setHash(anchorFile.getHash()); anchor.setCreatedAt(anchorFile.getCreatedAt()); return anchor; } }
AnchorConverter { public Anchor convert(AnchorFile anchorFile) { Anchor anchor = new Anchor(); anchor.setHash(anchorFile.getHash()); anchor.setCreatedAt(anchorFile.getCreatedAt()); return anchor; }  }
AnchorConverter { public Anchor convert(AnchorFile anchorFile) { Anchor anchor = new Anchor(); anchor.setHash(anchorFile.getHash()); anchor.setCreatedAt(anchorFile.getCreatedAt()); return anchor; }  Anchor convert(AnchorFile anchorFile); }
AnchorConverter { public Anchor convert(AnchorFile anchorFile) { Anchor anchor = new Anchor(); anchor.setHash(anchorFile.getHash()); anchor.setCreatedAt(anchorFile.getCreatedAt()); return anchor; }  Anchor convert(AnchorFile anchorFile);  }