Bug 352709 - invalid image provider id crashes diagram editor
diff --git a/tests/org.eclipse.graphiti.bot.tests/src/org/eclipse/graphiti/bot/tests/ExtensionManagerTest.java b/tests/org.eclipse.graphiti.bot.tests/src/org/eclipse/graphiti/bot/tests/ExtensionManagerTest.java
new file mode 100644
index 0000000..c50a6c2
--- /dev/null
+++ b/tests/org.eclipse.graphiti.bot.tests/src/org/eclipse/graphiti/bot/tests/ExtensionManagerTest.java
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * <copyright>
+ *
+ * Copyright (c) 2005, 2011 SAP AG.
+ * 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:
+ *    mwenz - Bug 352709 - invalid image provider id crashes diagram editor 
+ *
+ * </copyright>
+ *
+ *******************************************************************************/
+package org.eclipse.graphiti.bot.tests;
+
+import org.eclipse.graphiti.dt.IDiagramTypeProvider;
+import org.eclipse.graphiti.ui.services.GraphitiUi;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class ExtensionManagerTest extends AbstractGFTests {
+
+	@Test
+	public void testCreateDiagramTypeProvider() {
+		// Create a diagram type provider which defines an invalid image provider. The DTP must be created nevertheless.
+		// See Bug 352709
+		IDiagramTypeProvider diagramTypeProvider = GraphitiUi.getExtensionManager().createDiagramTypeProvider(
+				"org.eclipse.graphiti.ui.tests.dtpWithInvalidImageProvider");
+		assertNotNull("Diagram type Provider must not be null", diagramTypeProvider);
+	}
+}
diff --git a/tests/org.eclipse.graphiti.bot.tests/src/org/eclipse/graphiti/bot/tests/GFTestSuite.java b/tests/org.eclipse.graphiti.bot.tests/src/org/eclipse/graphiti/bot/tests/GFTestSuite.java
index 27dae14..e7b0454 100644
--- a/tests/org.eclipse.graphiti.bot.tests/src/org/eclipse/graphiti/bot/tests/GFTestSuite.java
+++ b/tests/org.eclipse.graphiti.bot.tests/src/org/eclipse/graphiti/bot/tests/GFTestSuite.java
@@ -1,7 +1,7 @@
 /*******************************************************************************
  * <copyright>
  *
- * Copyright (c) 2005, 2010 SAP AG.
+ * Copyright (c) 2005, 2011 SAP AG.
  * 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
@@ -9,6 +9,7 @@
  *
  * Contributors:
  *    SAP AG - initial API, implementation and documentation
+ *    mwenz - Bug 352709 - invalid image provider id crashes diagram editor 
  *
  * </copyright>
  *
@@ -27,6 +28,7 @@
 		suite.addTestSuite(GFPackageTests.class);
 		suite.addTestSuite(GFDialogTests.class);
 		suite.addTestSuite(GFInteractionComponentTests.class);
+		suite.addTestSuite(ExtensionManagerTest.class);
 
 		return suite;
 	}