Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStéphane Bégaudeau2016-02-23 14:13:21 +0000
committerStéphane Bégaudeau2016-03-01 15:06:59 +0000
commitfd637352331fb51e459f9d032b3ad0f0016142ef (patch)
treee3a0f0bcfd0e1a50de6cc4fb0dfd4d246f351f17 /tests/org.eclipse.eef.tests/src/org/eclipse/eef/tests
parent4be6fc2b2a57599357695d6926030fe0b8aead67 (diff)
downloadorg.eclipse.eef-fd637352331fb51e459f9d032b3ad0f0016142ef.tar.gz
org.eclipse.eef-fd637352331fb51e459f9d032b3ad0f0016142ef.tar.xz
org.eclipse.eef-fd637352331fb51e459f9d032b3ad0f0016142ef.zip
Add support for the validation in the DSL
Change-Id: I9fc899bf6e0b631914a901212238304a295e4d13 Signed-off-by: Stéphane Bégaudeau <stephane.begaudeau@obeo.fr>
Diffstat (limited to 'tests/org.eclipse.eef.tests/src/org/eclipse/eef/tests')
-rw-r--r--tests/org.eclipse.eef.tests/src/org/eclipse/eef/tests/internal/controllers/EEFTextControllerTests.java18
1 files changed, 13 insertions, 5 deletions
diff --git a/tests/org.eclipse.eef.tests/src/org/eclipse/eef/tests/internal/controllers/EEFTextControllerTests.java b/tests/org.eclipse.eef.tests/src/org/eclipse/eef/tests/internal/controllers/EEFTextControllerTests.java
index 286757307..56fca7160 100644
--- a/tests/org.eclipse.eef.tests/src/org/eclipse/eef/tests/internal/controllers/EEFTextControllerTests.java
+++ b/tests/org.eclipse.eef.tests/src/org/eclipse/eef/tests/internal/controllers/EEFTextControllerTests.java
@@ -71,7 +71,7 @@ public class EEFTextControllerTests {
AdapterFactory adapterFactory = new ComposedAdapterFactory(ComposedAdapterFactory.Descriptor.Registry.INSTANCE);
this.resourceSet = new ResourceSetImpl();
this.resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap()
- .put(Resource.Factory.Registry.DEFAULT_EXTENSION, new XMIResourceFactoryImpl());
+ .put(Resource.Factory.Registry.DEFAULT_EXTENSION, new XMIResourceFactoryImpl());
this.editingDomain = new TransactionalEditingDomainImpl(adapterFactory, this.resourceSet);
this.variableManager = new VariableManagerFactory().createVariableManager();
@@ -97,11 +97,15 @@ public class EEFTextControllerTests {
controller.onNewLabel(newLabel -> {
// do nothing
- });
+ });
controller.onNewHelp(newHelp -> {
// nothing
- });
+ });
+
+ controller.onValidation(result -> {
+ // nothing
+ });
controller.refresh();
}
@@ -142,11 +146,15 @@ public class EEFTextControllerTests {
controller.onNewValue(newValue -> {
// nothing
- });
+ });
controller.onNewHelp(newHelp -> {
// nothing
- });
+ });
+
+ controller.onValidation(result -> {
+ // nothing
+ });
controller.refresh();
}

Back to the top