This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// JS interface | |
var Graphene = function() { | |
}; | |
Graphene.prototype.callSomeThing = function() { | |
return "0"; | |
}; | |
// Java interface | |
@JavaScript("Graphene") | |
@Dependency("src/main/javascript/graphene.js") | |
public interface JavaScriptInterface { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# the driver implementation selection using implementationClass is pain in the ass, consider following | |
<extension:drone> | |
<firefoxDriver> | |
</firefoxDriver> | |
</extension:drone> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
client.open(...); | |
client.click(...); | |
assert(new AssertionObject() { | |
@AfterRender | |
public void test() { | |
} | |
}); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
when(new ClientAction() { | |
public void action() { | |
browser.navigate().to(contextPath + "index.html"); | |
} | |
}).verify(new ServerAssertion() { | |
@BeforeServlet | |
public void beforeServlet() { | |
System.out.println("Hi server, here is my initial request!"); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.richfaces.bootstrap.renderkit; | |
import java.io.IOException; | |
import javax.faces.component.UIComponent; | |
import javax.faces.context.FacesContext; | |
import javax.faces.context.ResponseWriter; | |
import org.richfaces.bootstrap.component.AbstractIcon; | |
import org.richfaces.bootstrap.renderkit.IconRendererBase; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
@RunAsClient | |
public void test() { | |
Warp.execute(new ClientAction() { | |
public void action() { | |
browser.navigate().to(contextPath + "index.jsf"); | |
} | |
}).verify(new ServerAssertion (){ | |
@SuppressWarnings("unused") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cdk:root> | |
<cc:interface /> | |
<cc:implementation> | |
<cdk:render name="my" value="#{attr_value}" /> | |
</cc:implementation> | |
<cdk:fragment name="my"> | |
<cc:interface> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* index.xhtml: | |
* <h:inputText value="#{...}" /> | |
*/ | |
@Test | |
public void myTest() { | |
... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15:20:42,542 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018559: Deployed "showcase.war" | |
15:30:32,587 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (http--0.0.0.0-8080-11) JSF1064: Unable to find or serve resource, org.richfaces.staticResource/4.2.2-SNAPSHOT/Packed/packed/packed.js. | |
15:30:32,591 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (http--0.0.0.0-8080-11) : ClientAbortException: java.net.SocketException: Broken pipe | |
at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:403) [jbossweb-7.0.13.Final.jar:] | |
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:449) [jbossweb-7.0.13.Final.jar:] | |
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:349) [jbossweb-7.0.13.Final.jar:] | |
at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:426) [jbossweb-7.0.13.Final.jar:] | |
at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:415) [jbossweb-7.0.13.Final.jar:] | |
at org. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTTP Status 500 - | |
type Exception report | |
message | |
description The server encountered an internal error () that prevented it from fulfilling this request. | |
exception |