Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeremie.tatibouet2016-03-18 01:58:56 +0000
committerjeremie.tatibouet2016-03-21 15:14:05 +0000
commit069132f88cae1c710d7e4e661ca63e8cc374a91b (patch)
tree89c9bf598c33ae80a14c0077c7a3da0550bae91c /tests/junit
parenta6a926a031f4946bda0dc8e0495b83dae9a79324 (diff)
downloadorg.eclipse.papyrus-069132f88cae1c710d7e4e661ca63e8cc374a91b.tar.gz
org.eclipse.papyrus-069132f88cae1c710d7e4e661ca63e8cc374a91b.tar.xz
org.eclipse.papyrus-069132f88cae1c710d7e4e661ca63e8cc374a91b.zip
Make sure the caching diagnostician gets as an input the
EValidator.Registry.INSTANCE. Change-Id: I9c682f4b8075ea38bc28ffd47b778f101013f424 Signed-off-by: jeremie.tatibouet <jeremie.tatibouet@cea.fr>
Diffstat (limited to 'tests/junit')
-rw-r--r--tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/src/org/eclipse/papyrus/uml/alf/tests/ParserTest.xtend3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/src/org/eclipse/papyrus/uml/alf/tests/ParserTest.xtend b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/src/org/eclipse/papyrus/uml/alf/tests/ParserTest.xtend
index 7431d1ee078..22551cea21f 100644
--- a/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/src/org/eclipse/papyrus/uml/alf/tests/ParserTest.xtend
+++ b/tests/junit/plugins/uml/alf/org.eclipse.papyrus.uml.alf.tests/src/org/eclipse/papyrus/uml/alf/tests/ParserTest.xtend
@@ -22,6 +22,7 @@ import org.eclipse.emf.ecore.resource.Resource
import org.eclipse.emf.ecore.resource.ResourceSet
import org.eclipse.papyrus.uml.alf.UnitDefinition
import org.eclipse.papyrus.uml.alf.CachingDiagnostician
+import org.eclipse.emf.ecore.EValidator
abstract class ParserTest {
@@ -71,7 +72,7 @@ abstract class ParserTest {
}
System.out.println();
} else if (validate) {
- val diagnostic = new CachingDiagnostician().validate(unit)
+ val diagnostic = new CachingDiagnostician(EValidator.Registry.INSTANCE).validate(unit)
if (diagnostic.severity == Diagnostic.ERROR) {
failures = failures + 1;
System.out.println("SEMANTIC ERRORS:")

Back to the top