@Test public void testGetEntityLogInputBean() throws Exception { ContentInputBean contentInputBean = new ContentInputBean("", "auditKey", new DateTime(), null); EntityResultBean entityResultBean = new EntityResultBean(contentInputBean); Assert.assertEquals(entityResultBean.getKey(), "auditKey"); }
String getKey() { if (contentInputBean != null) { return contentInputBean.getKey(); } return null; }
EntityResultBean { String getKey() { if (contentInputBean != null) { return contentInputBean.getKey(); } return null; } }
EntityResultBean { String getKey() { if (contentInputBean != null) { return contentInputBean.getKey(); } return null; } EntityResultBean(ContentInputBean contentInputBean); }
EntityResultBean { String getKey() { if (contentInputBean != null) { return contentInputBean.getKey(); } return null; } EntityResultBean(ContentInputBean contentInputBean);  }
EntityResultBean { String getKey() { if (contentInputBean != null) { return contentInputBean.getKey(); } return null; } EntityResultBean(ContentInputBean contentInputBean);   }