Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStéphane Bégaudeau2015-11-20 08:09:11 -0500
committerStéphane Bégaudeau2015-11-20 08:48:56 -0500
commit04f3f4568da96ac7ff89c75428abfb39dfe66f26 (patch)
tree7e85a9741b03c3ae4cc894cf1a41aa21e1289910 /tests/org.eclipse.eef.tests/src
parent1f11ccc494779a9b17e61acaaf1f9cdc734b1acf (diff)
downloadorg.eclipse.eef-04f3f4568da96ac7ff89c75428abfb39dfe66f26.tar.gz
org.eclipse.eef-04f3f4568da96ac7ff89c75428abfb39dfe66f26.tar.xz
org.eclipse.eef-04f3f4568da96ac7ff89c75428abfb39dfe66f26.zip
Contribute the first version of the build for EEF NG
1) A build has been contributed for all the org.eclipse.eef.* projects 2) All the plugins that will not be used now have been moved to the prototypes directory. Change-Id: I4477be42b519df975a426fb8016ea5b5276cc729 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/AllTests.java31
-rw-r--r--tests/org.eclipse.eef.tests/src/org/eclipse/eef/tests/internal/InitializationTests.java32
2 files changed, 63 insertions, 0 deletions
diff --git a/tests/org.eclipse.eef.tests/src/org/eclipse/eef/tests/internal/AllTests.java b/tests/org.eclipse.eef.tests/src/org/eclipse/eef/tests/internal/AllTests.java
new file mode 100644
index 000000000..9c36f282a
--- /dev/null
+++ b/tests/org.eclipse.eef.tests/src/org/eclipse/eef/tests/internal/AllTests.java
@@ -0,0 +1,31 @@
+/*******************************************************************************
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.eef.tests.internal;
+
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+import org.junit.runners.Suite.SuiteClasses;
+
+/**
+ * This class will be used to launch all the tests at once.
+ *
+ * @author sbegaudeau
+ */
+@RunWith(Suite.class)
+@SuiteClasses({ InitializationTests.class })
+public final class AllTests {
+ /**
+ * The constructor.
+ */
+ private AllTests() {
+ // prevent instantiation
+ }
+}
diff --git a/tests/org.eclipse.eef.tests/src/org/eclipse/eef/tests/internal/InitializationTests.java b/tests/org.eclipse.eef.tests/src/org/eclipse/eef/tests/internal/InitializationTests.java
new file mode 100644
index 000000000..ebf11d002
--- /dev/null
+++ b/tests/org.eclipse.eef.tests/src/org/eclipse/eef/tests/internal/InitializationTests.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2015 Obeo.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.eef.tests.internal;
+
+import org.eclipse.eef.EEFViewDescription;
+import org.eclipse.eef.EefFactory;
+import org.junit.Test;
+
+import static org.junit.Assert.assertNotNull;
+
+/**
+ * This class will be used to test the initialization of the controllers.
+ *
+ * @author sbegaudeau
+ */
+@SuppressWarnings({ "checkstyle:javadocmethod" })
+public class InitializationTests {
+ @Test
+ public void testEmptyView() {
+ EEFViewDescription eefViewDescription = EefFactory.eINSTANCE.createEEFViewDescription();
+ // TODO Create a meaningful test :)
+ assertNotNull(eefViewDescription);
+ }
+}

Back to the top