[jboss-cvs] JBossAS SVN: r77295 - in trunk: testsuite/src/main/org/jboss/test/profileservice/test and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Aug 21 08:01:50 EDT 2008
Author: alesj
Date: 2008-08-21 08:01:50 -0400 (Thu, 21 Aug 2008)
New Revision: 77295
Modified:
trunk/profileservice/src/main/org/jboss/profileservice/management/upload/remoting/DeployHandler.java
trunk/testsuite/src/main/org/jboss/test/profileservice/test/DeployUnitTestCase.java
Log:
Add more info to output.
Modified: trunk/profileservice/src/main/org/jboss/profileservice/management/upload/remoting/DeployHandler.java
===================================================================
--- trunk/profileservice/src/main/org/jboss/profileservice/management/upload/remoting/DeployHandler.java 2008-08-21 12:00:34 UTC (rev 77294)
+++ trunk/profileservice/src/main/org/jboss/profileservice/management/upload/remoting/DeployHandler.java 2008-08-21 12:01:50 UTC (rev 77295)
@@ -99,11 +99,12 @@
public Object handleStream(InputStream contentIS, InvocationRequest request) throws Throwable
{
SerializableDeploymentID deploymentTarget = (SerializableDeploymentID) request.getParameter();
- log.debug("handleStream, deploymentTarget: " + deploymentTarget);
+ log.info("Handle stream, deploymentTarget: " + deploymentTarget);
deploymentTarget.setContentIS(contentIS);
DeploymentPhase phase = deploymentTarget.getPhase();
String[] names = deploymentTarget.getNames();
String repositoryName = deploymentRepository.addDeploymentContent(names[0], contentIS, phase);
+ log.info("End handle stream, repositoryName: " + repositoryName);
String[] rnames = {repositoryName};
deploymentTarget.setRepositoryNames(rnames);
return new InvocationResponse(repositoryName);
Modified: trunk/testsuite/src/main/org/jboss/test/profileservice/test/DeployUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/profileservice/test/DeployUnitTestCase.java 2008-08-21 12:00:34 UTC (rev 77294)
+++ trunk/testsuite/src/main/org/jboss/test/profileservice/test/DeployUnitTestCase.java 2008-08-21 12:01:50 UTC (rev 77295)
@@ -86,10 +86,10 @@
try
{
status = progress.getDeploymentStatus();
- assertTrue("DeploymentStatus.isCompleted", status.isCompleted());
+ assertTrue("DeploymentStatus.isCompleted: " + status, status.isCompleted());
// It should not be running yet
- assertFalse("DeploymentStatus.isRunning", status.isRunning());
- assertFalse("DeploymentStatus.isFailed", status.isFailed());
+ assertFalse("DeploymentStatus.isRunning: " + status, status.isRunning());
+ assertFalse("DeploymentStatus.isFailed: " + status, status.isFailed());
// Get the unique deployment name
uploadedNames = progress.getDeploymentID().getRepositoryNames();
@@ -101,9 +101,9 @@
try
{
status = progress.getDeploymentStatus();
- assertTrue("DeploymentStatus.isCompleted", status.isCompleted());
- assertTrue("DeploymentStatus.isRunning", status.isRunning());
- assertFalse("DeploymentStatus.isFailed", status.isFailed());
+ assertTrue("DeploymentStatus.isCompleted: " + status, status.isCompleted());
+ assertTrue("DeploymentStatus.isRunning: " + status, status.isRunning());
+ assertFalse("DeploymentStatus.isFailed: " + status, status.isFailed());
// Check for a
ManagementView mgtView = getManagementView();
ManagedDeployment deployment = mgtView.getDeployment(uploadedNames[0], DeploymentPhase.APPLICATION);
@@ -126,8 +126,8 @@
progress.addProgressListener(this);
progress.run();
status = progress.getDeploymentStatus();
- assertTrue("DeploymentStatus.isCompleted", status.isCompleted());
- assertFalse("DeploymentStatus.isFailed", status.isFailed());
+ assertTrue("DeploymentStatus.isCompleted: " + status, status.isCompleted());
+ assertFalse("DeploymentStatus.isFailed: " + status, status.isFailed());
}
}
finally
@@ -136,8 +136,8 @@
progress.addProgressListener(this);
progress.run();
status = progress.getDeploymentStatus();
- assertTrue("DeploymentStatus.isCompleted", status.isCompleted());
- assertFalse("DeploymentStatus.isFailed", status.isFailed());
+ assertTrue("DeploymentStatus.isCompleted: " + status, status.isCompleted());
+ assertFalse("DeploymentStatus.isFailed: " + status, status.isFailed());
}
}
More information about the jboss-cvs-commits
mailing list