Author: dgolovin
Date: 2008-01-22 20:59:15 -0500 (Tue, 22 Jan 2008)
New Revision: 5898
Added:
trunk/common/tests/org.jboss.common.model.ui.test/.classpath
trunk/common/tests/org.jboss.common.model.ui.test/.project
trunk/common/tests/org.jboss.common.model.ui.test/META-INF/
trunk/common/tests/org.jboss.common.model.ui.test/META-INF/MANIFEST.MF
trunk/common/tests/org.jboss.common.model.ui.test/build.properties
trunk/common/tests/org.jboss.common.model.ui.test/src/
trunk/common/tests/org.jboss.common.model.ui.test/src/org/
trunk/common/tests/org.jboss.common.model.ui.test/src/org/jboss/
trunk/common/tests/org.jboss.common.model.ui.test/src/org/jboss/common/
trunk/common/tests/org.jboss.common.model.ui.test/src/org/jboss/common/model/
trunk/common/tests/org.jboss.common.model.ui.test/src/org/jboss/common/model/ui/
trunk/common/tests/org.jboss.common.model.ui.test/src/org/jboss/common/model/ui/test/
trunk/common/tests/org.jboss.common.model.ui.test/src/org/jboss/common/model/ui/test/ModelNewWizardTest.java
Log:
Added: trunk/common/tests/org.jboss.common.model.ui.test/.classpath
===================================================================
--- trunk/common/tests/org.jboss.common.model.ui.test/.classpath
(rev 0)
+++ trunk/common/tests/org.jboss.common.model.ui.test/.classpath 2008-01-23 01:59:15 UTC
(rev 5898)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con"
path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Property changes on: trunk/common/tests/org.jboss.common.model.ui.test/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/common/tests/org.jboss.common.model.ui.test/.project
===================================================================
--- trunk/common/tests/org.jboss.common.model.ui.test/.project
(rev 0)
+++ trunk/common/tests/org.jboss.common.model.ui.test/.project 2008-01-23 01:59:15 UTC
(rev 5898)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.common.model.ui.test</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Property changes on: trunk/common/tests/org.jboss.common.model.ui.test/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/common/tests/org.jboss.common.model.ui.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/common/tests/org.jboss.common.model.ui.test/META-INF/MANIFEST.MF
(rev 0)
+++ trunk/common/tests/org.jboss.common.model.ui.test/META-INF/MANIFEST.MF 2008-01-23
01:59:15 UTC (rev 5898)
@@ -0,0 +1,12 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Model UI Test Plug-in
+Bundle-SymbolicName: org.jboss.common.model.ui.test
+Bundle-Version: 1.0.0
+Require-Bundle: org.junit;visibility:=reexport,
+ org.eclipse.jface,
+ org.jboss.tools.tests,
+ org.eclipse.ui,
+ org.jboss.tools.common,
+ org.jboss.tools.common.model.ui
+Export-Package: org.jboss.common.model.ui.test
Property changes on:
trunk/common/tests/org.jboss.common.model.ui.test/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/common/tests/org.jboss.common.model.ui.test/build.properties
===================================================================
--- trunk/common/tests/org.jboss.common.model.ui.test/build.properties
(rev 0)
+++ trunk/common/tests/org.jboss.common.model.ui.test/build.properties 2008-01-23 01:59:15
UTC (rev 5898)
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
Property changes on: trunk/common/tests/org.jboss.common.model.ui.test/build.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/common/tests/org.jboss.common.model.ui.test/src/org/jboss/common/model/ui/test/ModelNewWizardTest.java
===================================================================
---
trunk/common/tests/org.jboss.common.model.ui.test/src/org/jboss/common/model/ui/test/ModelNewWizardTest.java
(rev 0)
+++
trunk/common/tests/org.jboss.common.model.ui.test/src/org/jboss/common/model/ui/test/ModelNewWizardTest.java 2008-01-23
01:59:15 UTC (rev 5898)
@@ -0,0 +1,45 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.common.model.ui.test;
+
+import org.eclipse.jface.wizard.IWizard;
+import org.eclipse.jface.wizard.IWizardPage;
+import org.eclipse.jface.wizard.WizardDialog;
+import org.eclipse.ui.PlatformUI;
+import org.jboss.tools.common.model.ui.wizards.standard.DefaultStandardStep;
+import org.jboss.tools.common.util.WorkbenchUtils;
+
+import junit.framework.TestCase;
+
+
+/**
+ * @author eskimo
+ *
+ */
+public class ModelNewWizardTest extends TestCase {
+ protected void testNewWizardInstanceIsCreated(String id) {
+ IWizard
+ aWizard = WorkbenchUtils.findWizardByDefId(
+ id);
+
+ WizardDialog dialog = new WizardDialog(
+ PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
+ aWizard);
+ dialog.setBlockOnOpen(false);
+ try {
+ dialog.open();
+ IWizardPage page = dialog.getCurrentPage();
+ assertTrue("Start page is not loaded",page instanceof DefaultStandardStep);
+ } finally {
+ dialog.close();
+ }
+ }
+}
Property changes on:
trunk/common/tests/org.jboss.common.model.ui.test/src/org/jboss/common/model/ui/test/ModelNewWizardTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain