0 Replies Latest reply on Dec 21, 2012 10:31 AM by Julien Viet

    Juzu 0.6.0-beta5

    Julien Viet Apprentice

      released, rock solid and provide new great stuff for building portlet applications.

       

      The greatest feature of 0.6.0 is the servlet mode however I won't talk about it there :-) .

       

      However, other great stuff have been added:

       

      First class integration for producing event

      public class Controller {
         @Action
         public Response.View action(EventQueue<Foo> events) {
            queue.send("foo", new Foo());
            return Controller_.index();
         }
      }
      

       

      First class integration for consuming events

       

      public class Controller {
         @Consumes("foo")
         public Response.View process(Event<Foo> event) {
            // Do something with event foo
            return Controller_.index();
         }
      }
      

       

      Testing made easy with Arquillian and GateIn Portlet Container

       

      @RunWith(Arquillian.class)
      public abstract class WeatherTestCase {
      
         @ArquillianResource URL deploymentURL;
         @Drone WebDriver driver;
      
         @Test
         @RunAsClient
         public void testWeather1() throws Exception {
            String url = deploymentURL.toURI().resolve("embed/WeatherPortlet").toString();
            driver.get(url);
            WebElement body = driver.findElement(By.tagName("body"));
            assertTrue(body.getText().contains("The weather application"));
         }
      }
      

       

      Seamless support for Commons File Upload

       

      @Action
      public void action(FileItem file) throws IOException {
         if (file != null) {
            UploadTestCase.contentType = file.getContentType();
            UploadTestCase.content = file.getString();
         }
      }
      

       

      Much more

       

      On Juzu page