tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: tomee redeployment issue
Date Wed, 25 Jun 2014 18:07:05 GMT
Ok,

error is the one I thought about. Will be fixed tomorrow



Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-06-25 14:30 GMT+02:00 hwaastad <helge@waastad.org>:

> @Deployment(name = "webapp1", managed = false)
>     public static Archive<?> webapp1() {
>         return ShrinkWrap.createFromZipFile(WebArchive.class, new
> File("../WebApp1/target/WebApp1.war"));
>     }
>
>     @Deployment(name = "webapp2", managed = false)
>     public static Archive<?> webapp2() {
>         return ShrinkWrap.createFromZipFile(WebArchive.class, new
> File("../WebApp2/target/WebApp2.war"));
>     }
>
>     @ArquillianResource
>     private Deployer deployer;
>
>     @Test
>     public void valid1() throws IOException {
>         deployer.deploy("webapp1");
>         System.out.println("");
>         System.out.println("===========================================");
>         int result = WebClient.create("http://localhost:8080/WebApp1/test/
> ")
>
> .type(MediaType.APPLICATION_JSON_TYPE).post("validd").getStatus();
>         System.out.println(result);
>         Assert.assertEquals(406,result);
>         deployer.deploy("webapp2");
>         deployer.undeploy("webapp2");
>         result = WebClient.create("http://localhost:8080/WebApp1/test/")
>
> .type(MediaType.APPLICATION_JSON_TYPE).post("validd").getStatus();
>         System.out.println(result);
>         Assert.assertEquals(406,result);
>         deployer.undeploy("webapp1");
>         System.out.println("===========================================");
>         System.out.println("");
>     }
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/tomee-redeployment-issue-tp4670067p4670182.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message