Author: adietish
Date: 2011-04-11 12:44:10 -0400 (Mon, 11 Apr 2011)
New Revision: 30480
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
16:42:51 UTC (rev 30479)
+++
workspace/adietish/org.jboss.ide.eclipse.as7.deployment.tests/src/org/jboss/ide/eclipse/as7/deployment/tests/DeploymentBuilderIntegrationTest.java 2011-04-11
16:44:10 UTC (rev 30480)
@@ -13,6 +13,7 @@
import static junit.framework.Assert.assertEquals;
import static junit.framework.Assert.fail;
import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
import java.io.BufferedInputStream;
import java.io.File;
@@ -93,7 +94,6 @@
assertNotNull(deployable.getStatus());
}
- @Ignore
@Test
public void isDeployed() throws DeploymentException, URISyntaxException, IOException {
String warName = "minimalistic.war";
@@ -102,6 +102,7 @@
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())));
+ assertTrue(response.indexOf("minimalistic") >= 0);
}
private File getWarFile(String name) throws URISyntaxException, IOException {
Show replies by date