- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Connection c =
DataSource dataSource;dataSource.getConnection()
String url;DriverManager.getConnection(url)
IdentityDatabaseUtil.getDBConnection()
- Smart code suggestions by Codota
}
/*************************************************************************** * * **************************************************************************/ private Object doEquals (Object other) { if (other instanceof JavaBean) { other = ((JavaBean)other).__getDelegate(); } return bean.equals(other); }
@Test public void testCorrectEventSource() throws Exception { logger.info("******** testCorrectEventSource()"); final PropertyChangeListenerMock listener = new PropertyChangeListenerMock(); ((JavaBean)enhancedBean).addPropertyChangeListener(listener); enhancedBean.setName("new name"); AssertJUnit.assertFalse(listener.events.isEmpty()); AssertJUnit.assertTrue(enhancedBean == listener.events.get(0).getSource()); }
/*************************************************************************** * * **************************************************************************/ private Object doEquals (Object other) { if (other instanceof JavaBean) { other = ((JavaBean)other).__getDelegate(); } return bean.equals(other); }