Author: dgolovin
Date: 2008-01-31 01:25:47 -0500 (Thu, 31 Jan 2008)
New Revision: 6056
Added:
trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/ProjectImportTestSetup.java
Log:
fix test errors
Added:
trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/ProjectImportTestSetup.java
===================================================================
---
trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/ProjectImportTestSetup.java
(rev 0)
+++
trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/ProjectImportTestSetup.java 2008-01-31
06:25:47 UTC (rev 6056)
@@ -0,0 +1,49 @@
+/*******************************************************************************
+ * 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.tools.test.util;
+
+import junit.extensions.TestSetup;
+import junit.framework.Test;
+
+/**
+ * @author eskimo
+ *
+ */
+public class ProjectImportTestSetup extends TestSetup {
+
+ private String bundleName = "";
+ private String projectPath = "";
+ private String projectName = "";
+
+ /**
+ * @param test
+ */
+ public ProjectImportTestSetup(Test test,
+ String bundleName, String projectPath, String projectName) {
+ super(test);
+ this.bundleName = bundleName;
+ this.projectPath = projectPath;
+ this.projectName = projectName;
+ }
+
+ @Override
+ protected void setUp() throws Exception {
+ ResourcesUtils.importProject(bundleName, projectPath);
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+ ResourcesUtils.deleteProject(projectName);
+ }
+
+
+
+}
Property changes on:
trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/ProjectImportTestSetup.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain