summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2006-12-15 09:13:21 (EST)
committer pelder2006-12-15 09:13:21 (EST)
commit30099b84c9b3e7fd2347bbb5a3e5d263279fd556 (patch)
treedc05a6e05fe47766faa8a855d0b02b425398cb6f
parent9a53dca086224fa2fbf82cd5a564b8505b5e4198 (diff)
downloadorg.eclipse.jet-30099b84c9b3e7fd2347bbb5a3e5d263279fd556.zip
org.eclipse.jet-30099b84c9b3e7fd2347bbb5a3e5d263279fd556.tar.gz
org.eclipse.jet-30099b84c9b3e7fd2347bbb5a3e5d263279fd556.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 {