summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2006-08-23 09:22:54 (EDT)
committerEike Stepper2006-08-23 09:22:54 (EDT)
commit5f7a63f633da56a443a523d05a3e21f9f3336ec3 (patch)
tree3226892883f1c37efdcd21aa1c9fde0e356de5da
parente14ae4851a05104d801fcbcf4a884b4b2335baf2 (diff)
downloadcdo-5f7a63f633da56a443a523d05a3e21f9f3336ec3.zip
cdo-5f7a63f633da56a443a523d05a3e21f9f3336ec3.tar.gz
cdo-5f7a63f633da56a443a523d05a3e21f9f3336ec3.tar.bz2
[154522] Copy from CDO resource to XMI resource does not work
https://bugs.eclipse.org/bugs/show_bug.cgi?id=154389
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/model1/OCLTest.java13
1 files changed, 7 insertions, 6 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 740b54b..d37c237 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
@@ -15,6 +15,7 @@ import org.eclipse.emf.cdo.client.ocl.CDOHelperUtil;
import org.eclipse.emf.ocl.helper.HelperUtil;
import org.eclipse.emf.ocl.helper.IOCLHelper;
+import org.eclipse.emf.ocl.helper.OCLParsingException;
import testmodel1.TreeNode;
@@ -45,7 +46,7 @@ public class OCLTest extends AbstractModel1Test
Object result = helper.evaluate(root, EXPR);
assertFalse(result);
}
- catch (Exception ex)
+ catch (OCLParsingException ex)
{
ex.printStackTrace();
fail("Parse failed: " + ex.getLocalizedMessage());
@@ -72,7 +73,7 @@ public class OCLTest extends AbstractModel1Test
Object result = helper.evaluate(root, EXPR);
assertTrue(result);
}
- catch (Exception ex)
+ catch (OCLParsingException ex)
{
ex.printStackTrace();
fail("Parse failed: " + ex.getLocalizedMessage());
@@ -107,7 +108,7 @@ public class OCLTest extends AbstractModel1Test
Set result = (Set) helper.evaluate(root, "ExtendedNode.allInstances()");
assertEquals(3, result.size());
}
- catch (Exception ex)
+ catch (OCLParsingException ex)
{
ex.printStackTrace();
fail("Parse failed: " + ex.getLocalizedMessage());
@@ -142,7 +143,7 @@ public class OCLTest extends AbstractModel1Test
Set result = (Set) helper.evaluate(root, "TreeNode.allInstances()");
assertEquals(10, result.size());
}
- catch (Exception ex)
+ catch (OCLParsingException ex)
{
ex.printStackTrace();
fail("Parse failed: " + ex.getLocalizedMessage());
@@ -192,7 +193,7 @@ public class OCLTest extends AbstractModel1Test
Set result = (Set) helper.evaluate(root, "ExtendedNode.allInstances()");
assertEquals(3, result.size());
}
- catch (Exception ex)
+ catch (OCLParsingException ex)
{
ex.printStackTrace();
fail("Parse failed: " + ex.getLocalizedMessage());
@@ -242,7 +243,7 @@ public class OCLTest extends AbstractModel1Test
Set result = (Set) helper.evaluate(root, "ExtendedNode.allInstances()");
assertEquals(6, result.size());
}
- catch (Exception ex)
+ catch (OCLParsingException ex)
{
ex.printStackTrace();
fail("Parse failed: " + ex.getLocalizedMessage());