public class CacheXmlTestCase
extends org.apache.geode.test.dunit.cache.internal.JUnit4CacheTestCase
Modifier and Type | Field and Description |
---|---|
org.apache.geode.test.dunit.rules.DistributedRestoreSystemProperties |
restoreSystemProperties |
org.apache.geode.test.junit.rules.serializable.SerializableTemporaryFolder |
temporaryFolder |
org.apache.geode.test.junit.rules.serializable.SerializableTestName |
testName |
Constructor and Description |
---|
CacheXmlTestCase() |
Modifier and Type | Method and Description |
---|---|
protected java.io.File |
copyResourceToDirectory(java.io.File directory,
java.lang.String fileName) |
protected java.io.File |
findFile(java.lang.String fileName)
Finds an XML file with the given name.
|
java.util.Properties |
getDistributedSystemProperties() |
protected java.lang.String |
getGemFireVersion()
The version of GemFire tested by this class.
|
protected boolean |
getUseSchema() |
void |
postSetUp() |
void |
postTearDownCacheTestCase() |
void |
preTearDownCacheTestCase() |
protected void |
setXmlFile(java.io.File xmlFile)
Sets the file used by this test to initialize the cache
|
protected void |
testXml(org.apache.geode.internal.cache.xmlcache.CacheCreation creation)
Uses the
CacheXmlGenerator to generate an XML file from the given
CacheCreation . |
protected void |
testXml(org.apache.geode.internal.cache.xmlcache.CacheCreation creation,
boolean checkSame) |
addExceptionTag1, basicGetCache, beginCacheXml, closeAllCache, closeCache, createExpiryRootRegion, createLonerCache, createRegion, createRegion, createRootRegion, createRootRegion, finishCacheXml, finishCacheXml, getCache, getCache, getCache, getCache, getCache, getClientCache, getClientCache, getDiskDir, getDiskDirs, getGemfireCache, getRootRegion, getRootRegion, hasCache, preTearDown, removeExceptionTag1
basicGetSystem, cleanDiskDirs, cleanupAllVms, deleteBACKUPDiskStoreFile, destroyRegions, disconnectAllFromDS, disconnectFromDS, getBlackboard, getLonerSystem, getName, getSystem, getSystem, getSystemStatic, getTestClass, getTestMethodName, getUniqueName, initializeBlackboard, initializeDistributedTestCase, isConnectedToDS, nullSystem, postTearDown, postTearDownAssertions, preSetUp, preTearDownAssertions, setSystem, setUpDistributedTestCase, tearDownDistributedTestCase
public org.apache.geode.test.dunit.rules.DistributedRestoreSystemProperties restoreSystemProperties
public org.apache.geode.test.junit.rules.serializable.SerializableTemporaryFolder temporaryFolder
public org.apache.geode.test.junit.rules.serializable.SerializableTestName testName
public final void postSetUp() throws java.lang.Exception
postSetUp
in interface org.apache.geode.test.dunit.internal.DistributedTestFixture
postSetUp
in class org.apache.geode.test.dunit.internal.JUnit4DistributedTestCase
java.lang.Exception
public final void preTearDownCacheTestCase() throws java.lang.Exception
preTearDownCacheTestCase
in interface org.apache.geode.test.dunit.cache.internal.CacheTestFixture
preTearDownCacheTestCase
in class org.apache.geode.test.dunit.cache.internal.JUnit4CacheTestCase
java.lang.Exception
public final void postTearDownCacheTestCase() throws java.lang.Exception
postTearDownCacheTestCase
in interface org.apache.geode.test.dunit.cache.internal.CacheTestFixture
postTearDownCacheTestCase
in class org.apache.geode.test.dunit.cache.internal.JUnit4CacheTestCase
java.lang.Exception
protected java.lang.String getGemFireVersion()
CacheXml.VERSION_3_0
protected boolean getUseSchema()
protected void setXmlFile(java.io.File xmlFile)
protected java.io.File findFile(java.lang.String fileName) throws java.io.IOException
java.io.IOException
protected java.io.File copyResourceToDirectory(java.io.File directory, java.lang.String fileName) throws java.io.IOException
java.io.IOException
public java.util.Properties getDistributedSystemProperties()
getDistributedSystemProperties
in interface org.apache.geode.test.dunit.internal.DistributedTestFixture
getDistributedSystemProperties
in class org.apache.geode.test.dunit.internal.JUnit4DistributedTestCase
protected void testXml(org.apache.geode.internal.cache.xmlcache.CacheCreation creation) throws java.io.IOException
CacheXmlGenerator
to generate an XML file from the given
CacheCreation
. It then creates a Cache
from the XML and asserts that it is the
same as the cache described in the CacheCreation
.java.io.IOException
protected void testXml(org.apache.geode.internal.cache.xmlcache.CacheCreation creation, boolean checkSame) throws java.io.IOException
java.io.IOException