geode-core/src/test/java/org/apache/geode/test/dunit/cache/internal/JUnit4CacheTestCase.java
public final InternalCache createLonerCache() {
    synchronized (JUnit4CacheTestCase.class) {
      try {
        System.setProperty(GEMFIRE_PREFIX + "DISABLE_DISCONNECT_DS_ON_CACHE_CLOSE", "true");
        InternalCache newCache = (InternalCache) CacheFactory.create(getLonerSystem());
        cache = newCache;

      } catch (CacheExistsException e) {
        Assert.fail("the cache already exists", e);

      } catch (RuntimeException ex) {
        throw ex;

      } catch (Exception ex) {
        Assert.fail("Checked exception while initializing cache??", ex);

      } finally {
        System.clearProperty(GEMFIRE_PREFIX + "DISABLE_DISCONNECT_DS_ON_CACHE_CLOSE");
      }
      return cache;
    }
  }
/**
   * Creates the {@code Cache} for this test that is not connected to other members.
   */
Creates the  Cache for this test that is not connected to other members.
Creates the Cache for this test that is not connected to other members .
public final InternalCache createLonerCache() {
    synchronized (JUnit4CacheTestCase.class) {
      try {
        System.setProperty(GEMFIRE_PREFIX + "DISABLE_DISCONNECT_DS_ON_CACHE_CLOSE", "true");
        InternalCache newCache = (InternalCache) CacheFactory.create(getLonerSystem());
        cache = newCache;
      } catch (CacheExistsException e) {
        Assert.fail("the cache already exists", e);
      } catch (RuntimeException ex) {
        throw ex;
      } catch (Exception ex) {
        Assert.fail("Checked exception while initializing cache??", ex);
      } finally {
        System.clearProperty(GEMFIRE_PREFIX + "DISABLE_DISCONNECT_DS_ON_CACHE_CLOSE");
      }
      return cache;
    }
  }
public final InternalCache createLonerCache ( ) { synchronized ( JUnit4CacheTestCase . class ) { try { System . setProperty ( GEMFIRE_PREFIX + "DISABLE_DISCONNECT_DS_ON_CACHE_CLOSE" , "true" ) ; InternalCache newCache = ( InternalCache ) CacheFactory . create ( getLonerSystem ( ) ) ; cache = newCache ; } catch ( CacheExistsException e ) { Assert . fail ( "the cache already exists" , e ) ; } catch ( RuntimeException ex ) { throw ex ; } catch ( Exception ex ) { Assert . fail ( "Checked exception while initializing cache??" , ex ) ; } finally { System . clearProperty ( GEMFIRE_PREFIX + "DISABLE_DISCONNECT_DS_ON_CACHE_CLOSE" ) ; } return cache ; } }
Creates the {@code Cache} for this test that is not connected to other members.
Creates the { @code Cache } for this test that is not connected to other members .