Author: dgolovin
Date: 2008-01-30 09:10:22 -0500 (Wed, 30 Jan 2008)
New Revision: 6030
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java
Log:
Java Model Exception: Core Exception [code 0] Runtime JBoss 4.2 Runtime does not exist.
This classpath container cannot be initialized.
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java 2008-01-30
13:57:58 UTC (rev 6029)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java 2008-01-30
14:10:22 UTC (rev 6030)
@@ -14,6 +14,7 @@
import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.ILogListener;
import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Platform;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorPart;
@@ -21,6 +22,7 @@
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.part.FileEditorInput;
import org.jboss.tools.common.model.util.ClassLoaderUtil;
+import org.jboss.tools.jst.firstrun.JBossASAdapterInitializer;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.VpeEditorPart;
@@ -72,11 +74,11 @@
* @see TestCase#setUp()
*/
protected void setUp() throws Exception {
-
super.setUp();
Platform.addLogListener(this);
-
+ String jbossPath = System.getProperty("jbosstools.test.jboss.home.4.2",
"C:\\java\\jboss-4.2.2.GA");
+ JBossASAdapterInitializer.initJBossAS(jbossPath, new NullProgressMonitor());
closeEditors();
}
Show replies by date