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, removeExceptionTag1basicGetSystem, 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, tearDownDistributedTestCasepublic 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.DistributedTestFixturepostSetUp in class org.apache.geode.test.dunit.internal.JUnit4DistributedTestCasejava.lang.Exceptionpublic final void preTearDownCacheTestCase()
throws java.lang.Exception
preTearDownCacheTestCase in interface org.apache.geode.test.dunit.cache.internal.CacheTestFixturepreTearDownCacheTestCase in class org.apache.geode.test.dunit.cache.internal.JUnit4CacheTestCasejava.lang.Exceptionpublic final void postTearDownCacheTestCase()
throws java.lang.Exception
postTearDownCacheTestCase in interface org.apache.geode.test.dunit.cache.internal.CacheTestFixturepostTearDownCacheTestCase in class org.apache.geode.test.dunit.cache.internal.JUnit4CacheTestCasejava.lang.Exceptionprotected java.lang.String getGemFireVersion()
CacheXml.VERSION_3_0protected boolean getUseSchema()
protected void setXmlFile(java.io.File xmlFile)
protected java.io.File findFile(java.lang.String fileName)
throws java.io.IOException
java.io.IOExceptionprotected java.io.File copyResourceToDirectory(java.io.File directory,
java.lang.String fileName)
throws java.io.IOException
java.io.IOExceptionpublic java.util.Properties getDistributedSystemProperties()
getDistributedSystemProperties in interface org.apache.geode.test.dunit.internal.DistributedTestFixturegetDistributedSystemProperties in class org.apache.geode.test.dunit.internal.JUnit4DistributedTestCaseprotected 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.IOExceptionprotected void testXml(org.apache.geode.internal.cache.xmlcache.CacheCreation creation,
boolean checkSame)
throws java.io.IOException
java.io.IOException