@Test public void given_id_in_constructor_when_setting_id_should_fail_silent() { Documents.setId(constDoc, "new_id"); }
public static void setId(Object document, String id) { DocumentAccessor d = getAccessor(document); if (d.hasIdMutator()) { d.setId(document, id); } }
Documents { public static void setId(Object document, String id) { DocumentAccessor d = getAccessor(document); if (d.hasIdMutator()) { d.setId(document, id); } } }
Documents { public static void setId(Object document, String id) { DocumentAccessor d = getAccessor(document); if (d.hasIdMutator()) { d.setId(document, id); } }  }
Documents { public static void setId(Object document, String id) { DocumentAccessor d = getAccessor(document); if (d.hasIdMutator()) { d.setId(document, id); } }  static void registerAccessor(Class<?> documentType, DocumentAccessor accessor); static String getId(Object document); static void setId(Object document, String id); static String getRevision(Object document); static void setRevision(Object document, String rev); static boolean isNew(Object document); }
Documents { public static void setId(Object document, String id) { DocumentAccessor d = getAccessor(document); if (d.hasIdMutator()) { d.setId(document, id); } }  static void registerAccessor(Class<?> documentType, DocumentAccessor accessor); static String getId(Object document); static void setId(Object document, String id); static String getRevision(Object document); static void setRevision(Object document, String rev); static boolean isNew(Object document);  }