/** * Asserts that Cache type is defined as a embedded ComplexType under an Element named "cache" for * version 8.1. * * @since GemFire 8.1 */ @Test public void testCacheDefinedAsNestedComplexType8_1() throws Exception { Document doc = loadSchema(CacheXmlVersion.GEMFIRE_8_1.getSchemaLocation()); final XPathContext xPathContext = new XPathContext(CacheElement.XSD_PREFIX, XMLConstants.W3C_XML_SCHEMA_NS_URI); final Node cacheType = XmlUtils.querySingleElement(doc.getFirstChild(), CacheElement.CACHE_TYPE_EMBEDDED, xPathContext); assertNotNull("Cache type is not embedded complexType.", cacheType); }
if (null == version.getSchemaLocation()) { addAttribute(atts, W3C_XML_SCHEMA_INSTANCE_PREFIX, W3C_XML_SCHEMA_INSTANCE_ATTRIBUTE_SCHEMA_LOCATION, version.getNamespace() + " " + version.getSchemaLocation());