function createInstance(env, sExpectedImplementation) {
				if (CacheManager._instance) {
					CacheManager._instance._db.close();
					CacheManager._instance = undefined;
				}
				CacheManager._bSupportedEnvironment = null;

				// Act
				return CacheManager._getInstance().then(function(cmImpl) {
					// Assert
					assert.equal(cmImpl.name, sExpectedImplementation, "For environment [" + JSON.stringify(env) +
						"] implementation [" + sExpectedImplementation + "] is required");
				});
			}
// Creates an instance of CacheManager and check if the internal implementation is of expected type
Creates an instance of CacheManager and check if the internal implementation is of expected type
Creates an instance of CacheManager and check if the internal implementation is of expected type
function createInstance(env, sExpectedImplementation) {
				if (CacheManager._instance) {
					CacheManager._instance._db.close();
					CacheManager._instance = undefined;
				}
				CacheManager._bSupportedEnvironment = null;
				return CacheManager._getInstance().then(function(cmImpl) {
					assert.equal(cmImpl.name, sExpectedImplementation, "For environment [" + JSON.stringify(env) +
						"] implementation [" + sExpectedImplementation + "] is required");
				});
			}
function createInstance ( env , sExpectedImplementation ) { if ( CacheManager . _instance ) { CacheManager . _instance . _db . close ( ) ; CacheManager . _instance = undefined ; } CacheManager . _bSupportedEnvironment = null ; return CacheManager . _getInstance ( ) . then ( function ( cmImpl ) { assert . equal ( cmImpl . name , sExpectedImplementation , "For environment [" + JSON . stringify ( env ) + "] implementation [" + sExpectedImplementation + "] is required" ) ; } ) ; }
Creates an instance of CacheManager and check if the internal implementation is of expected type
Creates an instance of CacheManager and check if the internal implementation is of expected type
// Act // Assert