geode-core/src/test/java/org/apache/geode/test/dunit/cache/internal/JUnit4CacheTestCase.java
public final void finishCacheXml(final String name) {
    synchronized (JUnit4CacheTestCase.class) {
      File file = new File(name + "-cache.xml");
      try {
        PrintWriter printWriter = new PrintWriter(new FileWriter(file), true);
        CacheXmlGenerator.generate(cache, printWriter);
        printWriter.close();
      } catch (IOException ex) {
        Assert.fail("IOException during cache.xml generation to " + file, ex);
      }
      // TODO: System.setProperty(GEMFIRE_PREFIX + CACHE_XML_FILE, file.getAbsolutePath());
      cache = null;
      GemFireCacheImpl.testCacheXml = file;
      try {
        createCache();
      } finally {
        GemFireCacheImpl.testCacheXml = null;
      }
    }
  }
/**
   * Finish what {@code beginCacheXml} started. It does this be generating a cache.xml file and then
   * creating a real cache using that cache.xml.
   */
Finish what  beginCacheXml started. It does this be generating a cache.xml file and then
creating a real cache using that cache.xml.
Finish what beginCacheXml started . It does this be generating a cache . xml file and then creating a real cache using that cache . xml .
public final void finishCacheXml(final String name) {
    synchronized (JUnit4CacheTestCase.class) {
      File file = new File(name + "-cache.xml");
      try {
        PrintWriter printWriter = new PrintWriter(new FileWriter(file), true);
        CacheXmlGenerator.generate(cache, printWriter);
        printWriter.close();
      } catch (IOException ex) {
        Assert.fail("IOException during cache.xml generation to " + file, ex);
      }
      cache = null;
      GemFireCacheImpl.testCacheXml = file;
      try {
        createCache();
      } finally {
        GemFireCacheImpl.testCacheXml = null;
      }
    }
  }
public final void finishCacheXml ( final String name ) { synchronized ( JUnit4CacheTestCase . class ) { File file = new File ( name + "-cache.xml" ) ; try { PrintWriter printWriter = new PrintWriter ( new FileWriter ( file ) , true ) ; CacheXmlGenerator . generate ( cache , printWriter ) ; printWriter . close ( ) ; } catch ( IOException ex ) { Assert . fail ( "IOException during cache.xml generation to " + file , ex ) ; } cache = null ; GemFireCacheImpl . testCacheXml = file ; try { createCache ( ) ; } finally { GemFireCacheImpl . testCacheXml = null ; } } }
Finish what {@code beginCacheXml} started.
Finish what { @code beginCacheXml } started .
// TODO: System.setProperty(GEMFIRE_PREFIX + CACHE_XML_FILE, file.getAbsolutePath());