@Test public void testGetPropBooleanValueReturnsDefaultValue() { DBConnectionManager dbcManagerSpy = getDBConnectionManagerSpyWithPooling(); Properties propsMock = mock(Properties.class); doReturn("invalidBooleanValue").when(propsMock).getProperty(any(String.class), any(String.class)); dbcManagerSpy.dbPoolingProperties = propsMock; assertFalse(dbcManagerSpy.getPropBooleanValue("db.pooling.enable", FALSE)); }
protected boolean getPropBooleanValue(String aPropName, String aDefaultValue) { boolean retValue; String temp = dbPoolingProperties.getProperty(aPropName, aDefaultValue); retValue = Boolean.valueOf(temp); return retValue; }
DBConnectionManager { protected boolean getPropBooleanValue(String aPropName, String aDefaultValue) { boolean retValue; String temp = dbPoolingProperties.getProperty(aPropName, aDefaultValue); retValue = Boolean.valueOf(temp); return retValue; } }
DBConnectionManager { protected boolean getPropBooleanValue(String aPropName, String aDefaultValue) { boolean retValue; String temp = dbPoolingProperties.getProperty(aPropName, aDefaultValue); retValue = Boolean.valueOf(temp); return retValue; } protected  DBConnectionManager(); }
DBConnectionManager { protected boolean getPropBooleanValue(String aPropName, String aDefaultValue) { boolean retValue; String temp = dbPoolingProperties.getProperty(aPropName, aDefaultValue); retValue = Boolean.valueOf(temp); return retValue; } protected  DBConnectionManager(); static DBConnectionManager getInstance(); void finalize(); synchronized Connection getConnection(DBType aDbType, String aAuthType, String aDbUrl, String aUsername, String aPassword, Properties properties); void cleanDataSources(); synchronized void shutdownDbmsPools(); int getDbmsPoolSize(); int getConnectionSize(DBType aDbType, String aDbUrl); int getCheckedOutConnectionSize(DBType aDbType, String aDbUrl); int getCheckedInConnectionSize(DBType aDbType, String aDbUrl); int getTotalConnectionSize(); int getTotalCheckedOutConnectionSize(); int getTotalCheckedInConnectionSize(); }
DBConnectionManager { protected boolean getPropBooleanValue(String aPropName, String aDefaultValue) { boolean retValue; String temp = dbPoolingProperties.getProperty(aPropName, aDefaultValue); retValue = Boolean.valueOf(temp); return retValue; } protected  DBConnectionManager(); static DBConnectionManager getInstance(); void finalize(); synchronized Connection getConnection(DBType aDbType, String aAuthType, String aDbUrl, String aUsername, String aPassword, Properties properties); void cleanDataSources(); synchronized void shutdownDbmsPools(); int getDbmsPoolSize(); int getConnectionSize(DBType aDbType, String aDbUrl); int getCheckedOutConnectionSize(DBType aDbType, String aDbUrl); int getCheckedInConnectionSize(DBType aDbType, String aDbUrl); int getTotalConnectionSize(); int getTotalCheckedOutConnectionSize(); int getTotalCheckedInConnectionSize();  }