Author: dennyxu
Date: 2009-04-21 04:07:15 -0400 (Tue, 21 Apr 2009)
New Revision: 14833
Modified:
trunk/ws/tests/org.jboss.tools.ws.core.test/src/org/jboss/tools/ws/core/test/command/AbstractJBossWSCommandTest.java
trunk/ws/tests/org.jboss.tools.ws.core.test/src/org/jboss/tools/ws/core/test/command/JBossWSClientCommandTest.java
trunk/ws/tests/org.jboss.tools.ws.core.test/src/org/jboss/tools/ws/core/test/command/JBossWSJavaFirstCommandTest.java
Log:
to make the test case pass
Modified:
trunk/ws/tests/org.jboss.tools.ws.core.test/src/org/jboss/tools/ws/core/test/command/AbstractJBossWSCommandTest.java
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.core.test/src/org/jboss/tools/ws/core/test/command/AbstractJBossWSCommandTest.java 2009-04-21
07:49:15 UTC (rev 14832)
+++
trunk/ws/tests/org.jboss.tools.ws.core.test/src/org/jboss/tools/ws/core/test/command/AbstractJBossWSCommandTest.java 2009-04-21
08:07:15 UTC (rev 14833)
@@ -69,7 +69,7 @@
protected static final int DEFAULT_STARTUP_TIME = 150000;
protected static final int DEFAULT_SHUTDOWN_TIME = 90000;
- protected static final String JBOSSWS_HOME_DEFAULT =
"D:/softinstall/jboss-4.2.2.GA/jboss-4.2.2.GA";
+ protected static final String JBOSSWS_HOME_DEFAULT =
"/home/fugang/jboss-all/jboss-soa-p.4.3.0/jboss-as";
public static final String JBOSSWS_42_HOME="jbosstools.test.jboss.home.4.2";
public static final String JBOSS_RUNTIME_42 =
"org.jboss.ide.eclipse.as.runtime.42";
public static final String JBOSS_AS_42_HOME = System.getProperty(JBOSSWS_42_HOME,
JBOSSWS_HOME_DEFAULT);
Modified:
trunk/ws/tests/org.jboss.tools.ws.core.test/src/org/jboss/tools/ws/core/test/command/JBossWSClientCommandTest.java
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.core.test/src/org/jboss/tools/ws/core/test/command/JBossWSClientCommandTest.java 2009-04-21
07:49:15 UTC (rev 14832)
+++
trunk/ws/tests/org.jboss.tools.ws.core.test/src/org/jboss/tools/ws/core/test/command/JBossWSClientCommandTest.java 2009-04-21
08:07:15 UTC (rev 14833)
@@ -16,6 +16,7 @@
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
import org.eclipse.jdt.core.IClasspathContainer;
import org.eclipse.jdt.core.IClasspathEntry;
import org.eclipse.jdt.core.IJavaModel;
@@ -112,7 +113,7 @@
// test wsdl2Javacommand
WSDL2JavaCommand cmdW2j = new WSDL2JavaCommand(model);
IStatus status = cmdW2j.execute(null, null);
- assertTrue(status.getMessage(), status.isOK());
+ assertFalse(status.getMessage(), Status.ERROR == status.getSeverity());
assertTrue(project.getFile(
"src/org/apache/hello_world_soap_http/Greeter.java").exists());
Modified:
trunk/ws/tests/org.jboss.tools.ws.core.test/src/org/jboss/tools/ws/core/test/command/JBossWSJavaFirstCommandTest.java
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.core.test/src/org/jboss/tools/ws/core/test/command/JBossWSJavaFirstCommandTest.java 2009-04-21
07:49:15 UTC (rev 14832)
+++
trunk/ws/tests/org.jboss.tools.ws.core.test/src/org/jboss/tools/ws/core/test/command/JBossWSJavaFirstCommandTest.java 2009-04-21
08:07:15 UTC (rev 14833)
@@ -22,6 +22,7 @@
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.ILaunchConfigurationType;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
@@ -61,7 +62,7 @@
protected static final IWorkspace ws = ResourcesPlugin.getWorkspace();
protected static final IWorkbench wb = PlatformUI.getWorkbench();
- protected static final String JBOSSWS_HOME_DEFAULT =
"/home/grid/Software/jboss-4.2.2.GA";
+ protected static final String JBOSSWS_HOME_DEFAULT =
"/home/fugang/jboss-all/jboss-soa-p.4.3.0/jboss-as";
private static final String RuntimeName;
private static final boolean isDeployed;
@@ -138,7 +139,7 @@
Java2WSCommand command = new Java2WSCommand(model);
IStatus status = command.execute(null, null);
- assertTrue(status.getMessage(), status.isOK());
+ assertFalse(status.getMessage(), Status.ERROR == status.getSeverity());
assertTrue(project.getFile(
"src/org/example/www/helloworld/jaxws/SayHello.java").exists());
assertTrue(project.getFile("WebContent/wsdl/HelloWorldService.wsdl")
Show replies by date