summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2006-08-23 05:30:58 (EDT)
committerEike Stepper2006-08-23 05:30:58 (EDT)
commit91c3a099cd888d9e1e0614aaae6c1a862fb88237 (patch)
tree7dc1c9fe039ed1f275e09a098b0f6fc461f24f27
parentf05f9f9246042743709897e326525bce1029d2b3 (diff)
downloadcdo-91c3a099cd888d9e1e0614aaae6c1a862fb88237.zip
cdo-91c3a099cd888d9e1e0614aaae6c1a862fb88237.tar.gz
cdo-91c3a099cd888d9e1e0614aaae6c1a862fb88237.tar.bz2
[151560] Query Language for CDO
https://bugs.eclipse.org/bugs/show_bug.cgi?id=151560
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/model1/OCLTest.java100
1 files changed, 50 insertions, 50 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/model1/OCLTest.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/model1/OCLTest.java
index 5cb0a9b..981c631 100644
--- a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/model1/OCLTest.java
+++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/model1/OCLTest.java
@@ -147,56 +147,56 @@ public class OCLTest extends AbstractModel1Test
// fail("Parse failed: " + ex.getLocalizedMessage());
// }
// }
-
- public void testExtentTwoResources() throws Exception
- {
- final String RESOURCE1 = "/test/res1";
- final String RESOURCE2 = "/test/res2";
-
- { // Create first CDO resource
- TreeNode root = createNode("root");
- TreeNode a = createNode("a", root);
- TreeNode b = createNode("b", root);
- TreeNode c = createNode("c", root);
- createNode("a1", a);
- createNode("b1", b);
- createNode("c1", c);
- createExtended("a2", a);
- createExtended("b2", b);
- createExtended("c2", c);
- saveRoot(root, RESOURCE1);
- }
-
- { // Create second CDO resource
- TreeNode root = createNode("root");
- TreeNode a = createNode("a", root);
- TreeNode b = createNode("b", root);
- TreeNode c = createNode("c", root);
- createNode("a1", a);
- createNode("b1", b);
- createNode("c1", c);
- createExtended("a2", a);
- createExtended("b2", b);
- createExtended("c2", c);
- saveRoot(root, RESOURCE2);
- }
-
- TreeNode root = (TreeNode) loadRoot(RESOURCE1);
- // CDOResource resource = root.cdoGetResource();
- IOCLHelper helper = CDOHelperUtil.createOCLHelper();
- helper.setContext(root);
-
- try
- {
- Set result = (Set) helper.evaluate(root, "ExtendedNode.allInstances()");
- assertEquals(3, result.size());
- }
- catch (Exception ex)
- {
- ex.printStackTrace();
- fail("Parse failed: " + ex.getLocalizedMessage());
- }
- }
+ //
+ // public void testExtentTwoResources() throws Exception
+ // {
+ // final String RESOURCE1 = "/test/res1";
+ // final String RESOURCE2 = "/test/res2";
+ //
+ // { // Create first CDO resource
+ // TreeNode root = createNode("root");
+ // TreeNode a = createNode("a", root);
+ // TreeNode b = createNode("b", root);
+ // TreeNode c = createNode("c", root);
+ // createNode("a1", a);
+ // createNode("b1", b);
+ // createNode("c1", c);
+ // createExtended("a2", a);
+ // createExtended("b2", b);
+ // createExtended("c2", c);
+ // saveRoot(root, RESOURCE1);
+ // }
+ //
+ // { // Create second CDO resource
+ // TreeNode root = createNode("root");
+ // TreeNode a = createNode("a", root);
+ // TreeNode b = createNode("b", root);
+ // TreeNode c = createNode("c", root);
+ // createNode("a1", a);
+ // createNode("b1", b);
+ // createNode("c1", c);
+ // createExtended("a2", a);
+ // createExtended("b2", b);
+ // createExtended("c2", c);
+ // saveRoot(root, RESOURCE2);
+ // }
+ //
+ // TreeNode root = (TreeNode) loadRoot(RESOURCE1);
+ // // CDOResource resource = root.cdoGetResource();
+ // IOCLHelper helper = CDOHelperUtil.createOCLHelper();
+ // helper.setContext(root);
+ //
+ // try
+ // {
+ // Set result = (Set) helper.evaluate(root, "ExtendedNode.allInstances()");
+ // assertEquals(3, result.size());
+ // }
+ // catch (Exception ex)
+ // {
+ // ex.printStackTrace();
+ // fail("Parse failed: " + ex.getLocalizedMessage());
+ // }
+ // }
public void testGlobalExtent() throws Exception
{