Author: adietish
Date: 2011-04-11 13:37:33 -0400 (Mon, 11 Apr 2011)
New Revision: 30483
Modified:
workspace/adietish/org.jboss.ide.eclipse.as7.deployment.tests/src/org/jboss/ide/eclipse/as7/deployment/tests/DeploymentBuilderIntegrationTest.java
Log:
[JBIDE-8690] added test that checks if app was deployed
Modified:
workspace/adietish/org.jboss.ide.eclipse.as7.deployment.tests/src/org/jboss/ide/eclipse/as7/deployment/tests/DeploymentBuilderIntegrationTest.java
===================================================================
---
workspace/adietish/org.jboss.ide.eclipse.as7.deployment.tests/src/org/jboss/ide/eclipse/as7/deployment/tests/DeploymentBuilderIntegrationTest.java 2011-04-11
17:36:12 UTC (rev 30482)
+++
workspace/adietish/org.jboss.ide.eclipse.as7.deployment.tests/src/org/jboss/ide/eclipse/as7/deployment/tests/DeploymentBuilderIntegrationTest.java 2011-04-11
17:37:33 UTC (rev 30483)
@@ -101,7 +101,8 @@
List<Deployable> deployables = new DeploymentBuilder(HOST,
MGMT_PORT).add(file).deploy();
Deployable deployable = deployables.get(0);
deployable.getStatus(); // wait for deployment to have finished
- String response = getServerResponse(new
URL(MessageFormat.format("http://{0}:{1}/{2}", HOST, WEB_PORT,
deployable.getName())));
+ String name = deployable.getName().substring(0,
deployable.getName().indexOf('.'));
+ String response = getServerResponse(new
URL(MessageFormat.format("http://{0}:{1}/{2}", HOST, String.valueOf(WEB_PORT),
name)));
assertTrue(response.indexOf("minimalistic") >= 0);
}
Show replies by date