[jbosstools-commits] JBoss Tools SVN: r41472 - trunk/esb/tests/org.jboss.tools.esb.project.core.test/src/org/jboss/tools/esb/project/core/test.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Sun May 27 18:55:55 EDT 2012


Author: ldimaggio
Date: 2012-05-27 18:55:54 -0400 (Sun, 27 May 2012)
New Revision: 41472

Modified:
   trunk/esb/tests/org.jboss.tools.esb.project.core.test/src/org/jboss/tools/esb/project/core/test/ESBProjectDeploymentTest.java
Log:
Added failing server location string to message displayed when test in method createServer fails - ESBProjectDeploymentTest.java



Modified: trunk/esb/tests/org.jboss.tools.esb.project.core.test/src/org/jboss/tools/esb/project/core/test/ESBProjectDeploymentTest.java
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.project.core.test/src/org/jboss/tools/esb/project/core/test/ESBProjectDeploymentTest.java	2012-05-27 22:14:05 UTC (rev 41471)
+++ trunk/esb/tests/org.jboss.tools.esb.project.core.test/src/org/jboss/tools/esb/project/core/test/ESBProjectDeploymentTest.java	2012-05-27 22:55:54 UTC (rev 41472)
@@ -226,12 +226,14 @@
 		IClasspathEntry[] entry = initializer.getEntries(path);//jproject.getRawClasspath();
 		List<String> jars = new ArrayList<String>();
 		
+		/* ldimaggi - display list of jars in the assert text - https://issues.jboss.org/browse/JBDS-2152 */
+		String jarsString = null;
 		for(IClasspathEntry ent :entry){
 			jars.add(ent.getPath().lastSegment());
+			jarsString = jarsString + ent.getPath().lastSegment() + " ";
 		}
+		assertEquals("unalbe to read User customized ESB runtime, jbossesb-rosetta.jar is not in classpath." + jarsString, true, jars.contains("jbossesb-rosetta.jar"));
 		
-		assertEquals("unalbe to read User customized ESB runtime, jbossesb-rosetta.jar is not in classpath.", true, jars.contains("jbossesb-rosetta.jar"));
-		
 	}
 
 	public void testSOAP50Deployment() throws Exception {
@@ -351,7 +353,7 @@
 	protected void createServer(String runtimeID, String serverID,
 			String location, String configuration) throws CoreException {
 		// if file doesnt exist, abort immediately.
-		assertTrue(new Path(location).toFile().exists());
+		assertTrue("server location " + location + " does not exist", new Path(location).toFile().exists());
 
 		currentRuntime = createRuntime(runtimeID, location, configuration);
 		IServerType serverType = ServerCore.findServerType(serverID);



More information about the jbosstools-commits mailing list