Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'core/org.eclipse.cdt.ui.tests/src/org/eclipse/cdt/ui/tests/templateengine/TestTemplateCore.java')
-rw-r--r--core/org.eclipse.cdt.ui.tests/src/org/eclipse/cdt/ui/tests/templateengine/TestTemplateCore.java68
1 files changed, 68 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.ui.tests/src/org/eclipse/cdt/ui/tests/templateengine/TestTemplateCore.java b/core/org.eclipse.cdt.ui.tests/src/org/eclipse/cdt/ui/tests/templateengine/TestTemplateCore.java
new file mode 100644
index 00000000000..c4b53a0ef7c
--- /dev/null
+++ b/core/org.eclipse.cdt.ui.tests/src/org/eclipse/cdt/ui/tests/templateengine/TestTemplateCore.java
@@ -0,0 +1,68 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Symbian Software Limited and others.
+ * 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:
+ * Bala Torati (Symbian) - Initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.ui.tests.templateengine;
+
+import org.eclipse.cdt.core.templateengine.TemplateCore;
+import org.eclipse.cdt.core.testplugin.util.BaseTestCase;
+
+/**
+ * Test the functionality of Tempalte Class.
+ */
+public class TestTemplateCore extends BaseTestCase {
+
+ public TemplateCore[] templates = null;
+
+ protected void setUp() throws Exception {
+ super.setUp();
+ templates = TemplateEngineTestsHelper.getTestTemplates();
+ }
+
+ /*
+ * @see TestCase#tearDown()
+ */
+ protected void tearDown() throws Exception {
+ super.tearDown();
+ }
+
+ /**
+ * Constructor for Template.
+ * @param name
+ */
+ public TestTemplateCore(String name) {
+ super(name);
+ }
+
+ /**
+ * check that the Template contains a Non Null ValueStore
+ */
+ public void testValueStoreNotNull(){
+ for (int i=0; i < templates.length; i++) {
+ assertNotNull(templates[i].getValueStore());
+ }
+ }
+
+ /**
+ * Check the IDs to be persisited in SharedDefaults.
+ */
+ public void testPersistTrueIDs(){
+ for (int i=0; i < templates.length; i++) {
+ assertNotNull(templates[i].getPersistTrueIDs());
+ }
+ }
+
+ public void testGetAllMissingMacrosInProcesses(){
+ for (int i=0; i < templates.length; i++) {
+ assertNotNull(templates[i].getAllMissingMacrosInProcesses());
+ assertTrue(templates[i].getAllMissingMacrosInProcesses().size() > 0);
+ }
+ }
+
+}

Back to the top