Author: dgolovin
Date: 2010-03-26 15:10:20 -0400 (Fri, 26 Mar 2010)
New Revision: 21062
Modified:
branches/modular_build/bpel/tests/org.jboss.tools.bpel.ui.test/META-INF/MANIFEST.MF
branches/modular_build/bpel/tests/org.jboss.tools.bpel.ui.test/src/org/jboss/tools/bpel/ui/test/editor/JBossBPELEditorTest.java
Log:
remove common.test dependency from bpel.ui.test
Modified:
branches/modular_build/bpel/tests/org.jboss.tools.bpel.ui.test/META-INF/MANIFEST.MF
===================================================================
---
branches/modular_build/bpel/tests/org.jboss.tools.bpel.ui.test/META-INF/MANIFEST.MF 2010-03-26
19:03:05 UTC (rev 21061)
+++
branches/modular_build/bpel/tests/org.jboss.tools.bpel.ui.test/META-INF/MANIFEST.MF 2010-03-26
19:10:20 UTC (rev 21062)
@@ -7,7 +7,7 @@
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.junit;bundle-version="3.8.2",
- org.jboss.tools.common.test
+ org.jboss.tools.tests;bundle-version="2.0.0"
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-Vendor: JBoss by Red Hat
Modified:
branches/modular_build/bpel/tests/org.jboss.tools.bpel.ui.test/src/org/jboss/tools/bpel/ui/test/editor/JBossBPELEditorTest.java
===================================================================
---
branches/modular_build/bpel/tests/org.jboss.tools.bpel.ui.test/src/org/jboss/tools/bpel/ui/test/editor/JBossBPELEditorTest.java 2010-03-26
19:03:05 UTC (rev 21061)
+++
branches/modular_build/bpel/tests/org.jboss.tools.bpel.ui.test/src/org/jboss/tools/bpel/ui/test/editor/JBossBPELEditorTest.java 2010-03-26
19:10:20 UTC (rev 21062)
@@ -1,5 +1,8 @@
package org.jboss.tools.bpel.ui.test.editor;
+import java.io.IOException;
+import java.lang.reflect.InvocationTargetException;
+
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
@@ -9,9 +12,9 @@
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.ide.IDE;
-import org.jboss.tools.common.test.util.TestProjectProvider;
+import org.jboss.tools.test.util.JUnitUtils;
+import org.jboss.tools.test.util.ResourcesUtils;
-
import junit.framework.TestCase;
public class JBossBPELEditorTest extends TestCase{
@@ -42,9 +45,16 @@
}
public IProject createProject(String prjName) throws CoreException {
- TestProjectProvider provider = new TestProjectProvider(BUNDLE, "/projects/" +
prjName,
- prjName, true);
- IProject prj = provider.getProject();
+ IProject prj=null;
+ try {
+ prj = ResourcesUtils.importProject(BUNDLE, "/projects/" + prjName);
+ } catch (IOException e) {
+ JUnitUtils.fail("", e);
+ } catch (InvocationTargetException e) {
+ JUnitUtils.fail("", e);
+ } catch (InterruptedException e) {
+ JUnitUtils.fail("", e);
+ }
assertNotNull(prj);
return prj;
}