summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2006-12-15 09:09:14 (EST)
committer pelder2006-12-15 09:09:14 (EST)
commit9f9617f88115522cb2ef53c0d86ad5137239da73 (patch)
treee7cecff493b685208e164c291827309b17f6c8fc
parent735b699453c2944f8c08f3867bcc26d0cf7b098c (diff)
downloadorg.eclipse.jet-9f9617f88115522cb2ef53c0d86ad5137239da73.zip
org.eclipse.jet-9f9617f88115522cb2ef53c0d86ad5137239da73.tar.gz
org.eclipse.jet-9f9617f88115522cb2ef53c0d86ad5137239da73.tar.bz2
[168202] Make JUnits safe for EMF 2.3.0 without breaking 2.2.x compatibility.
-rw-r--r--tests/org.eclipse.jet.tests/src/org/eclipse/jet/tests/xpath/EObjectInspectorTests.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/org.eclipse.jet.tests/src/org/eclipse/jet/tests/xpath/EObjectInspectorTests.java b/tests/org.eclipse.jet.tests/src/org/eclipse/jet/tests/xpath/EObjectInspectorTests.java
index 3c2912e..616fd18 100644
--- a/tests/org.eclipse.jet.tests/src/org/eclipse/jet/tests/xpath/EObjectInspectorTests.java
+++ b/tests/org.eclipse.jet.tests/src/org/eclipse/jet/tests/xpath/EObjectInspectorTests.java
@@ -60,7 +60,7 @@ public class EObjectInspectorTests extends TestCase {
xmlResource.load(null);
xmlDocumentRoot = (XMLTypeDocumentRoot) xmlResource.getContents().get(0);
- xmlRootElement = (AnyType) xmlDocumentRoot.getMixed().getValue(0);
+ xmlRootElement = (AnyType) xmlDocumentRoot.getMixed().get(xmlDocumentRoot.eClass().getEStructuralFeature("root"), true);
}
protected void emfSetUp() throws Exception {