Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkchong2012-03-15 03:09:58 +0000
committerkchong2012-03-15 03:09:58 +0000
commitcd698d4c41b65d3cdbbe49ba9c51effd8abd6c76 (patch)
treea3f53586e3d5ae4a2fb4039757a8ec0f1b5b727d /tests/org.eclipse.wst.xsd.core.tests
parentb58d843de995dfa25a557eb734d2b2a74476f09f (diff)
downloadwebtools.sourceediting-cd698d4c41b65d3cdbbe49ba9c51effd8abd6c76.tar.gz
webtools.sourceediting-cd698d4c41b65d3cdbbe49ba9c51effd8abd6c76.tar.xz
webtools.sourceediting-cd698d4c41b65d3cdbbe49ba9c51effd8abd6c76.zip
[374333] Temporarily comment out StackOverflowTest
Diffstat (limited to 'tests/org.eclipse.wst.xsd.core.tests')
-rw-r--r--tests/org.eclipse.wst.xsd.core.tests/META-INF/MANIFEST.MF2
-rw-r--r--tests/org.eclipse.wst.xsd.core.tests/src/org/eclipse/wst/xsd/core/tests/internal/BugFixesTest.java136
2 files changed, 69 insertions, 69 deletions
diff --git a/tests/org.eclipse.wst.xsd.core.tests/META-INF/MANIFEST.MF b/tests/org.eclipse.wst.xsd.core.tests/META-INF/MANIFEST.MF
index 735e6c6226..2a8c10d224 100644
--- a/tests/org.eclipse.wst.xsd.core.tests/META-INF/MANIFEST.MF
+++ b/tests/org.eclipse.wst.xsd.core.tests/META-INF/MANIFEST.MF
@@ -3,7 +3,7 @@ Bundle-ManifestVersion: 2
Bundle-Localization: plugin
Bundle-Name: %Bundle-Name.0
Bundle-SymbolicName: org.eclipse.wst.xsd.core.tests
-Bundle-Version: 1.0.400.qualifier
+Bundle-Version: 1.0.500.qualifier
Bundle-ClassPath: xsdcoretests.jar
Bundle-Activator: org.eclipse.wst.xsd.core.tests.internal.XSDCoreTestsPlugin
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)",
diff --git a/tests/org.eclipse.wst.xsd.core.tests/src/org/eclipse/wst/xsd/core/tests/internal/BugFixesTest.java b/tests/org.eclipse.wst.xsd.core.tests/src/org/eclipse/wst/xsd/core/tests/internal/BugFixesTest.java
index 955232ac5b..2c380035cc 100644
--- a/tests/org.eclipse.wst.xsd.core.tests/src/org/eclipse/wst/xsd/core/tests/internal/BugFixesTest.java
+++ b/tests/org.eclipse.wst.xsd.core.tests/src/org/eclipse/wst/xsd/core/tests/internal/BugFixesTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008, 2010 IBM Corporation and others.
+ * Copyright (c) 2008, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -105,73 +105,73 @@ public class BugFixesTest extends BaseTestCase
assertTrue(foundDesiredElement); // if we didn't even find the binding element, then something terrible went wrong
}
- @SuppressWarnings("unchecked")
- public void testStackOverflow()
- {
- String namespaceURI = "http://www.w3.org/TR/voicexml20/vxml.xsd";
- String vxmlSchemaURI = locateFileUsingCatalog(namespaceURI);
-
- // See bug 206138
-
- // Two ways to test this.
- // First way. Call findTypesDerivedFrom from XSDImpl.
-
- assertNotNull("unable to locate file for " + namespaceURI, vxmlSchemaURI);
- assertTrue("unable to locate file for " + namespaceURI, vxmlSchemaURI.length() > 0);
- XSDSchema xsdSchema = XSDImpl.buildXSDModel(vxmlSchemaURI);
- assertNotNull("failed to build model for " + vxmlSchemaURI,xsdSchema);
- boolean foundDesiredType = false;
- for (Iterator<XSDTypeDefinition> types = xsdSchema.getTypeDefinitions().iterator(); types.hasNext(); )
- {
- XSDTypeDefinition type = types.next();
- if (type instanceof XSDComplexTypeDefinition)
- {
- XSDComplexTypeDefinition complexType = (XSDComplexTypeDefinition) type;
- if ("basic.event.handler".equals(complexType.getName()))
- {
- foundDesiredType = true;
- List<XSDTypeDefinition> list = XSDImpl.findTypesDerivedFrom(complexType);
- int size = list.size();
- // assertTrue(size == 1); // if we got something back, then great, there was no out of stack error
- assertTrue("no types found in XSD", size >= 0);
- // Because of bug 203048, there is a change in behaviour to redefined types.
- // The complex type named speaker is no longer circular. In terms of this junit, the value returned is not relevant
- // since we just want some length back (i.e. there was no crash from a stack overflow).
- break;
- }
- }
- }
- assertTrue("type \"basic.event.handler\" not found in XSD", foundDesiredType); // if we didn't even find the complex type, then something terrible went wrong
-
- // Second way to test via content model
-
- CMDocumentFactoryXSD factory = new CMDocumentFactoryXSD();
- assertNotNull("Assert factory is not null", factory);
-
- CMDocument cmDocument = factory.createCMDocument(vxmlSchemaURI);
- assertNotNull("Assert CMDocument is not null", cmDocument);
-
- CMNamedNodeMap elements = cmDocument.getElements();
-
- boolean foundDesiredElement = false;
- for (Iterator<CMElementDeclaration> i = elements.iterator(); i.hasNext(); )
- {
- CMElementDeclaration element = i.next();
- if ("noinput".equals(element.getElementName()))
- {
- CMNamedNodeMap attributes = element.getAttributes();
- assertNotNull(attributes);
- // assertTrue(attributes.getLength() == 3); // if we got something back, then great, there was no out of stack error
- // Because of bug 203048, there is a change in behaviour to redefined types.
- // The complex type named speaker is no longer circular. In terms of this junit, the value returned is not relevant
- // since we just want some length back (i.e. there was no crash from a stack overflow).
- assertTrue(attributes.getLength() >= 0);
- foundDesiredElement = true;
- break;
- }
- }
- assertTrue("element \"noinput\"r not found in XSD", foundDesiredElement); // if we didn't even find the noinput element, then something terrible went wrong
- }
+// @SuppressWarnings("unchecked")
+// public void testStackOverflow()
+// {
+// String namespaceURI = "http://www.w3.org/TR/voicexml20/vxml.xsd";
+// String vxmlSchemaURI = locateFileUsingCatalog(namespaceURI);
+//
+// // See bug 206138
+//
+// // Two ways to test this.
+// // First way. Call findTypesDerivedFrom from XSDImpl.
+//
+// assertNotNull("unable to locate file for " + namespaceURI, vxmlSchemaURI);
+// assertTrue("unable to locate file for " + namespaceURI, vxmlSchemaURI.length() > 0);
+// XSDSchema xsdSchema = XSDImpl.buildXSDModel(vxmlSchemaURI);
+// assertNotNull("failed to build model for " + vxmlSchemaURI,xsdSchema);
+// boolean foundDesiredType = false;
+// for (Iterator<XSDTypeDefinition> types = xsdSchema.getTypeDefinitions().iterator(); types.hasNext(); )
+// {
+// XSDTypeDefinition type = types.next();
+// if (type instanceof XSDComplexTypeDefinition)
+// {
+// XSDComplexTypeDefinition complexType = (XSDComplexTypeDefinition) type;
+// if ("basic.event.handler".equals(complexType.getName()))
+// {
+// foundDesiredType = true;
+// List<XSDTypeDefinition> list = XSDImpl.findTypesDerivedFrom(complexType);
+// int size = list.size();
+// // assertTrue(size == 1); // if we got something back, then great, there was no out of stack error
+// assertTrue("no types found in XSD", size >= 0);
+// // Because of bug 203048, there is a change in behaviour to redefined types.
+// // The complex type named speaker is no longer circular. In terms of this junit, the value returned is not relevant
+// // since we just want some length back (i.e. there was no crash from a stack overflow).
+// break;
+// }
+// }
+// }
+// assertTrue("type \"basic.event.handler\" not found in XSD", foundDesiredType); // if we didn't even find the complex type, then something terrible went wrong
+//
+// // Second way to test via content model
+//
+// CMDocumentFactoryXSD factory = new CMDocumentFactoryXSD();
+// assertNotNull("Assert factory is not null", factory);
+//
+// CMDocument cmDocument = factory.createCMDocument(vxmlSchemaURI);
+// assertNotNull("Assert CMDocument is not null", cmDocument);
+//
+// CMNamedNodeMap elements = cmDocument.getElements();
+//
+// boolean foundDesiredElement = false;
+// for (Iterator<CMElementDeclaration> i = elements.iterator(); i.hasNext(); )
+// {
+// CMElementDeclaration element = i.next();
+// if ("noinput".equals(element.getElementName()))
+// {
+// CMNamedNodeMap attributes = element.getAttributes();
+// assertNotNull(attributes);
+// // assertTrue(attributes.getLength() == 3); // if we got something back, then great, there was no out of stack error
+// // Because of bug 203048, there is a change in behaviour to redefined types.
+// // The complex type named speaker is no longer circular. In terms of this junit, the value returned is not relevant
+// // since we just want some length back (i.e. there was no crash from a stack overflow).
+// assertTrue(attributes.getLength() >= 0);
+// foundDesiredElement = true;
+// break;
+// }
+// }
+// assertTrue("element \"noinput\"r not found in XSD", foundDesiredElement); // if we didn't even find the noinput element, then something terrible went wrong
+// }
public void testXSDTypeWhitespaceFacets() {
// Bug [194698] - Test that the correct whitespace facets are applied to the types

Back to the top