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:
public class Controller { @Action public Response.View action(EventQueue<Foo> events) { queue.send("foo", new Foo()); return Controller_.index(); } }
public class Controller { @Consumes("foo") public Response.View process(Event<Foo> event) { // Do something with event foo return Controller_.index(); } }
@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")); } }
@Action public void action(FileItem file) throws IOException { if (file != null) { UploadTestCase.contentType = file.getContentType(); UploadTestCase.content = file.getString(); } }
On Juzu page