Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStéphane Bégaudeau2016-04-21 09:51:35 -0400
committerStéphane Bégaudeau2016-04-22 04:45:43 -0400
commit4aefdbef6f5435d487156c9da5451b1911653a6b (patch)
tree6e40e51ea9cc19e0d39564d0de5c09712f5085bb /tests/org.eclipse.eef.tests/src
parent5fbf073bb10fbcbb57eab2b523aa9a4e5ede0045 (diff)
downloadorg.eclipse.eef-4aefdbef6f5435d487156c9da5451b1911653a6b.tar.gz
org.eclipse.eef-4aefdbef6f5435d487156c9da5451b1911653a6b.tar.xz
org.eclipse.eef-4aefdbef6f5435d487156c9da5451b1911653a6b.zip
Update the EEFViewFactory to require an interface of domain class tester
1) Previously the EEFViewFactory required a DomainClassTester or one subclass, now it will only ask for an object implementing IEEFDomainClassTester. 2) The algorithm of the default implementation has been simplified in order to prevent some issues with dynamic models and the URIs of EPackages. Change-Id: Ie868cf04a427a49016f968d7a07d629c3637f850 Signed-off-by: Stéphane Bégaudeau <stephane.begaudeau@obeo.fr>
Diffstat (limited to 'tests/org.eclipse.eef.tests/src')
-rw-r--r--tests/org.eclipse.eef.tests/src/org/eclipse/eef/tests/internal/core/EEFDomainClassTesterTests.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/org.eclipse.eef.tests/src/org/eclipse/eef/tests/internal/core/EEFDomainClassTesterTests.java b/tests/org.eclipse.eef.tests/src/org/eclipse/eef/tests/internal/core/EEFDomainClassTesterTests.java
index 252eb9004..cfd90ab97 100644
--- a/tests/org.eclipse.eef.tests/src/org/eclipse/eef/tests/internal/core/EEFDomainClassTesterTests.java
+++ b/tests/org.eclipse.eef.tests/src/org/eclipse/eef/tests/internal/core/EEFDomainClassTesterTests.java
@@ -10,12 +10,9 @@
*******************************************************************************/
package org.eclipse.eef.tests.internal.core;
-import java.util.ArrayList;
-import java.util.List;
-
import org.eclipse.eef.EefFactory;
import org.eclipse.eef.EefPackage;
-import org.eclipse.eef.core.api.EEFDomainClassTester;
+import org.eclipse.eef.core.internal.EEFDomainClassTester;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.junit.Test;
@@ -31,9 +28,7 @@ import static org.junit.Assert.assertTrue;
public class EEFDomainClassTesterTests {
private void test(EPackage ePackage, EObject eObject, String domainClass) {
- List<EPackage> ePackages = new ArrayList<>();
- ePackages.add(ePackage);
- assertTrue(new EEFDomainClassTester().eInstanceOf(ePackages, eObject, domainClass));
+ assertTrue(new EEFDomainClassTester().eInstanceOf(eObject, domainClass));
}
@Test

Back to the top