Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorStéphane Bégaudeau2016-02-04 13:24:51 +0000
committerStéphane Bégaudeau2016-02-04 13:36:08 +0000
commit361105f765e1bd1148a6caaa1f9c4f8a5844e3a7 (patch)
tree1c3b1781047a60f8b6ed1b10807708462597432b /tests
parentbf992caf36d25cecdb8ba57c39fc48aa5985790b (diff)
downloadorg.eclipse.eef-361105f765e1bd1148a6caaa1f9c4f8a5844e3a7.tar.gz
org.eclipse.eef-361105f765e1bd1148a6caaa1f9c4f8a5844e3a7.tar.xz
org.eclipse.eef-361105f765e1bd1148a6caaa1f9c4f8a5844e3a7.zip
Introduce the Eval class to evaluate expressions
Change-Id: I60d1e350e7aa2b4fa0fcac111a68adc52ec9ddd9 Signed-off-by: Stéphane Bégaudeau <stephane.begaudeau@obeo.fr>
Diffstat (limited to 'tests')
-rw-r--r--tests/org.eclipse.eef.tests/src/org/eclipse/eef/tests/internal/controllers/EEFTextControllerTests.java10
1 files changed, 9 insertions, 1 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 1076ef695..9489758c8 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();
@@ -95,6 +95,10 @@ public class EEFTextControllerTests {
assertThat(text, equalTo(newValue));
});
+ controller.onNewLabel(newLabel -> {
+ // do nothing
+ });
+
controller.refresh();
}
@@ -132,6 +136,10 @@ public class EEFTextControllerTests {
assertThat(label, equalTo(newLabel));
});
+ controller.onNewValue(newValue -> {
+ // nothing
+ });
+
controller.refresh();
}
}

Back to the top