Skip to content

Instantly share code, notes, and snippets.

package org.jboss.arquillian.warp.impl.client.deployment;
import org.jboss.arquillian.container.test.spi.client.deployment.ApplicationArchiveProcessor;
import org.jboss.arquillian.core.api.Instance;
import org.jboss.arquillian.core.spi.LoadableExtension;
import org.jboss.arquillian.test.spi.TestClass;
import org.jboss.arquillian.warp.ServerAssertion;
import org.jboss.arquillian.warp.WarpRemoteExtension;
import org.jboss.arquillian.warp.WarpTest;
import org.jboss.arquillian.warp.impl.testutils.SeparatedClassPath;
@lfryc
lfryc / TestAjaxGetStock.java
Created November 23, 2012 12:15
Warp.execute(ClientAction).filter(Filter).inspect(ServerInspection);
@Test
public void testAjaxGetStock() {
browser.navigate().to(contextUrl + "restclient.jsp");
Warp
.execute(new ClientAction() {
public void perform() {
browser.findElement(By.className("stockLink")).click();
}
})
@lfryc
lfryc / TestAjaxGetStock.java
Created November 23, 2012 12:13
Warp.fromClient(Activity).toServer(Inspector).observing(What);
@Test
public void testAjaxGetStock() {
browser.navigate().to(contextUrl + "restclient.jsp");
Warp
.fromClient(new Activity() {
public void perform() {
browser.findElement(By.className("stockLink")).click();
}
})
@lfryc
lfryc / TestAjaxGetStock.java
Created November 23, 2012 12:11
Warp.initiate(Activity).capture(What).probe(Inspection);
@Test
public void testAjaxGetStock() {
browser.navigate().to(contextUrl + "restclient.jsp");
Warp
.initiate(new Activity() {
public void perform() {
browser.findElement(By.className("stockLink")).click();
}
})
@lfryc
lfryc / TestAjaxGetStock.java
Created November 23, 2012 12:09
Warp.given(Conditions).when(Activity).then(Inspect);
@Test
public void testAjaxGetStock() {
browser.navigate().to(contextUrl + "restclient.jsp");
Warp
.given(request().endsWith("/stocks"))
.when(new Activity() {
public void perform() {
browser.findElement(By.className("stockLink")).click();
}
@lfryc
lfryc / TestAjaxGetStock.java
Created November 23, 2012 12:01
Warp.initiate(Activity).capture(What).probe(Inspection);
@Test
public void testAjaxGetStock() {
browser.navigate().to(contextUrl + "restclient.jsp");
Warp
.initiate(new Activity() {
public void perform() {
browser.findElement(By.className("stockLink")).click();
}
})
@RunAsClient
@WarpTest
@RunWith(Arquillian.class)
public class TestFocusValidationAware {
...
@Test
public void testGlobalMessageIsIgnored() {
Warp.execute(new ClientAction() {
public void action() {
}
}....
Warp.invoke(new ClientInvoker() {
public void invoke() {
}
}....
@lfryc
lfryc / CONTRIBUTING.md
Created November 20, 2012 08:47
Proposal for RichFaces' CONTRIBUTING.md

How to contribute

Third-party patches are essential for keeping RichFaces great. Contributing to the project helps to deliver functionality you need and allows you to share your code with other contributors and users. We want to keep it as easy as possible to contribute changes you made and we will work hard to deliver your contributions in upcoming releases. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.

<?xml version="1.0" encoding="UTF-8"?>
<!--
JBoss, Home of Professional Open Source
Copyright 2012, Red Hat Middleware LLC, and individual contributors
by the @authors tag. See the copyright.txt in the distribution for a
full listing of individual contributors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.