Author: rob.stryker(a)jboss.com
Date: 2010-04-26 00:34:43 -0400 (Mon, 26 Apr 2010)
New Revision: 21677
Modified:
trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/util/ServerRuntimeUtils.java
Log:
Adding some asserts for better debugging to figure out whats failing during test suite on
server
Modified:
trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/util/ServerRuntimeUtils.java
===================================================================
---
trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/util/ServerRuntimeUtils.java 2010-04-26
01:19:20 UTC (rev 21676)
+++
trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/util/ServerRuntimeUtils.java 2010-04-26
04:34:43 UTC (rev 21677)
@@ -84,7 +84,7 @@
public static IServer createServer(String runtimeID, String serverID,
String location, String configuration) throws CoreException {
// if file doesnt exist, abort immediately.
- assertTrue(new Path(location).toFile().exists());
+ assertTrue("path \"" + location + "\" does not exist",
new Path(location).toFile().exists());
IRuntime currentRuntime = createRuntime(runtimeID, location,
configuration);
@@ -129,6 +129,7 @@
public static void deleteAllRuntimes() throws CoreException {
IRuntime[] runtimes = ServerCore.getRuntimes();
for( int i = 0; i < runtimes.length; i++ ) {
+ assertNotNull("runtime " + runtimes[i].getName() + " has a null
location", runtimes[i].getLocation());
if( mockedServers.isPrefixOf(runtimes[i].getLocation())) {
FileUtil.completeDelete(runtimes[i].getLocation().toFile());
}
Show replies by date